File is not of required architecture
Hans Aberg
haberg at math.su.se
Fri Nov 13 22:34:30 CET 2009
On 13 Nov 2009, at 21:41, Torbjorn Granlund wrote:
>> When I try to link with my program, I get
>>
>> warning: file is not of required architecture
>>
>> Can you advise?
> My only feeble guess is that there is an ABI clash. Apple's various
> compiler releases default to different ABIs, but GMP tries to use the
> fastest one, which is typically invoked by passing -m64. You need the
> same ABI for your program.
Yes, the error means that one tries to link code of different
architectures. On 10.5, gcc defaults to 32-bit, and on 10.6 to 64-bit.
Hans
More information about the gmp-bugs
mailing list