uclibc vs glibc

Robert Connolly robert at linuxfromscratch.org
Tue Nov 2 23:23:48 PST 2004


I still have no luck getting the stage 1 toolchain up. The scripted toolchains 
for Uclibc work fine for me, I logged their commands but so far I'm unable to 
reproduce it by hand.

I unpack Uclibc and Linux, point uclibc's config to the linux sources, do 
`make headers`, and copy Uclibc/include/* to /tools/include. I notice uclibc 
uses symlinks for include/asm and include/linux which is a bad habit, but I 
leave the linux sources alone so the symlinks stay working. I build binutils 
(with uclibc's patches) with --build=i386-pc-linux-gnu 
--host=i386-pc-linux-gnu --target=i386-linux-uclibc. Then I get stuck on gcc 
trying to build the same cross target (with uclibc's patches) with 
--enable-languages=c. I get:

../../gcc-3.4.2/gcc/config/i386/linux.h:227:20: signal.h: No such file or 
directory
../../gcc-3.4.2/gcc/config/i386/linux.h:228:26: sys/ucontext.h: No such file 
ordirectory
make[2]: *** [libgcc/./_muldi3.o] Error 1

Even though /tools/include/{signal.h,sys/ucontext.h} both exist. If I 
experiment more I continue getting lots of errors about missing headers that 
are not missing. :(

Robert



More information about the hlfs-dev mailing list