Console trouble with glibc compiled with gcc-3.4.x

Martin Schaffner
Sun Jul 25 19:35:00 GMT 2004

I am maintaining the Linux from Scratch Hint "LFS from OSX" 
( I 
tried cross-compiling glibc-2.3.2 using Mac OS X as build for a 
GNU/Linux/PPC host. I use crosstool-0.28-rc28 available from
If I compile glibc-2.3.2 using gcc-3.3.3, everything is OK.
If I compile glibc-2.3.2 using gcc-3.4.0 or gcc-3.4.1, then the console 
is broken: It doesn't display the bash prompt, and it echoes input but 
doesn't process it (like after typing `cat > /dev/null`).

Some notes:
* vmlinux.elf-pmac version 2.6.7 is always at the root of the Mac OS X 
root partition
* /tools is a normal directory on the Mac OS X root partition
* I patched all packages to cross-compile cleanly. These patches should 
have no effect on the bug, since it runs perfectly if compiled with 

Here's in detail what I did after compiling crosstool with the 
different gcc versions:

* Install the headers from linux-2.4.26:
mkdir -p /tools/include/asm
cp include/asm/* /tools/include/asm
cp -R include/asm-generic /tools/include
cp -R include/linux /tools/include
touch /tools/include/linux/autoconf.h

* Install glibc:
BUILD_CC=gcc CC=powerpc-750-linux-gnu-gcc AR=powerpc-750-linux-gnu-ar 
RANLIB=powerpc-750-linux-gnu-ranlib  ../glibc-2.3.2/configure 
--prefix=/tools     --disable-profile --enable-add-ons     
--with-headers=/tools/include         --without-gd  
--build=powerpc-apple-darwin7.2.0 --host=powerpc-750-linux-gnu
make install

* Install bash:
./configure --prefix=/tools --build=powerpc-apple-darwin7.2.0 

* Reboot from OpenFirmware:
boot hd:11,vmlinux.elf-pmac root=/dev/hda11 devfs=mount 

How can I narrow down this problems?


Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list