LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Problem With Installing Glibc-2.3.3 (https://www.linuxquestions.org/questions/linux-from-scratch-13/problem-with-installing-glibc-2-3-3-a-161543/)

alexina 03-23-2004 06:16 PM

Problem With Installing Glibc-2.3.3
 
Hi all :p

I'm in Chapter 6. Installing basic system software trying my glibc compilation with



Code:

../glibc-2.3.3-20031202/configure --prefix=/usr \
    --disable-profile --enable-add-ons=linuxthreads \
    --libexecdir=/usr/lib --with-headers=/usr/include \
    --without-cvs

And I get this error :

Code:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking sysdep dirs... sysdeps/i386/elf linuxthreads/sysdeps/unix/sysv/linux/i386 linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/i386/i686 linuxthreads/sysdeps/i386 sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 sysdeps/i386/fpu 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... /tools/bin/install -c
checking whether ln -s works... yes
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.

here is the config.log file:


Code:

configure:2281: found /tools/bin/gcc
configure:2291: result: gcc
configure:2535: checking for C compiler version
configure:2538: gcc --version </dev/null >&5
../glibc-2.3.3-20031202/configure: line 1: /tools/bin/gcc: No such file or directory
configure:2541: $? = 127
configure:2543: gcc -v </dev/null >&5
../glibc-2.3.3-20031202/configure: line 1: /tools/bin/gcc: No such file or directory
configure:2546: $? = 127
configure:2548: gcc -V </dev/null >&5
../glibc-2.3.3-20031202/configure: line 1: /tools/bin/gcc: No such file or directory
configure:2551: $? = 127
configure:2555: checking for suffix of object files
configure:2577: gcc -c  conftest.c >&5
../glibc-2.3.3-20031202/configure: line 1: /tools/bin/gcc: No such file or directory
configure:2580: $? = 127
configure: failed program was:
| #line 2560 "configure"
| /* 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:2594: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


Did I forgot something ??

thx in advance for your help

Alexina

iluvatar 03-24-2004 03:10 AM

did your gcc (second pass, see page 78) build correctly in chapter 5? I think something went wrong there... did you work through all tests / patches etc there? did you compile it with the --languages=c,c++? this is critical, because you need support for bith languages... and after pass 2 of gcc, did you do the sanity check? (compiling the dummy program, see page 72)

good luck with this...
-= iluvatar =-

NOTE: the page numbers are for version 5 of the LFS book....

jeffholman 10-11-2005 09:33 PM

alexina,

did you ever fix this problem? I'm getting the same error. Did you have to restart?

mr_demilord 10-13-2005 11:51 AM

Quote:

Originally posted by jeffholman
alexina,

did you ever fix this problem? I'm getting the same error. Did you have to restart?

No linux doesn't have to restart, only if you compiled a kernel.
There went something wrong with the Gnu C Compiler.
GCC is a pain to install. The only way I got it installed is to copy paste the ./configure code , don't ask me why..

hoes 10-15-2005 03:45 PM

I allready typed something about a problem with compileing gcc second paas.
Maybe it's worth looking at.
Just follow this link to my Older post .
Also try this sanity check:

$ echo "main {} ()" > dummy.cc
$ gcc dummy.cc

If that works c++ works. If it doesn't than you must certainly recompile gcc.

Good Luck,
Hoes


All times are GMT -5. The time now is 09:21 AM.