[crosstool-ng] problem building glibc
Chuck Tuffli
ctuffli@gmail.com
Mon Jan 19 19:18:00 GMT 2009
Hi -
I'm a newbie to crosstool-ng and may just be doing something stupid, but ...
I have version 1.3.1 of ct-ng and am trying to build an ARM EABI tool
chain with:
binutils 2.19
gcc 4.1.2
glibc 2.5 + linuxthreads
but get a configuration error in glibc:
[DEBUG] ==> Executing:
'/home/ctuffli/dev/toolroot/targets/src/glibc-2.5/configure
--prefix=/usr --build=i486-build_pc-linux-gnu
--host=arm-unknown-linux-gnueabi --without-cvs --disable-profile
--disable-debug --without-gd --disable-sanity-checks
--cache-file=config.cache
--with-headers=/home/ctuffli/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sys-root/usr/include
--with-__thread --without-tls --without-nptl --enable-shared
--without-fp --enable-add-ons=linuxthreads --enable-kernel=2.6.26'
[ALL ] configure: loading cache config.cache
[ALL ] checking build system type... i486-build_pc-linux-gnu
[ALL ] checking host system type... arm-unknown-linux-gnueabi
[ALL ] configure: running configure fragment for add-on linuxthreads
[ERROR] checking sysdep dirs... configure: error: The arm is not supported.
[ERROR] Build failed in step 'Installing C library'
Changing line 412 of glibc.sh from
--host=${CT_TARGET}
to
--target=${CT_TARGET}
gets past the initial problem, but there is a subsequent failure
...
[ERROR] checking size of long double... configure: error: cannot
compute sizeof (long double), 77
[ALL ] See `config.log' for more details.
[ERROR] Build failed in step 'Installing C library'
[ERROR] Error happened in
'/usr/local/lib/ct-ng-1.3.1/scripts/functions' in function
'CT_DoExecLog' (line unknown, sorry)
[ERROR] called from
'/usr/local/lib/ct-ng-1.3.1/scripts/build/libc/glibc.sh' at line # 403
in function 'do_libc'
[ERROR] called from
'/usr/local/lib/ct-ng-1.3.1/scripts/crosstool.sh' at line # 475 in
function 'main'
[ERROR] Look at
'/home/ctuffli/x-tools/arm-unknown-linux-gnueabi/build.log' for more
info on this error.
The relevant part of config.log
...
configure:7255: checking size of long double
configure:7574: arm-unknown-linux-gnueabi-gcc -pipe -o conftest
-mlittle-endian -mtune=arm926ej-s -msoft-float -O conftest.c
>&5
/opt/home/ctuffli/dev/toolroot/targets/arm-unknown-linux-gnueabi/build/gcc-core-static/bin/../lib/gcc/arm-unknown-linux-gnueabi/4.1.2/../../../../arm-unknown-linux-gnueabi/bin/ld:
crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:7577: $? = 1
configure: program exited with status 1
Sure enough, I can't find crt1.o either (but did find other crt*.o
files). Was the --target change the wrong fix or is the missing file
another problem? Thanks!
---chuck
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list