File is not of required architecture
    Torbjorn Granlund 
    tg at gmplib.org
       
    Fri Nov 13 21:41:50 CET 2009
    
    
  
Jan Gustafsson <jan.gustafsson at mdh.se> writes:
  Hi!
  
  I build the GMP lib on my MacBook Pro with Intel Core 2 Duo.
  
  I use
  
  ./configure --enable-cxx --disable-shared
  make
  make check
  sudo make install
  
  When I try to link with my program, I get
  
  warning: file is not of required architecture
  
  Can you advise?
  
Since you give just a few sketcy facts, it is hard to guess.
How do you link with your program?
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.
-- 
Torbjörn
    
    
More information about the gmp-bugs
mailing list