bootstrapping gnat GCC on amd64
Daniel Eischen
deischen at freebsd.org
Mon May 4 19:03:36 UTC 2009
On Mon, 4 May 2009, xorquewasp at googlemail.com wrote:
> On 2009-05-04 14:44:52, Daniel Eischen wrote:
>> Is that your only system (amd64)? I originally
>> ported GNAT to FreeBSD x86 from a solaris-sparc32 system.
>> I built a sparc-sun-freebsd GNAT cross compiler using
>> the native Solaris GNAT binary and its associated
>> sources. I also (first) had to cross build binutils
>> similarly. This made a cross compiler that ran on
>> Solaris and built ELF binaries for FreeBSD. I then
>> used this cross compiler to rebuild GNAT as a FreeBSD
>> binary. So it was 2 major steps: build a cross compiler,
>> then use the cross to build a native compiler.
>>
>> It's been years since I've done that. I don't know
>> how much has changed, but you probably have to do
>> something similar.
>>
>> --
>> DE
>
> Hello.
>
> I have a debian system with a working x86 gnat gcc 4.3.3
> and a freebsd x86 system running gnat gcc 4.3.2.
>
> I guess the first step will be an i386->amd64 cross
> compiler then.
Right, you should be able to do it from either of those,
but perhaps the freebsd x86 may be easier.
I would use a PREFIX other than /usr/local (or something
different than whatever your actual PREFIX is) for the
builds.
I was looking around for my notes but can't find them.
If I do find them, I'll post them.
--
DE
More information about the freebsd-hackers
mailing list