[gambit-list] Re: 64-bit compile on MacOS Tiger

Bradley Lucier lucier at math.purdue.edu
Fri May 20 21:46:44 EDT 2005


On May 17, 2005, at 10:32 PM, Bradley Lucier wrote:

> Beta 13 is a mess.
...
> It then segfaulted in my bignum tests,
...
> The crash occurs in bignum.make, at
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000024c7a6e1
> 0x00000000000d3520 in ___H__20___num (___ps=0x29f808) at _num.c:36170
> 36170           ___HEADER(result) = ___MAKE_HD_BYTES((n<<3), 
> ___sBIGNUM);
> (gdb) p result
> $1 = 6107202754022188770
> (gdb) p n
> $2 = 85
> (gdb) p ___hp
> $3 = (long int *) 0x27f3460

This has gone away after I built gambc40b13  with

env CC='gcc -mcpu=970 -m64 -force_cpusubtype_ALL' ./configure 
--enable-single-host

and

[descartes:~/programs/gambc40b13] lucier% gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8.1.0
Configured with: ../configure --prefix=/pkgs/gcc-4.0.0-apple 
--with-gmp=/pkgs/gmp-4.1.4 --with-mpfr=/pkgs/gmp-4.1.4 
--enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.0 (Apple Computer, Inc. build 5018)

So it seems to be a problem with Apple's

[descartes:~/programs/gambc40b13] lucier% /usr/bin/gcc -v
Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure 
--disable-checking --prefix=/usr --mandir=/share/man 
--enable-languages=c,objc,c++,obj-c++ 
--program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ 
--with-gxx-include-dir=/include/gcc/darwin/4.0/c++ 
--build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 
--target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)

as distributed.  (And don't blame the FSF, Apple's distributed compiler 
was branched on October 26, 2004, when the FSF sources still had a lot 
of bugs; the FSF 4.0.0 compiler wasn't released until last month.)

Marc:  It will be *really cool* when I can run a 64-bit Gambit on my 
2GHz G5.

Brad



More information about the Gambit-list mailing list