Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 2009 14:44:52 -0400 (EDT)
From:      Daniel Eischen <deischen@freebsd.org>
To:        xorquewasp@googlemail.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: bootstrapping gnat GCC on amd64
Message-ID:  <Pine.GSO.4.64.0905041432000.16666@sea.ntplx.net>
In-Reply-To: <20090504182714.GA52480@logik.internal.network>
References:  <20090504182714.GA52480@logik.internal.network>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 4 May 2009, xorquewasp@googlemail.com wrote:

> Hello.
>
> I'm attempting to compile GNAT on AMD64 with an eye to
> extending support to the platform (the gnat-gcc43 port
> is ONLY_FOR_ARCH=i386).
>
> GNAT obviously requires an Ada compiler to bootstrap.
>
> What are my options here?
>
> I suspect that I need to create an i386 jail to build
> a cross compiler but am not sure.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0905041432000.16666>