Date: Tue, 19 May 2009 09:51:08 -0400 (EDT) From: Daniel Eischen <eischen@vigrid.com> To: xorquewasp@googlemail.com Cc: freebsd-hackers@freebsd.org Subject: Re: bootstrapping gnat GCC on amd64 Message-ID: <Pine.GSO.4.64.0905190945330.25229@sea.ntplx.net> In-Reply-To: <20090519114548.GA8610@logik.internal.network> References: <20090505005128.GA4519@logik.internal.network> <Pine.GSO.4.64.0905042052320.16666@sea.ntplx.net> <20090505022151.GA32477@logik.internal.network> <Pine.GSO.4.64.0905042224180.16666@sea.ntplx.net> <20090506140325.GA69468@logik.internal.network> <Pine.GSO.4.64.0905061043420.26946@sea.ntplx.net> <20090506152222.GC69468@logik.internal.network> <20090508211022.GA37475@logik.internal.network> <20090518084831.GA95354@logik.internal.network> <Pine.GSO.4.64.0905181828110.20749@sea.ntplx.net> <20090519114548.GA8610@logik.internal.network>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 May 2009, xorquewasp@googlemail.com wrote: > On 2009-05-18 18:36:15, Daniel Eischen wrote: >> Well, I used a newer binutils on sparc when I did the original >> port. Once I built the cross compiler and binutils toolset, >> I was done with it. After the native compiler is built using >> the cross tools, you should be able to rebuild the native >> compiler _again_ but this time with the system (amd64) >> binutils. > > I probably should point out that I don't think this is the case anymore. > > GCC apparently detects what capabilities the currently selected binutils > have so when the first native compiler has been compiled using the > cross, it will emit code that can't be assembled using the system > binutils (because it uses features from the new binutils that aren't > supported by the older system ones). In other words, you can't rebuild the > native compiler using the system binutils. > > If the worst comes to the worst, I can create a dependency on the > devel/cross-binutils port. Even so, you shouldn't need a cross-binutils, only a native (amd64) binutils. Your port won't be a cross port, but a native amd64 port. The native amd64 GNAT will need a native binutils, not a cross binutils. The only thing you will have to make is a minimal bootstrap (native amd64) compiler. Of course you can create a cross port if you want to facilitate cross builds for ports that don't exist yet, but no one running amd64 will want to make a cross build when they can make a faster native build with less dependencies. -- DE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0905190945330.25229>