From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e56fd2619c02e35a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.11.199 with SMTP id s7mr30067302pbb.5.1317150794689; Tue, 27 Sep 2011 12:13:14 -0700 (PDT) Path: lh7ni6136pbb.0!nntp.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: 64 bit codes Date: Tue, 27 Sep 2011 20:13:13 +0100 Organization: A noiseless patient Spider Message-ID: References: <4e817fdb$0$7615$9b4e6d93@newsspool1.arcor-online.net> <213da3b7-f9d0-4a7d-b215-9992ee0f1a02@f6g2000vbm.googlegroups.com> <2a797a9e-f0e3-4fbe-8f40-b6787b4e2879@o11g2000yqc.googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="22011"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qSZGffNEKFxJJKaQD3HJiz2NgOjGgnkA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:IQS8qTjfH9YKI3QXOQo2fkHGt4w= sha1:dpx2+4Vmkz8MBNZBcgvPjgUfvHU= Xref: news1.google.com comp.lang.ada:18177 Content-Type: text/plain; charset=us-ascii Date: 2011-09-27T20:13:13+01:00 List-Id: Simon Wright writes: > I built an x86_64 compiler for Darwin using an i386 (32-bit) compiler; > no trouble at all. That would be exaggerating. I had quite a few problems, though my log seems to indicate that things were worse when I said --target=x86_64-apple-darwin10.2.0 (for cross-compilation) rather than just --build=x86_64-apple-darwin10.2.0. I see I built a 32-bit GNAT GPL 2009 for the GNU Ada Sourceforge project as well as a 64-bit one; I can't now recall why I did the first (I suspect because Tk was only supported in 32-bit), and I think I did the second because AdaCore's didn't work on Snow Leopard because of an Apple change to exception unwinding. So I just now d/l'd the 2009 32-bit compiler and used it to build GCC 4.6.1, configuring like so: ./gcc-4.6.1/configure \ CC="gcc -D_FORTIFY_SOURCE=0" \ --prefix=/opt/gcc-4.6.1 \ --disable-multilib \ --enable-languages=c,ada \ --build=x86_64-apple-darwin11 (gmp, mpfr, mpc are symlinked from the GCC tree; the setting of CC is because of http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50342) and sure enough pointers are now 64-bit, as expected. I'm pretty sure this only works because Apple's binutils are 32- and 64-bit capable.