This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling glibc 2.5 -> asm/prctl.h: No such file or directory


I'm trying to build glibc 2.5 with a bootstrap i386 compiler on a x86_64 host.

I have configured the build witht the following command line:

CC=${TARGET}-gcc ../glibc-2.5/configure --target=$TARGET
--prefix=$PREFIX --with-headers=${TARGET_PREFIX
}/include --enable-add-ons=linuxthreads --without-tls --without-cvs
--disable-sanity-checks

where TARGET = i386-pc-linux-gnu and PREFIX = /usr/local/crossgcc

When I do a 'make all' I get the following error:

In file included from ../linuxthreads/sysdeps/x86_64/tls.h:25,
                from ../include/tls.h:6,
                from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:26,
                from <stdin>:1:
../linuxthreads/sysdeps/x86_64/pt-machine.h:27:24: error: asm/prctl.h:
No such file or directory
make[2]: *** [/home/dallas/crossbuild/build-glibc/glibc-build/tcb-
offsets.h] Error 1
make[2]: Leaving directory `/home/dallas/crossbuild/build-glibc/glibc-2.5/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/dallas/crossbuild/build-glibc/glibc-2.5 '
make: *** [all] Error 2

Does anyone know how to overcome this error?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]