views:

7

answers:

0

I followed the instructions in the README, they are very simple

cd build
cmake ..
make install

The problem occurs after the make install command. Io will not compile, specifically because of the module CFFI. ld complains that my libffi.dylib is not 64-bit, and thus it won't link the .o files, and because of that, it then complains that this or that symbol is not defined, etc.

ld: warning: in /opt/local/lib/libffi.dylib, file was built for i386 which is not the architecture being linked (x86_64)

How can I solve this? Is there a way to compile Io in 32-bit, by passing parameters to make, cmake or editing some file? The Makefile has an entry for the CFFI addon. Could i just delete it? where can i get a 64-bit libcffi? this library provides an API to access lower-level function calls for higher level languages, so i+m not so sure about replacing my 32-bit one with 64-bit one, it may break my MacRuby or other stuff. i would like to be able to build it with the CFFI and all the possible addons that may work in my system, to be able to do more stuff: i am interested in the objective-c bindings, which i guess may require cffi.