4 ms·
This only occurs with Xcode 4.2, while 4.1 has no issue. Reason is Apple went LLVM. I encountered the issue previously with rbenv [0]. Even if it builds correc
by lloeki 15y ago
This only occurs with Xcode 4.2, while 4.1 has no issue. Reason is Apple went LLVM.
I encountered the issue previously with rbenv [0]. Even if it builds correctly with clang various tests subsequenty fail, although they appear to pass on ruby trunk.
So for now, one should rather install gcc via the installer, which also allows to build older versions of ruby if need be.
[0] https://github.com/sstephenson/ruby-build/pull/87 https://github.com/sstephenson/ruby-build/pull/87
- mambodog 15y agoI managed to install just fine with clang, using rvm install 1.9.3 --with-gcc=clang
- edgardcastro 15y agoSame here, no problem. Lion and Xcode 4.2. Remember that after downloading Xcode form App Store you actually have to INSTALL it and after RUN IT at least once so everything works properly.
- lloeki 15y agoPlease reread, including comments in the linked github post. 1.9.3 does compile with clang, but ruby's own test suite ('make test' in the ruby build dir) does not pass. Also, if you had 4.1 then upgraded to 4.2 you may still have 4.1 gcc around.