public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Jim Wilson <wilson@redhat.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Trouble building cross compilers
Date: Thu, 21 Mar 2002 21:01:18 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590701905316@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590701905309@msgid-missing>

>1) is it possible to build an x86 hosted gcc 3.0 ia64 cross compiler
>   without nue?  Or, which packages do I need to build a gcc cross
>   compiler?

Yes.

Andreas Schwab mentioned --with-headers=.  There is also a --with-libs= option.
You need to set up IA-64 .../usr/include and .../use/lib trees on the x86
host, and use these configure options to point at the IA-64 headers and libs
respectively.

There is also the matter that gcc 3.0 out of the box does not support cross
compiling from a 32-bit host to a 64-bit target.  This was fixed for gcc 3.1,
but could not be fixed in gcc 3.0 because of latent problems with the powerpc
(rs6000) port.  I've already pointed at the recommended solution:
http://gcc.gnu.org/ml/gcc/2002-02/msg00643.html

With these two changes, it should work, however, because gcc is big and
complicated and there are lots of things that can go wrong in a build.  Cross
compilers are much harder to get right than native compilers.  Personally, I
stopped building cross compilers once the ia64-linux systems were stable enough
such that I never had to worry about my native builds failing.

>2) does an x86 hosted gcc 3.0 ia64 cross compiler generate different
>   code than a native ia64 compiler?  If so, how different is the
>   generated code?

If you use the solution suggested by Steve Christiansen, then your cross
compiled code will be very different, mainly bigger and slower.  If you
use the solution I suggested, the code should be the same in theory, but
I don't know of anyone who has tried to verify this.

Jim


  parent reply	other threads:[~2002-03-21 21:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-21  2:30 [Linux-ia64] Trouble building cross compilers Jesse Barnes
2002-03-21 10:28 ` Andreas Schwab
2002-03-21 20:02 ` Steve Christiansen
2002-03-21 20:48 ` Jim Wilson
2002-03-21 21:01 ` Jim Wilson [this message]
2002-03-22  0:28 ` Jesse Barnes
2002-03-22  0:57 ` Keith Owens
2002-03-22  1:02 ` Jesse Barnes

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=marc-linux-ia64-105590701905316@msgid-missing \
    --to=wilson@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox