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

From: Dan Kegel <>
Date: 2004-02-11 16:59:58
David Mosberger wrote:
>>>>>>On Sun, 01 Feb 2004 17:19:08 -0800, Dan Kegel <> 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...).

But how do I do that when I'm building the cross-compiler?
As far as I can tell, it looks like offsets.h is needed to
compile the cross-compiler.  Perhaps I can compile the bootstrap
compiler with a dummy version of offsets.h?

Have you ever tried to build a cross-compiler for ia64 from
virgin gnu tarballs without referring to any installed tools?
That's what I am trying to do with
Works great for most architectures, and it used to work fine for
ia64, but it broke when y'all took offsets.h out of the kernel source
tree, I think.
- Dan

US citizens: if you're considering voting for Bush, look at these first:
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Wed Feb 11 01:04:24 2004

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