how to make 64bit cross compiler work

Rita Chiu chiubr at
Fri Aug 2 06:20:24 EST 2002

Hi Peter,

Thanks for your reply.

I tried to build the glibc following the instruction in this page:  However, I have no luck
into configuring it.  The error is that my Linux header files are TOO
OLD.  However, the kernel I am using is version 2.4.2, also it
shouldn't have check my system's
/usr/src/linux-2.4.2.SuSE/include/linux/version.h since I used
--with-headers option (right?).
Additionally, I couldn't find a <linux/version.h> under the
--with-headers directory.

The kernel souces I used for the kernel header files (--with-headers)
are from the linux-2.4.13.tar.gz file from and I patched
in linuxppc64-2.4.13-ibm-27.patch.gz from page.  I
am not sure if this is what <PPC64 Kernel headers> means from the glibc
instruction.  Also, I am not sure if my kernel is really too old to
build the glibc.

Would you please give me some advice?  Thanks again!

The information from my system using uname -smrpv:
Linux 2.4.2 #1 Mon Mar 12 12:20:25 GMT 2001 ppc unknown

The content of /usr/src/linux-2.4.2.SuSE/include/linux/version.h:
#define UTS_RELEASE "2.4.2"
#define LINUX_VERSION_CODE 132098
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

This is the configure command that I used:
../src/glibc-2.2.5/configure --prefix=/build/usr/local/powerpc64-linux
--with-headers=/build/kernel/linux/include --without-cvs
--enable-add-ons=linuxthreads --disable-profile --enable-shared
>/build/log/glibc-configure.log 2>&1

This is the error message that I got:
running configure fragment for
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
files.  To use kernel headers not from /usr/include/linux, use the
configure option --with-headers.

Best Regards,

Rita Chiu

** Sent via the linuxppc64-dev mail list. See

More information about the Linuxppc64-dev mailing list