File is not of required architecture

Hans Aberg haberg at math.su.se
Sat Nov 14 14:14:34 CET 2009


On 13 Nov 2009, at 21:41, Torbjorn Granlund wrote:

> Apple's various
> compiler releases default to different ABIs, but GMP tries to use the
> fastest one, which is typically invoked by passing -m64.

This link suggests one using the -arch flag. I think one can make fat  
binaries by simply passing multiple flags. Perhaps GMP should do that.
http://developer.apple.com/mac/library/documentation/Darwin/Conceptual/64bitPorting/transition/transition.html

Also see -arch in
   http://developer.apple.com/mac/library/documentation/DeveloperTools/gcc-4.2.1/gcc/Overall-Options.html
and -m64 in
   http://developer.apple.com/mac/library/documentation/DeveloperTools/gcc-4.2.1/gcc/i386-and-x86_002d64-Options.html

   Hans




More information about the gmp-bugs mailing list