comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: 64 bit codes
Date: Tue, 27 Sep 2011 20:13:13 +0100
Date: 2011-09-27T20:13:13+01:00	[thread overview]
Message-ID: <m262kd23zq.fsf@pushface.org> (raw)
In-Reply-To: m2aa9q0zao.fsf@pushface.org

Simon Wright <simon@pushface.org> 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.



  reply	other threads:[~2011-09-27 19:13 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-27  6:59 64 bit codes Mok-Kong Shen
2011-09-27  7:48 ` Georg Bauhaus
2011-09-27  9:04   ` Mok-Kong Shen
2011-09-27  9:14     ` Ludovic Brenta
2011-09-27  9:54       ` Mok-Kong Shen
2011-09-27 10:08         ` Ludovic Brenta
2011-09-27 11:21           ` Mok-Kong Shen
2011-09-27 13:09             ` Ludovic Brenta
2011-09-27 13:25               ` Georg Bauhaus
2011-09-27 13:51                 ` Mok-Kong Shen
2011-09-27 14:15                   ` Mok-Kong Shen
2011-09-27 14:40                     ` Ludovic Brenta
2011-09-27 13:48               ` Mok-Kong Shen
2011-09-27 14:50                 ` Ludovic Brenta
2011-09-27 15:49                   ` Bill Findlay
2011-09-28  9:53                     ` Georg Bauhaus
2011-09-28 10:36                       ` Ludovic Brenta
2011-09-28  0:38                 ` Rugxulo
2011-09-29 17:08                   ` Rugxulo
2011-09-29 19:20                     ` Pascal Obry
2011-09-29 19:26                       ` Ludovic Brenta
2011-09-29 19:35                         ` Pascal Obry
2011-09-29 19:38                           ` Pascal Obry
2011-10-06  2:48                     ` mjamesb
2011-09-27 15:39               ` Simon Wright
2011-09-27 19:13                 ` Simon Wright [this message]
2011-09-28  7:16                   ` Georg Bauhaus
2011-09-28 12:26                     ` Fritz Wuehler
2011-09-28 13:41                       ` Yannick Duchêne (Hibou57)
2011-09-28 14:28                       ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox