All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Kegel <dank@kegel.com>
To: linux-ia64@vger.kernel.org
Subject: Re: offsets.h and 32 -> 64 bit cross-compiling
Date: Wed, 11 Feb 2004 05:59:58 +0000	[thread overview]
Message-ID: <4029C4DE.2070107@kegel.com> (raw)
In-Reply-To: <401DA58C.8070105@kegel.com>

David Mosberger wrote:
>>>>>>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...).

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 http://kegel.com/crosstool
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:
http://www.misleader.org/
http://www.cbc.ca/news/background/arar/
http://www.house.gov/reform/min/politicsandscience/

  parent reply	other threads:[~2004-02-11  5:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-02  1:19 offsets.h and 32 -> 64 bit cross-compiling Dan Kegel
2004-02-10 21:16 ` David Mosberger
2004-02-11  5:59 ` Dan Kegel [this message]
2004-02-11  6:17 ` Keith Owens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4029C4DE.2070107@kegel.com \
    --to=dank@kegel.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.