how to make 64bit cross compiler work

Ken Tossell ken at tossell.net
Fri Aug 2 09:28:51 EST 2002


the glibc-alpha  page is ONLY for ppc64 with 64bit kernels.

ken tossell


On Thu, 1 Aug 2002, Rita Chiu wrote:

>
> Hi Peter,
>
> Thanks for your reply.
>
> I tried to build the glibc following the instruction in this page:
> http://www.penguinppc64.org/glibc-alpha.shtml.  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 ftp.kernel.org and I patched
> in linuxppc64-2.4.13-ibm-27.patch.gz from ftp.linuxppc64.org 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
> ../src/glibc-2.2.5/sysdeps/unix/sysv/linux
> 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.
>
>
> Best Regards,
>
> Rita Chiu
>
>
>


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list