This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] ppc64 native target for gcc

On Nov 10, 2006, at 6:04 AM, Bradley Lucier wrote:
This is very nice. How am I supposed to build it?

The standard answer is you build a cross compiler from 32 to 64


then you use that to build a native compiler:

CC=gcc from above configure --host=powerpc64-apple-darwin8.8.0 -- build=powerpc64-apple-darwin8.8.0 --target=powerpc64-apple-darwin8.8.0

I think that's even about how Eric builds them. I think he used a slightly modified build_gcc from our internal building method.

For the tools to use with the first, you need gcc, ar, ranlib, as, ld, nm and so on with the cross style names. Internally we just create shell scripts that invoke /usr/bin/as and so on. Be sure to point the cross as /usr/include and /usr/lib for headers and libraries.

Another way, might be for Eric to upload an already built compiler, so that you don't have to bootstrap one, then you just CC=that_gcc and configure and build as normal.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]