From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Rob Landley <rob@landley.net>
Cc: Finn Thain <fthain@telegraphics.com.au>,
Sam Ravnborg <sam@ravnborg.org>,
LKML <linux-kernel@vger.kernel.org>,
Linux/m68k <linux-m68k@vger.kernel.org>
Subject: Re: [PATCH] Make m68k cross compile like every other architecture.
Date: Fri, 12 Oct 2007 08:51:50 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0710120849480.11634@anakin> (raw)
In-Reply-To: <200710111614.39879.rob@landley.net>
On Thu, 11 Oct 2007, Rob Landley wrote:
> On Thursday 11 October 2007 11:26:07 am Finn Thain wrote:
> My toolchains override the default prefix to just the target, resulting
> in "m68k-gcc". (It's shorter, and when you're creating a dozen toolchains
> having them all say -linux- in the middle of every command name gets a bit
> silly...)
>
> When it started complaining about "m68k-linux-gnu-gcc" (which is _not_ what my
> cross compiler is called) I spent half an hour tracking down where it was
> getting that name from and what exactly was going on. (Was my build script
> supplying the wrong name? Did something set an environment variable it
> shouldn't have? Did the gcc build suddenly reveal another strange buried
> corner case that made it revert to a default against explicit instructions
> _again_?)
>
> When I found the surprising behavior that cost me time and effort to diagnose,
> I submitted a patch so it wouldn't confuse future developers the first time
> _they_ try to build m68k. (Yes, I think there might be such. Call me
> crazy.) I've seen "didn't specify any cross compiler" failures before, on
> arm and x86-64 and mips and sparc and so on. I've seen it in the linux
> kernel, in busybox, in uClibc, and in various gnu packages
> with ./configureitis. This is the first time I've seen a package confidently
> decide for itself to use a compiler name that isn't in the $PATH, and
> especially the first time I've seen Linux do it. It cost me time to
> disagnose because it looks like it's getting a CROSS_COMPILE setting from its
> environment somehow, and the logical thing to do is look at that environment
> (and the build scripts driving it, and the temp files) to see where such a
> thing might be leaking in from. The fact it might be hallucinating its own
> value was not my first guess, because nothing else I've encountered does that
> in this context.
>
> > This wasn't an issue before we came to depend on cross compilers. Since we
> > tend to need them more as compilation becomes more expensive, IMHO we
> > should follow the practice of the embedded architectures.
>
> That topic's a can of worms, but I point out that you always needed a cross
> compiler to bootstrap a new platform. :)
>
> If you're going to support cross compiling at all, you might as well do it
> more or less consistently for all targets.
If your cross-compiler is called differently than the default on in
arch/*/Makefile, what's the problem with calling?
make ARCH=myarch CROSS_COMPILE=my-cross-compile-prefx-
This has been working for +10 years on all non-ia32 platforms I ever worked on.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2007-10-12 6:52 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 22:22 Rob Landley
2007-10-11 7:25 ` Geert Uytterhoeven
2007-10-11 11:31 ` Rob Landley
2007-10-11 11:39 ` Sam Ravnborg
2007-10-11 12:46 ` Geert Uytterhoeven
2007-10-11 13:27 ` Rob Landley
2007-10-11 13:52 ` Paul Mundt
2007-10-11 15:12 ` Geert Uytterhoeven
2007-10-11 16:26 ` Finn Thain
2007-10-11 21:14 ` Rob Landley
2007-10-12 6:51 ` Geert Uytterhoeven [this message]
2007-10-12 7:54 ` Finn Thain
2007-10-12 8:51 ` Geert Uytterhoeven
2007-10-12 10:21 ` Sam Ravnborg
2007-10-15 20:25 ` Geert Uytterhoeven
2007-10-16 0:31 ` Rob Landley
2007-10-16 4:15 ` Sam Ravnborg
2007-10-18 21:14 ` Sam Ravnborg
2007-10-19 6:38 ` Rob Landley
2007-10-19 15:10 ` Sam Ravnborg
2007-10-11 16:24 ` Sam Ravnborg
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=Pine.LNX.4.64.0710120849480.11634@anakin \
--to=geert@linux-m68k.org \
--cc=fthain@telegraphics.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@vger.kernel.org \
--cc=rob@landley.net \
--cc=sam@ravnborg.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
all inboxes | Powered by JetHome®