I found the problem and it has to do with Ruby's mkmf gem. The issue
is when you try to build a C extension. The mkmf generates a Makefile
to confirm a clean compile, such as the following:
"/usr/bin/gcc-4.2 -o conftest -I/Users/fc/.rvm/rubies/ruby-1.9.2-p290/
include/ruby-1.9.1/x86_64-darwin11.0.0 -I/Users/fc/.rvm/rubies/
ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/fc/.rvm/
rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -
D_DARWIN_C_SOURCE -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-
parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-
initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe
conftest.c -L. -L/Users/fc/.rvm/rubies/ruby-1.9.2-p290/lib -L. -
lruby.1.9.1-static -lpthread -ldl -lobjc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
The problem is that it's trying to make use of gcc-4.2. However, if
you have xcode 4.2 installed there is no gcc-4.2, rather you have llvm-
gcc-4.2 installed in the /usr/bin directory. The moment you change
gcc-4.2 to llvm-gcc-4.2 everything works. This will have to be brought
up with the core Ruby team.
-Mike
On Nov 10, 7:12 am, Jari Bakken <
jari.bak...@gmail.com> wrote: