I am following the CLFS x86_64 docs and ran into a problem. glibc gets an error while building the 64 bit libs with the static cross-compiler.
I built this in a VM i686 and on real hardware with the same result. Ideas? Glib configuration: BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD64}" \ AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \ ${CLFS_BUILD}/glibc/configure --prefix=${CLFS}/tools \ --host=${CLFS_TARGET32} --build=${CLFS_HOST} \ --disable-profile --enable-add-ons=nptl \ --with-tls --enable-kernel=2.6.0 --with-__thread \ --with-binutils=${CLFS}/cross-tools/bin --with-headers=${CLFS}/tools/include \ --cache-file=config.cache Error line: gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/i386/tcb-offsets.sym \ | x86_64-other-linux-gnu-gcc -m64 -S -o /mnt/tools/build-x86_64-other-linux-gnu/glibc-build/tcb-offsets.hT3 -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=4 -I../include -I/mnt/tools/build-x86_64-other-linux-gnu/glibc-build/csu -I/mnt/tools/build-x86_64-other-linux-gnu/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/cross-tools/lib/gcc/x86_64-other-linux-gnu/4.1.1/include -isystem /mnt/tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \ -MD -MP -MF /mnt/tools/build-x86_64-other-linux-gnu/glibc-build/tcb-offsets.h.dT -MT '/mnt/tools/build-x86_64-other-linux-gnu/glibc-build/tcb-offsets.h.d /mnt/tools/build-x86_64-other-linux-gnu/glibc-build/tcb-offsets.h' In file included from ../nptl/sysdeps/i386/i686/tls.h:34, from ../include/tls.h:6, from ../sysdeps/unix/sysv/linux/i386/sysdep.h:30, from <stdin>:1: ../nptl/sysdeps/i386/i686/../tls.h:65:3: error: #error "TLS support is required." _______________________________________________ Clfs-support mailing list Clfs-support@lists.cross-lfs.org http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org