[Ecls-list] Building with OS X Lion

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sun Aug 21 21:01:48 UTC 2011


What follows is kind of a temporary fix until we find out a better solution.
Right now ECL refuses to build in OS X Lion because of two problems

- The compiler in XCode is llvm-gcc, which is not proper gcc, and it is not
capable of compiling the jump tables needed in the interpreter. Since it
disguises itself as GCC, ECL failed to deactivate this optimization.

- Our version of the Boehm-Weiser garbage collector does not work well in OS
X Lion. A newer version, unfortunately an unstable one, is needed:
http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.2alpha6.tar.gz

Steps to build:

- Unpack the Boehm-Weiser library.
- Apply the patch attached
- Configure and install the library, say with
  ./configure --prefix=/location/for/library
- Configure and install ECL with the options
   --enable-boehm=system
   CPPFLAGS=-I/location/for/library/include
   LDFLAGS=-L/location/for/library/lib"
and whatever other you usually add.

I am unsure about upgrading the library in ECL's source tree, but the GC
developers are known to delay stable releases until everybody is already
relying on the alpha versions, just like us :-)

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20110821/7bee4ae8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gc-patch-os-x-lion.diff
Type: application/octet-stream
Size: 701 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20110821/7bee4ae8/attachment.obj>


More information about the ecl-devel mailing list