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.
glibc in capter 6 -- error: cannot compute suffix of object files
hi, i am trying to build glibc in 6 capter of lfs handbook, while i'm starting "configure" i get sth like that:
root:/sources/glibc-3# ../glibc-2.3.5/configure
checking build system type... i686-pc-linux-gnu
(...)
checking for gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
root:/sources/glibc-3#
i tried to rebuild "gcc pass2" but after it problem is same,
please help me.
Re: glibc in capter 6 -- error: cannot compute suffix of object files
Quote:
Originally posted by Yoyo302 hi, i am trying to build glibc in 6 capter of lfs handbook, while i'm starting "configure" i get sth like that:
root:/sources/glibc-3# ../glibc-2.3.5/configure
checking build system type... i686-pc-linux-gnu
(...)
checking for gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
root:/sources/glibc-3#
i tried to rebuild "gcc pass2" but after it problem is same,
please help me.
Originally posted by Yoyo302 i looked into this file and i think that's important:
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:2689: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
ok, thx for advices, but i've found solution.
just:
ln -s /tools/bin/gcc /bin/gcc and i think i'll work, i tried "configure" again and the problem disapierd.
once again thanks
I got the same issues as yoyo the same error message. I am running LFS 6.1.1. but this is my question. Should I be running ./config and chroot or as root on the lfs LiveCD? I can get it to work running from LFS Live CD root but not from chroot.
I changed the command from book to suit the situation.
configure:1706: checking build system type
configure:1724: result: i686-pc-linux-gnu
configure:1732: checking host system type
configure:1746: result: i686-pc-linux-gnu
configure:1878: result: running configure fragment for add-on linuxthreads
configure:9: result: linuxthreads disabled because nptl add-on is also in use
configure:1878: result: running configure fragment for add-on nptl
configure:1998: checking sysdep dirs
configure:2214: result: sysdeps/generic/elf sysdeps/generic
configure:2233: checking for a BSD-compatible install
configure:2288: result: /tools/bin/install -c
configure:2303: checking whether ln -s works
configure:2307: result: yes
configure:2361: checking for gcc
configure:2377: found /tools/bin/gcc
configure:2387: result: gcc
configure:2631: checking for C compiler version
configure:2634: gcc --version </dev/null >&5
glibc-2.3.4/configure: line 2635: /tools/bin/gcc: No such file or directory
configure:2637: $? = 127
configure:2639: gcc -v </dev/null >&5
glibc-2.3.4/configure: line 2640: /tools/bin/gcc: No such file or directory
configure:2642: $? = 127
configure:2644: gcc -V </dev/null >&5
glibc-2.3.4/configure: line 2645: /tools/bin/gcc: No such file or directory
configure:2647: $? = 127
configure:2651: checking for suffix of object files
configure:2672: gcc -c conftest.c >&5
glibc-2.3.4/configure: line 2673: /tools/bin/gcc: No such file or directory
configure:2675: $? = 127
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:2689: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
I have a funny feeling it should all be done under chroot. let me know please!
yes, if we're speaking about chapter 6...
you know, as i wrote before, i made a link, and then it was working, but not forever, i don't remember perfectly, but i think that i had some problems later when i tried to build sth like rpm. that while compiling i got error about some libs, which were not reachable, because they were laying in "tools" dir. i haven't found any solution to that problem then...
I have this exact same problem..... anyone have any solution for this?
my config.log has the exact same output as the one posted above...
any idea what could be the problem?
somone solved this problem by linking.. is it a safe method? or will it break anything later even if it works now?
you know, after making link to that file there wasn't any problem during building lfs system, or something after.
I just do not remember what got wrong then, because i have deleted all from lfs i made, and now i am using gentoo :P
never mind that, you have 2 solutions, 1st is to make sth with that, making some maybe not safe link, and 2nd is to make everything from begining,
it's your choise what you will do.
I just redid gcc-pass2 and everything seemed alright...
glibc configured and compiled properly.. even the test failed only in two places.. (something tst-clock2.out or something )which i continued with anyway.. did not have any issues so far... hope nothing is broken
you have 2 solutions, 1st is to make sth with that, making some maybe not safe link, and 2nd is to make everything from begining,
it's your choise what you will do.
This is my third time trying to build glibc-2.3.6 in LFS V6.2 Chapter 6.9 amd I cannot resolve this error "cannot compute suffix of object files: cannot compile .."
I looked at the config.log which tells me the /bin/gcc is not a file or directory.
What am I missing here? Any help would very appreciated..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.