Louis Granboulan on Wed, 23 Dec 2015 09:28:58 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: test Mac OS binary for PARI/GP


On Fri, Dec 18, 2015 at 05:04:58PM +0100, Karim Belabas wrote:
> OK, here's another test binary for OSX: Mountain Lion (10.8) or more
> recent only !
> 
>    <http://pari.math.u-bordeaux.fr/pub/pari/mac/gp-6415a7e-osx>

Worked for me on 10.10.5

> Older systems than 10.8 will presumably trigger an 'Illegal instruction' 
> on startup.

Indeed it will not work before 10.8 because the load command in this
binary (which decides where the entry point is) is of type LC_MAIN
which appeared in 10.8 instead of the older LC_UNIXTHREAD.

Note also that this binary includes a LC_VERSION_MIN_MACOSX load
command which says the minimum version is 10.9. You should probably
add -mmacosx-version-min=10.8 to your gcc options, even when
compiling under 10.9.