Re: Recommended compiler version

From: Dan Kegel
Date: Sat May 29 2004 - 19:24:57 EST


Karim Yaghmour wrote:
RANT: It's really about time that someone within the GNU project took it
upon herself to actually get the GNU toolchain to build for cross-dev
without having to require walking-on-water talents.

Quite. I'm heading up to the gcc summit next week to make that point
(see also http://gcc.gnu.org/ml/gcc/2004-05/msg01417.html,
which rumors that Paolo Bonzini and Nathanael Nerode are
working on detangling gcc bootstrap).

And I've been busting my ass for the last year maintaining the 'crosstool'
script so people without walking-on-water talents can build
the GNU toolchain for cross-development. (But before Karim objects
to the concept of a canned build script, I hasten to add that
I fully agree with him that the gnu toolchain build process shouldn't
need such an ugly and fragile wrapper script around it.)

BTW, the 2.6.6 kernel wouldn't build without the following
modifications to the main makefile:
AS = $(CROSS_COMPILE)as -maltivec
CFLAGS_KERNEL = -maltivec
AFLAGS_KERNEL = -maltivec
For some reason 3.4.0 forgets to tell AS that this CPU may have
Altivec instructions -- there are some postings about this if
you google around.

I think the issue is that binutils-2.15 started checking its
input more strictly, in a way that broke several apps. Binutils
cvs has the following patch which is said to relex the check:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/opcodes/ppc-opc.c.diff?r1=1.70&r2=1.71&cvsroot=src
That patch'll be in the next crosstool, of course.

Thanks for posting about your experiences with gcc-3.4.0
and the link to http://www.ppckernel.org, which I wasn't aware of...
- Dan

--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/