Installation Problems on Mac OS X (undefined GMP symbols)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Released
|
Medium
|
Abdulaziz Ghuloum |
Bug Description
uname -a shows:
Darwin i ... 8.10.3 Darwin Kernel Version 8.10.3: Wed Jun 27 23:29:36 PDT 2007; root:xnu-
I first installed and tested gmp-4.2.2. The header file and libraries were installed in /usr/local. I copied them to /usr/include and /usr/lib, respectively.
After running ./configure and make in the Ikarus build directory, I get this linking error:
gcc -g -O2 -DNDEBUG -O3 -dynamic -o ikarus ikarus-collect.o ikarus-exec.o ikarus-fasl.o ikarus-flonums.o ikarus-main.o ikarus-numerics.o ikarus-print.o ikarus-runtime.o ikarus-
/usr/libexec/
___gmp_
___gmpn_add_n
___gmpn_divrem_1
___gmpn_get_str
___gmpn_mul
___gmpn_mul_1
___gmpn_sub_n
___gmpn_tdiv_qr
collect2: ld returned 1 exit status
make[2]: *** [ikarus] Error 1
make[1]: *** [all-recursive] Error 1
Changed in ikarus: | |
status: | In Progress → Fix Committed |
Changed in ikarus: | |
status: | Fix Committed → Fix Released |
I ran into the exact same problem.
I downloaded the GMP source and compiled it with default options.
This produces a 64 bit libgmp, which doesn't work with Ikarus.
When you run configure for GMP set ABI to 32 bits.
(Thanks to my brother for figuring his out)