Trouble building a cross compiler

Sangmoon Kim dogoil at
Mon Apr 15 12:20:39 EST 2002

> Now the problem lies with my glibc.  I do the following, which I got
> from the instructions for building a sh4-linux target but with some
> input for the embedded power pc stuff and it doesn't work.
> CC=powerpc-linux-gcc AR=powerpc-linux-ar RANLIB=powerpc-linux-ranlib
> configure --host=$TARGET --prefix=$PREFIX
> --with-headers=$PREFIX/TARGET/include --disable-debug
> --disable-profile --disable-sanity-checks
> make
It seams like you forgot the linuxthreads thing.
Try this.
tar -xzf glibc-2.2.5.tar.gz
cd glibc-2.2.5
tar -xzf ../glibc-linuxthreads-2.2.5.tar.gz
cd ..
mkdir build-glibc; cd build-glibc
CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib \
   ../glibc-2.2.5/configure --host=$TARGET --prefix=${PREFIX}/${TARGET} \
   --enable-add-ons=linuxthreads --with-headers=${PREFIX}/${TARGET}/include \
   2>&1 | tee configure.log
make all install info install-info 2>&1 | tee make.log
cd ..
- Sangmoon Kim -

** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list