> > > So I can build all of glibc with the --without-headers gcc? > > Yeap. > Small tweak here. glibc failed to build with the simple minded gcc with this error: > i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/iconv_prog -Wl,-dynamic-linker=/lib/ld-linux.so.2 -Wl,-z,combreloc -Wl,-z,relro /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/csu/crt1.o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/csu/crti.o `i686-pc-linux-gnu-gcc --print-file-name=crtbegin.o` /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/iconv_prog.o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/iconv_charmap.o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/charmap.o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/charmap-dir.o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/linereader.o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/dummy-repertoire.o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/simple-hash.o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/xstrdup.o /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/xmalloc.o -Wl,-rpath-link=/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build:/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/math:/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/elf:/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/dlfcn:/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/nss:/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/nis:/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/rt:/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/resolv:/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/crypt:/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/nptl /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/libc.so.6 /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/libc_nonshared.a -lgcc -lgcc_eh `i686-pc-linux-gnu-gcc --print-file-name=crtend.o` /home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/csu/crtn.o > /opt/cendio-build/arch/i386/usr/bootstrap/lib/gcc/i686-pc-linux-gnu/4.5.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgcc_eh > collect2: ld returned 1 exit status > make[2]: *** [/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/build/iconv/iconv_prog] Error 1 > make[2]: *** Waiting for unfinished jobs.... > make[2]: Leaving directory `/home/cendio/cenbuild.git/repo/rpmbuild/BUILD/glibc-2.3.6/iconv' So I symlinked libgcc_eh.a to libgcc.a, as it seems most of its objects ended up in there with --disable-shared. That made glibc compile at least. Hopefully it also works correctly. :) Rgds -- Pierre Ossman Software Development Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Linköping https://facebook.com/ThinLinc Phone: +46-13-214600 https://plus.google.com/+CendioThinLinc A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
Attachment:
signature.asc
Description: PGP signature