gnat cross-compiles ?
Andreas Schwab
schwab@suse.de
Fri Jun 7 06:15:00 GMT 2002
Joe Buck <Joe.Buck@synopsys.com> writes:
|> Marc Espie <espie@nerim.net> writes:
|> >
|> > |> I'd like to know which processors are happy with gnat in 3.1 (or the 3.1
|> > |> branch), and whether cross-compiles have a chance to work, before I embark
|> > |> on a wild goose chase...
|>
|> Andreas Schwab writes:
|> > We have already built gnat for ia64, alpha and ppc, via cross compiling
|> > from i386. Sparc, s390 and x86-64 are on my todo list.
|>
|> I think that cross-compiling is the most confusing part of GCC, we
|> certainly get more questions about that than anything else, even from
|> experts. Andreas, would you be willing to write a note describing your
|> process? It doesn't need to be thorough, it could be as simple as just
|> listing the exact sequence of commands you used to produce, say, the ppc
|> compiler by cross-compilation from i386.
I think the worst that can go wrong is that you *must* create ${libsubdir}
beforehand, otherwise the cross compiler does not find the target headers
(since all search paths are relative to ${libsubdir}). Further, if you
don't use a unified binutils+gcc tree, you should create links
${builddir}/gcc/{nm,objdump} pointing to the respective target programs
before running configure, so that it can figure out the right
capabilities. Everything else should be straight forward.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Gcc
mailing list