Hi, I compiled a toolchain using the cross-tool (0.37) and noticed that the libc was created for linuxthreads. I tried using GLIBC_ADDON_OPTIONS=nptl, but it ended up with an error:
*** On GNU/Linux systems it is normal to compile GNU libc with the *** `linuxthreads' add-on. Without that, the library will be *** incompatible with normal GNU/Linux systems. *** If you really mean to not use this add-on, run configure again *** using the extra parameter `--disable-sanity-checks'. Can someone please tell me how should I compile for NPTL?my armeb-xscale.dat : KERNELCONFIG=`pwd`/arm.config TARGET=armeb-xscale-linux-gnu TARGET_CFLAGS="-O" GCC_EXTRA_CONFIG="--with-cpu=xscale --enable-cxx-flags=-mcpu=xscale" BINUTILS_DIR=binutils-2.15 GCC_DIR=gcc-3.4.4 GLIBC_DIR=glibc-2.3.3 GLIBC_ADDON_OPTIONS=nptl LINUX_DIR=linux-2.6.12 GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.3
and the relevant sh file is: #!/bin/sh set -ex TARBALLS_DIR=$HOME/downloads RESULT_TOP=/opt/crosstool export TARBALLS_DIR RESULT_TOP GCC_LANGUAGES="c,c++" export GCC_LANGUAGES
# Really, you should do the mkdir before running this, # and chown /opt/crosstool to yourself so you don't need to run as root. mkdir -p $RESULT_TOP
# Build the toolchain. Takes a couple hours and a couple gigabytes.
# gcc-3.3 doesn't support this, need gcc-3.4 #eval `cat arm-xscale.dat gcc-3.4.0-glibc-2.3.2.dat` sh all.sh --notest #eval `cat arm-xscale.dat gcc-3.4.1-glibc-2.3.3.dat` sh all.sh --notest #eval `cat arm-xscale.dat gcc-3.4.1-glibc-20040827.dat` sh all.sh
--notest eval `cat armeb-xscale.dat gcc-3.4.2-glibc-20040827.dat` sh all.sh
--notest
echo Done.
thanks, Eran