Backport #6043

compile error for 1.9.3-p125 on OS X 10.7.3 with Xcode 4.2.1, gcc not found

Added by jahapro (Jan Harmsen) about 8 years ago. Updated almost 8 years ago.



Configure aborts due to not finding gcc, configure script looks for gcc-4.2 but there is only /usr/bin/gcc

/usr/bin/gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)

For a successfule compile, param '--with-gcc=clang' needs to be specified:

rvm install ruby-1.9.3-p125 --with-gcc=clang

will successfully install ruby-1.9.3-p125

Related issues

Related to Ruby master - Bug #5082: test_context_switch(TestMarshal) was failed on OS X 10.7 (Lion)Closed07/23/2011kosaki (Motohiro KOSAKI)Actions

Updated by naruse (Yui NARUSE) about 8 years ago

  • Status changed from Open to Assigned
  • Assignee set to mrkn (Kenta Murata)

Recent ruby seems to work with llvm-gcc.
mrkn, could you confirm and decide the direction?


Updated by naruse (Yui NARUSE) about 8 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport193

Updated by naruse (Yui NARUSE) almost 8 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r34746.
Jan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

  • remove workaround replacement from gcc to gcc-4.2. [Backport #6043]

Also available in: Atom PDF