glibc in capter 6 -- error: cannot compute suffix of object files
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
GCC install error cannot compute suffix of object files
Hi there!
I have this on config.log file
configure:3906: g++ -c conftest.cc >&5
g++: error trying to exec '/usr/libexec/gcc/i486-slackware-linux/4.1.2/cc1plus': execv: Exec format error
configure:3912: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
i am following the instructions on http://www.nongnu.org/avr-libc/user-...nstall_avr_gcc
Any help will be very appreciated
Cross compile glibc -configure:3342: error: cannot compute suffix of object files: ca
Hi,
I am trying to cross compile GCC tool chain for powerpc. I am getting following error. I checked the config.log, not getting clue for the problem. I have searched previous messages with respect to glib configuration errors, but could not figure out the root cause.
CC=${TARGET}-gcc ../glibc-2.9/configure --enable-add-ons --target=$TARGET --prefix=$PREFIX --with-headers=${TARGET_PREFIX}/include
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gcc... powerpc-linux-gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Please find below the config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU C Library configure (see version.h), which was
generated by GNU Autoconf 2.61. Invocation command line was
configure:2182: checking build system type
configure:2200: result: i686-pc-linux-gnulibc1
configure:2222: checking host system type
configure:2237: result: i686-pc-linux-gnulibc1
configure:2417: running configure fragment for add-on nptl
configure:2554: checking sysdep dirs
configure:2790: result: sysdeps/generic/elf sysdeps/generic
configure:2868: checking for a BSD-compatible install
configure:2924: result: /usr/bin/install -c
configure:2939: checking whether ln -s works
configure:2943: result: yes
configure:2999: checking for gcc
configure:3026: result: powerpc-linux-gcc
configure:3264: checking for C compiler version
configure:3271: powerpc-linux-gcc --version >&5
powerpc-linux-gcc (GCC) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3274: $? = 0
configure:3281: powerpc-linux-gcc -v >&5
Using built-in specs.
Target: powerpc-linux
Configured with: ../gcc-4.3.3/configure --target=powerpc-linux --prefix=/home/rams/crossgcc --without-headers --with-newlib -v
Thread model: posix
gcc version 4.3.3 (GCC)
configure:3284: $? = 0
configure:3291: powerpc-linux-gcc -V >&5
powerpc-linux-gcc: '-V' option must have argument
configure:3294: $? = 1
configure:3298: checking for suffix of object files
configure:3324: powerpc-linux-gcc -c conftest.c >&5
as: unrecognized option `-mppc'
configure:3327: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3342: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
configure: error: cannot compute suffix of object files: cannot compile
Hello Friends,
I am new here and this is my first mail. If i am breaking any rules, kindly forgive me.
I am trying to build "buildroot" package on my PC for ARM Based board. It first tries to build cross-compiler toolchain for ARM. while configuring gcc, it gives following error:
checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
when i see config.log file, i found following:
configure:3325: checking for suffix of object files
configure:3346: /usr/bin/gcc -c conftest.c >&5
configure:3349: $? = 0
configure:3371: result: o
which, i think, suggests that it is computing what should be the suffix of the object files.
Could this be caused by forgetting to remove the files in the build-gcc directory after pass 1?
I believe pass 2 requires a configure and make in an empty directory.
my problem is: "checking for suffix of object files... configure: error: in `/mnt/lfs/gcc-build1/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-build1'
make: *** [all] Error 2"
i am building gcc pass 2 from LFS 6.6 ebook. please tell me how to solve this error?
I suggest to look at LD_LIBRARY_PATH or LD_LIBRARYN32_PATH, and you may fix it!
Daniel
Since the new glibc has dependency on mpc, gmp and mpfr hence you have to show that in your LD_LIBRARY_PATH. By making these changes I was able to move ahead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.