Crosscompiling issues with glibc-2.3.4
Jeremy Huddleston
eradicator@gentoo.org
Sat Feb 12 22:09:00 GMT 2005
In putting together gentoo's latest ebuild for glibc, I came across a
few issues with the build.
1) When using static gcc, you try to -lgcc_eh:
This was originally discussed back in 2003[1], and I took out our hack
as I thought it was fixed, but it appears I was wrong. When we don't
have libgcc_eh (such as with a static gcc for crosscompilation), glibc
still tries to -lgcc_eh
[1] http://sources.redhat.com/ml/libc-alpha/2003-09/msg00100.html
2) You need an installed glibc to build glibc+nptl
nptl/sysdeps/pthread/configure.in's check for forced unwind support uses
AC_TRY_LINK, but that will only work if we already have a libc
installed.
./configure's tail:
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... no
configure: error: forced unwind support is required
relevant part in config.log:
configure:27: checking for forced unwind support
configure:51: sparc-unknown-linux-gnu-gcc -o conftest -O2 -pipe -O2
-fcall-used-
g6 -O2 conftest.c >&5
/usr/lib/gcc/sparc-unknown-linux-gnu/3.4.3-20050110/../../../../sparc-unknown-li
nux-gnu/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
--Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20050212/36db9282/attachment.sig>
More information about the Libc-alpha
mailing list