Closed sorah closed 11 years ago
@sstephenson oh, Sorry I don't know require_gcc
.
But, I still think we should check gcc
= llvm-gcc
and this workaround should be only in 2.0.0-p0.
How about that change?
Ruby 2.0.0 can choice suitable compiler from gcc-4.2, clang, gcc, and cc in configure.in by itself. see https://github.com/ruby/ruby/blob/v2_0_0_0/configure.in#L373
Ruby 1.8.7-p371 supports clang (r36253).
OK - the issue we had with Ruby's auto-detect is that gcc-4.2
may be symlinked to llvm-gcc, which resulted in build failures.
Sounds like we can set CFLAGS to fix that issue, instead.
What? I don't know an environment which gcc-4.2
= llvm-gcc
, normally it just not exists by default.
It should be users' problem.
I may be remembering wrong. Confusing :grin:
gcc-4.2 is always GNU GCC. cc/gcc can be llvm-gcc.
Fixed - thank you.
(Continuing from a0570c9bfe059517971126b9f11b3b842797686d's commit comment)
What's the commit
a0570c9bfe059517971126b9f11b3b842797686d
clang
by specifyingCC=cc
ifCC
isn't set, because ruby-2.0.0-p0 build fails on llvm-gcccc
is symlinked toclang
, butgcc
symlinked tollvm-gcc
andllvm-gcc
make failures.gcc
for default, sollvm-gcc
will be used. and currently build will be failed withllvm-gcc
.Problems
So, I recommend to...
CC=clang
instead ofCC=cc
gcc
isllvm-gcc
CC=clang
into2.0.0-p0
file, because 1.8 doesn't support clang and it makes SEGV on 1.8.