public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: "Stephen M. Kenton" <skenton@ou.edu>
Cc: gcc@gcc.gnu.org
Subject: Re: Why is building a cross compiler "out-of-the-box" always broken?
Date: Sat, 18 Aug 2007 20:12:00 -0000	[thread overview]
Message-ID: <1d2196e08f6a3da5183e4aa9d9fa06bd@kernel.crashing.org> (raw)
In-Reply-To: <46C603EC.4070004@ou.edu>

> So, my open questions to the list are, what is/should be the preferred 
> way to bootstrap a cross compiler/glibc environment?

This likely isn't the preferred way, but the following builds
a cross toolchain for all but a few Linux targets:


$SRC/src/configure \
         --target=$TARGET --prefix=$PREFIX
make
make install


$SRC/gcc/configure \
         --target=$TARGET --enable-targets=all \
         --prefix=$PREFIX \
         --enable-languages=c --without-headers \
         --disable-nls --disable-multilib --disable-threads 
--disable-shared \
         --disable-libmudflap --disable-libssp --disable-libgomp \
         --disable-decimal-float \
         --enable-sjlj-exceptions
make
make install


(blackfin compiler needs to be configured as bfin-linux-uclibc,
cris compiler won't build, h8300 compiler won't build, ia64
compiler won't build -- some embedded targets seem to need
unmerged patches to work for building Linux but I don't bother).

All "normal" targets work fine.

People on the build farm can find this stuff in gcc13:~segher/build,
and installed toolchains (build off mainline) in ~segher/cross.
I do some fresh builds almost every day.


Segher

p.s. Any advice on how to get more targets working would be
more than welcome :-)

  parent reply	other threads:[~2007-08-18 18:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-17 20:29 Stephen M. Kenton
2007-08-17 20:40 ` Andrew Pinski
2007-08-17 22:17   ` Stephen M. Kenton
2007-08-17 21:57 ` David Daney
2007-08-18  8:00   ` Andrew Haley
2007-08-18 10:50     ` David Daney
2007-08-17 22:06 ` Ian Lance Taylor
2007-08-18 14:38   ` René Rebe
2007-08-18 20:12 ` Segher Boessenkool [this message]
2007-08-19  8:09   ` Rask Ingemann Lambertsen
2007-08-19 10:46     ` Paolo Bonzini
2007-08-19 18:52       ` Paolo Bonzini
2007-08-19 22:10       ` Steve Kenton
2007-08-20  1:22         ` Segher Boessenkool
2007-08-20  2:09           ` Steve Kenton
2007-08-20  9:16             ` Segher Boessenkool
2007-08-20 11:43               ` Kai Ruottu
2007-08-20 13:12                 ` Daniel Jacobowitz
2007-08-22 21:47       ` Rask Ingemann Lambertsen
2007-08-23  6:20         ` Paolo Bonzini
2007-09-12  5:16 NightStrike

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=1d2196e08f6a3da5183e4aa9d9fa06bd@kernel.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=gcc@gcc.gnu.org \
    --cc=skenton@ou.edu \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).