Ikarus fails to compile under 64-bit OSes

Asked by Abdulaziz Ghuloum

Tom Gordon reports that Ikarus fails to compile under 64-bit OSes (like Mac OS 10.5).
When compiling ikarus, gcc produces the following error:

/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
___gmp_bits_per_limb
___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

Question information

Language:
English Edit question
Status:
Solved
For:
Ikarus Scheme Edit question
Assignee:
No assignee Edit question
Solved by:
Abdulaziz Ghuloum
Solved:
Last query:
Last reply:
Revision history for this message
Abdulaziz Ghuloum (aghuloum) said :
#1

Jens Axel Søgaard reports that this can be solved by compiling libgmp in 32-bit mode. Jens says:
quote:
  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.
endquote

Thanks to Jens and Jens's brother for the tip.

Revision history for this message
Abdulaziz Ghuloum (aghuloum) said :
#2

answered

Revision history for this message
Pierre De Pascale (pierre-depascale) said :
#3

I have written more step by step instructions on how to run Ikarus on 64-bit Linux at http://www.prefics.ch/blog/2007/11/20/Running%20Ikarus%20Scheme%20on%20%36%34bit%20Ubuntu

Revision history for this message
Abdulaziz Ghuloum (aghuloum) said :
#4

Thanks Pierre for taking the time to write the steps.

Revision history for this message
Abdulaziz Ghuloum (aghuloum) said :
#5

More information about building Ikarus under 64-bit Ubuntu or Debian can be found in this thread:
  http://groups.google.com/group/ikarus-users/msg/486826e30ef59f34