Bug #7956
closed
Added by Sega100500 (Сергей Е) over 11 years ago.
Updated about 11 years ago.
Description
$ uname -a
Linux my-debian.ru 2.6.32-5-686 #1 SMP Fri Feb 15 15:48:27 UTC 2013 i686 GNU/Linux
$ $ \curl -L https://get.rvm.io | bash -s stable --ruby
...
Error running 'make', please read /home/ruby2/.rvm/log/ruby-2.0.0-p0/make.log
There has been an error while running make. Halting the installation.
/home/ruby2/.rvm/log/ruby-2.0.0-p0/make.log:
->CC = gcc
<------>LD = ld
<------>LDSHARED = gcc -shared
<------>CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initialize
<------>XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hid
<------>CPPFLAGS = -I/home/ruby2/.rvm/usr/include -I. -I.ext/include/i686-linux -I./include -I.
<------>DLDFLAGS = -Wl,-soname,libruby.so.2.0 -L/home/ruby2/.rvm/usr/lib -Wl,-R/home/ruby2/.rvm/usr/lib -fstack-protector..
<------>SOLIBS = -lpthread -lrt -ldl -lcrypt -lm..
linking miniruby
rbconfig.rb unchanged
generating enc.mk
generating prelude.c
compiling prelude.c
linking static-library libruby-static.a
verifying static-library libruby-static.a
linking shared-library libruby.so.2.0.0
generating encdb.h
encdb.h unchanged
making enc
make[1]: Entering directory /home/ruby2/.rvm/src/ruby-2.0.0-p0' make[1]: Цель
enc' не требует выполнения команд.
make[1]: Leaving directory /home/ruby2/.rvm/src/ruby-2.0.0-p0' making srcs under enc make[1]: Entering directory
/home/ruby2/.rvm/src/ruby-2.0.0-p0'
make[1]: Цель srcs' не требует выполнения команд. make[1]: Leaving directory
/home/ruby2/.rvm/src/ruby-2.0.0-p0'
generating transdb.h
transdb.h unchanged
making trans
make[1]: Entering directory /home/ruby2/.rvm/src/ruby-2.0.0-p0' compiling ./enc/trans/emoji_sjis_softbank.c ./enc/trans/emoji_sjis_softbank.c:6348:43: error: invalid suffix "y" on integer constant make[1]: *** [enc/trans/emoji_sjis_softbank.o] Ошибка 1 make[1]: Leaving directory
/home/ruby2/.rvm/src/ruby-2.0.0-p0'
make: *** [trans] Ошибка 2
Files
Can you try rvm get head && rvm install 2.0.0
?
As I mentioned on my blog, rvm get stable
isn't enough apparently to compile 2.0.0 in many cases.
I'm getting a similar failure on OSX Snow Leopard, logs attached.
the latest version of rvm get head
solves this problem by switching to clang
=> gcc -v | grep -i llvm && export CC=clang
- only on OSX, does not make any troubles on other platforms.
- Status changed from Open to Closed
mpapis (Michal Papis) wrote:
the latest version of rvm get head
solves this problem by switching to clang
=> gcc -v | grep -i llvm && export CC=clang
- only on OSX, does not make any troubles on other platforms.
Thanks!
I'm closing this issue, but will reopen if anyone has troubles (in which case please provide logs like nstoker did)
I was using this trick in rvm for some time to avoid the LLVM gcc errors, maybe ruby could adopt it in ./configure => gcc -v | grep -i llvm && export CC=clang
mpapis (Michal Papis) wrote:
I was using this trick in rvm for some time to avoid the LLVM gcc errors, maybe ruby could adopt it in ./configure => gcc -v | grep -i llvm && export CC=clang
Ruby itself sets CC as clang, so it's not required unless rvm sets wrong CC.
Note that old clang is buggy.
See also https://github.com/sstephenson/ruby-build/issues/290#issuecomment-14013057
I'm still getting the error when trying to build.
What other information can I provide that would help you to track down the issue?
- Status changed from Closed to Open
Re-opening.
I also sent an email to Michal Papis.
It might be best to open this issue on rvm's side and if Michal finds a problem that ruby-core can solve he could submit that?
=begin
I have just rechecked both with and without RVM and I can not reproduce this problem, make sure to update RVM: (({rvm get head})) - there are two things you could check:
(1) problem with compiler - check this https://github.com/wayneeseguin/rvm/issues/1660
(2) older homebrew libraries using different compilation settings, rvm has now improved code to update libraries which are outdated if you run (({rvm install 2.0.0 --autolibs=3}))
If none of those help could you please provide a log of: (({rvm install 2.0.0 --autolibs=3 --debug})) it will contain more details about the used commands.
=end
- Status changed from Open to Third Party's Issue
the last reported problem is unrelated to the initial one and was fixed in #8134 - it can be reclosed
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0