stevedekorte/io — Issue #167: Error while building on OS X (manual or via brew)
Author: sale87
Created: 2011-11-13 23:40:23+00:00
State: open

I'm following [this](http://en.wikibooks.org/wiki/Io_Programming/Beginner's_Guide/Getting_Started#Posix_Systems) instructions to in order to get io running on my OS X. However, it fails to compile with error given below:

> Scanning dependencies of target iovmall
[ 11%] Building C object libs/iovm/CMakeFiles/iovmall.dir/source/IoBlock.c.o
[ 12%] Building C object libs/iovm/CMakeFiles/iovmall.dir/source/IoCall.c.o
[ 12%] Building C object libs/iovm/CMakeFiles/iovmall.dir/source/IoCFunction.c.o
[ 12%] Building C object libs/iovm/CMakeFiles/iovmall.dir/source/IoCollector.c.o
[ 12%] Building C object libs/iovm/CMakeFiles/iovmall.dir/source/IoCompiler.c.o
[ 13%] Building C object libs/iovm/CMakeFiles/iovmall.dir/source/IoCoroutine.c.o
/Users/sale/tmp/io/libs/iovm/source/IoObject_inline.h: In function ‘IoCoroutine_rawRunTarget’:
/Users/sale/tmp/io/libs/iovm/source/IoObject_inline.h:322: error: ‘always_inline’ function could not be inlined in call to ‘IoObject_rawGetSlot_’: recursive inlining
/Users/sale/tmp/io/libs/iovm/source/IoObject_inline.h:344: error: called from here
make[2]: *** [libs/iovm/CMakeFiles/iovmall.dir/source/IoCoroutine.c.o] Error 1
make[1]: *** [libs/iovm/CMakeFiles/iovmall.dir/all] Error 2
make: *** [all] Error 2

It also fails to compile using brew with same error:

>[ 15%] Building C object libs/iovm/CMakeFiles/iovmall.dir/source/IoCoroutine.c.o
/tmp/homebrew-io-2011.09-2enU/stevedekorte-io-23afbcc/libs/iovm/source/IoObject_inline.h: In function ‘IoCoroutine_rawRunTarget’:
/tmp/homebrew-io-2011.09-2enU/stevedekorte-io-23afbcc/libs/iovm/source/IoObject_inline.h:322: error: ‘always_inline’ function could not be inlined in call to ‘IoObject_rawGetSlot_’: recursive inlining
/tmp/homebrew-io-2011.09-2enU/stevedekorte-io-23afbcc/libs/iovm/source/IoObject_inline.h:344: error: called from here
make[2]: *** [libs/iovm/CMakeFiles/iovmall.dir/source/IoCoroutine.c.o] Error 1
make[1]: *** [libs/iovm/CMakeFiles/iovmall.dir/all] Error 2
make: *** [all] Error 2

If you need more information about my system to reproduce bug please let me know.

Regards,
Sasha