compiling glibc staticly - error
I am trying to compile glibc for my linux from scratch system i am bilding but i get the error
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
so i check my config.log and it says
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1676: checking build system type
configure:1694: result: i686-pc-linux-gnuoldld
configure:1702: checking host system type
configure:1716: result: i686-pc-linux-gnuoldld
configure:1860: checking sysdep dirs
configure:2074: result: sysdeps/generic/elf sysdeps/generic
configure:2092: checking for a BSD-compatible install
configure:2146: result: /static/bin/install -c
configure:2161: checking whether ln -s works
configure:2165: result: yes
configure:2180: checking for pwd
configure:2198: found /bin/pwd
configure:2211: result: /bin/pwd
configure:2230: checking for gcc
configure:2246: found /static/bin/gcc
configure:2256: result: gcc
configure:2270: checking version of gcc
configure:2280: result: 3.3.1, ok
configure:2291: checking for gnumake
configure:2320: result: no
configure:2291: checking for gmake
configure:2320: result: no
configure:2291: checking for make
configure:2307: found /static/bin/make
configure:2317: result: make
configure:2331: checking version of make
configure:2341: result: 3.80, ok
configure:2365: checking for gnumsgfmt
configure:2394: result: no
configure:2365: checking for gmsgfmt
configure:2394: result: no
configure:2365: checking for msgfmt
configure:2394: result: no
configure:2426: checking for makeinfo
configure:2442: found /static/bin/makeinfo
configure:2452: result: makeinfo
configure:2466: checking version of makeinfo
configure:2476: result: 4.6, ok
configure:2487: checking for sed
configure:2503: found /static/bin/sed
configure:2513: result: sed
configure:2527: checking version of sed
configure:2537: result: 4.0.7, ok
configure:2925: checking for C compiler version
configure:2928: gcc --version </dev/null >&5
gcc (GCC) 3.3.1
Copyright (C) 2003 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:2931: $? = 0
configure:2933: gcc -v </dev/null >&5
Reading specs from /static/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with: ./gcc-3.3.1/configure --prefix=/dev/hdc1/static --disable-nls --disable-shared --with-as=/mnt/lfs/static/bin/as --with-ld=/mnt/lfs/static/bin/ld : (reconfigured) ./gcc-3.3.1/configure --prefix=/mnt/lfs/static --disable-nls --disable-shared --with-as=/mnt/lfs/static/bin/as --with-ld=/mnt/lfs/static/bin/ld
Thread model: posix
gcc version 3.3.1
configure:2936: $? = 0
configure:2938: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2941: $? = 1
configure:2945: checking for suffix of object files
configure:2967: gcc -c conftest.c >&5
***************************************************
(i think this its the problem)
gcc: installation problem, cannot exec `/static/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/as': No such file or directory
(but i checked an this file is there /i686-pc-linux-gnu/bin/as)
***********************************************************
configure:2970: $? = 1
configure: failed program was:
| #line 2950 "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:2984: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
|