Make check errors on Mac OS 10.6.4

Kaushik Kalyanaraman kalyana1 at illinois.edu
Sun Sep 5 20:41:48 CEST 2010


Hello All,

I have been trying to get gmp installed on the above platform as a 32-bit binary. I used --build=i386 flag for configure, and with this, I was able to make successfully. However, make check fails stating that undefined symbols were found when compiling libgmp.a. The partial (relevant) output is:

gcc -std=gnu99 -m32 -O2 -pedantic -fomit-frame-pointer -mtune=i386 -march=i386 -o t-bswap t-bswap.o  ./.libs/libtests.a /Users/kaushik/src/gmp/gmp-4.3.2/.libs/libgmp.a ../.libs/libgmp.a  
Undefined symbols:
  "_calling_conventions_fenv", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_eflags", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_ebp", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_edi", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_ebx", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_esi", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_save_ebp", referenced from:
      _calling_conventions in libtests.a(x86call.o)
      _calling_conventions in libtests.a(
  "_calling_conventions_fenv", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_eflags", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_ebp", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_edi", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_ebx", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_esi", referenced from:
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_save_ebp", referenced from:
      _calling_conventions in libtests.a(x86call.o)
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_save_edi", referenced from:
      _calling_conventions in libtests.a(x86call.o)
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_save_ebx", referenced from:
      _calling_conventions in libtests.a(x86call.o)
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_retaddr", referenced from:
      _calling_conventions in libtests.a(x86call.o)
      _calling_conventions in libtests.a(x86call.o)
  "_calling_conventions_save_esi", referenced from:
      _calling_conventions in libtests.a(x86call.o)
      _calling_conventions in libtests.a(x86call.o)

My default c compiler is i686-apple-darwin10-gcc-4.2.1. It would be really great if you could please give me suggestions for doing this right. By the way, the 32-bit binary is needed since it is a dependency for building pyglpk.

Thanks! 

-Kaushik




More information about the gmp-discuss mailing list