Re: offsets.h and 32 -> 64 bit cross-compiling

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2004-02-11 08:16:21
>>>>> On Sun, 01 Feb 2004 17:19:08 -0800, Dan Kegel <dank@kegel.com> said:

  Dan> Sadly, that fix seems to be insufficient.

  Dan> On my x86 build machine, 'make ARCH=ia64 dep' for linux-2.4.21 now fails with errors like

  Dan> gcc -g -O2 -Wall -D__KERNEL__ -I/cross/linux-2.4.21/include -DKBUILD_BASENAME= print_offsets.c -o print_offsets

Umh, you're using the wrong compiler.  You must use the IA-64
cross-compiler for print_offsets.c.  That's the entire point of
generating offsets.h at build-time: to ensure the definitions match
your (IA-64) compiler (and kernel-configuration).

When cross-compiling, you must set CROSS_COMPILE to the path that
contains the cross-tools.  When you do that, print_offsets.c will only
be translated to print_offsets.s and then converted to offsets.h via a
small awk-script.  Something like:

	make CROSS_COMPILE=/opt/ia64-cross-compiler/bin/

should do (with the correct path of course...).

	--david
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Feb 10 16:20:06 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:22 EST