Date: Mon, 18 May 2009 18:36:15 -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.0905181828110.20749@sea.ntplx.net> In-Reply-To: <20090518084831.GA95354@logik.internal.network> References: <20090504185644.GA16315@logik.internal.network> <Pine.GSO.4.64.0905041459500.16666@sea.ntplx.net> <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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 18 May 2009, xorquewasp@googlemail.com wrote: > Hi. > > After a week off, another update: > > I've realised, too late, that I'm using a version of binutils > (2.19) that's incompatible with the system binutils (2.15). > Specifically, assembler code emitted by the native GNAT contains > .cfi_personality directives (and no doubt other things too) that > can't be processed by the system 'as'. > > I've got two choices now and would appreciate some advice on > which to take given that I want to produce a FreeBSD port: > > 1. Compile binutils-2.15. > > Unfortunately, compiling these as cross-binutils appear to be problematic: Hmm, if the system binutils is 2.15, then it should build as a cross. You can do a cross build of all FreeBSD - I think you just set TARGET="amd64" to build amd64 from a different arch. Part of this process should be to create a cross binutils toolset. > 2. Continue to use binutils-2.19. > > This would appear to require me to create a binutils-2.19 port > just for the GNAT compiler. Seems like it would be preferable > to use the system binutils rather than to take this route... 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. -- DE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0905181828110.20749>