[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cross compile glibc-2.3-6 problem.





I want to build a powerpc cross compiler platform.

but

usr/src/glibc-2.3.2.ds1/build# CC=ppc-linux-gcc ../glibc-2.3.2/configure --prefix=/home/icesky/binutils-2.17/ppc-linux --enable-add-ons  --host=ppc-linux --disable-profile --enable-kernel= 2.6.18 --with-headers=/usr/src/linux-2.6.18/include

appear


checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for long double... no
checking size of long double... 0
running configure fragment for ../glibc-2.3.2/sysdeps/pthread
running configure fragment for ../glibc-2.3.2/sysdeps/unix/sysv/linux
checking for egrep... (cached) grep -E
checking installed Linux kernel header files... TOO OLD!
configure: error: GNU libc requires kernel header files from
Linux 2.0.10 or later to be installed before configuring.
The kernel header files are found usually in /usr/include/asm and
/usr/include/linux; make sure these directories use files from
Linux 2.0.10 or later.  This check uses <linux/version.h>, so
make sure that file was built correctly when installing the kernel header
files.  To use kernel headers not from /usr/include/linux, use the
configure option --with-headers.
workstation:/usr/src/glibc-2.3.2.ds1/build#

what wrong with it?


Reply to: