Search code examples
pythoncompilationiolanguage

Error compiling the io programming language


I'm trying to compile io but it's failing and I can't understand why. Here's what I did to compile it:

mkdir build && cd build
cmake ..
make

Here's a gist of output from cmake

Which seems fine but when I run make (gist of the output)

it fails with something to do with python: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

I've also tried installing with Homebrew.

I'm running Mac OS 10.6.7.

How could I get io to compile (it seems a great language and I'd really like to start using it)?


Solution

  • Looking at your make log then this line could the the cause:

    In file included from /Library/Frameworks/Python.framework/Headers/Python.h:57

    I don't have that file here (or in my ~/Library/Frameworks/ and Io compiles successfully for me.

    So perhaps you are using a different version of Xcode (I'm using 3.2.6 64 bit) or you have installed some Python Xcode stuff? Whatever the difference it looks like the Io build doesn't quite like this (yet).

    If you not concerned about having the Python bridge addon then I think you can just delete it (rm -r io/addons/Python) and rebuild your source.