Re: bootstrapping gnat GCC on amd64

2009-07-04 Thread xorquewasp
Status update: http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00102.html I replied to the last email in the thread but haven't heard back yet. Presumably I'll be maintaining the FreeBSD x86_64 port. I'm about to start work on the FreeBSD port now. ___

Re: bootstrapping gnat GCC on amd64

2009-06-29 Thread Daniel Eischen
How's this all going? I'm updating lang/gnat to gnat-2009 right now. In the GNAT sources, it has build instructions including how to build the cross - see below. -- DE -- -- BUILDING GNAT - EXAMPLE SEQUENCE -- --

Re: bootstrapping gnat GCC on amd64

2009-05-19 Thread xorquewasp
On 2009-05-18 18:36:15, Daniel Eischen wrote: 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

Re: bootstrapping gnat GCC on amd64

2009-05-19 Thread xorquewasp
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

Re: bootstrapping gnat GCC on amd64

2009-05-19 Thread Daniel Eischen
On Tue, 19 May 2009, xorquew...@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

Re: bootstrapping gnat GCC on amd64

2009-05-19 Thread Daniel Eischen
On Tue, 19 May 2009, xorquew...@googlemail.com wrote: On 2009-05-18 18:36:15, Daniel Eischen wrote: 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

Re: bootstrapping gnat GCC on amd64

2009-05-19 Thread xorquewasp
On 2009-05-19 09:51:08, Daniel Eischen wrote: 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

Re: bootstrapping gnat GCC on amd64

2009-05-18 Thread xorquewasp
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

Re: bootstrapping gnat GCC on amd64

2009-05-18 Thread xorquewasp
On 2009-05-18 09:48:31, xorquew...@googlemail.com wrote: 1. Compile binutils-2.15. Unfortunately, compiling these as cross-binutils appear to be problematic: gmake[3]: Entering directory `/root/memfs/c1-bu-obj/gas' gcc -DHAVE_CONFIG_H -I. -I/root/binutils-2.15/gas -I. -D_GNU_SOURCE

Re: bootstrapping gnat GCC on amd64

2009-05-18 Thread Daniel Eischen
On Mon, 18 May 2009, xorquew...@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

Re: bootstrapping gnat GCC on amd64

2009-05-08 Thread xorquewasp
Just an update. Finally managed to get the i386 - amd64 compiler to compile gcc 4.4.0. It took a few Makefile patches as for some reason, cross compilation breaks gnatmake. About to try to get the amd64 compiler to compile itself and run the test suite. Added a system-freebsd_x86_64.ads profile

Re: bootstrapping gnat GCC on amd64

2009-05-06 Thread xorquewasp
On 2009-05-06 10:57:25, Daniel Eischen wrote: Back in the day when I did it, it was with gcc-2.7.x or gcc-2.8.x I believe. The cross build process with gnat was a little different. I couldn't do a normal gnat build, which did a bootstrap and then rebuilt the compiler again using the

bootstrapping gnat GCC on amd64

2009-05-04 Thread xorquewasp
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

Re: bootstrapping gnat GCC on amd64

2009-05-04 Thread Daniel Eischen
On Mon, 4 May 2009, xorquew...@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

Re: bootstrapping gnat GCC on amd64

2009-05-04 Thread xorquewasp
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

Re: bootstrapping gnat GCC on amd64

2009-05-04 Thread Daniel Eischen
On Mon, 4 May 2009, xorquew...@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

Re: bootstrapping gnat GCC on amd64

2009-05-04 Thread xorquewasp
On 2009-05-04 15:03:32, Daniel Eischen wrote: 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

Re: bootstrapping gnat GCC on amd64

2009-05-04 Thread Daniel Eischen
On Tue, 5 May 2009, xorquew...@googlemail.com wrote: On 2009-05-04 15:03:32, Daniel Eischen wrote: 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

Re: bootstrapping gnat GCC on amd64

2009-05-04 Thread xorquewasp
On 2009-05-04 20:54:46, Daniel Eischen wrote: Yes, you can look at my lang/gnat port to find its bootstrap compiler. I would recommend making a binary bootstrap compiler on the earliest version of FreeBSD amd64 as you can. If you use 8.0-current for instance, others will not be able to

Re: bootstrapping gnat GCC on amd64

2009-05-04 Thread Daniel Eischen
On Tue, 5 May 2009, xorquew...@googlemail.com wrote: On 2009-05-04 20:54:46, Daniel Eischen wrote: Yes, you can look at my lang/gnat port to find its bootstrap compiler. I would recommend making a binary bootstrap compiler on the earliest version of FreeBSD amd64 as you can. If you use