-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSE2-CPU required for compiling Ruby 2.1.1 with rvm? #2850
Conversation
It's not caused by RVM, it has to be a nug in detecting your CPU by ruby installation process, try this: export -a rvm_configure_env
rvm_configure_env=( CFLAGS="-march=athlon -O2" )
rvm install 2.1.1 also there is a newer version of ruby: 2.1.2 anyway - you should report your problem to ruby, they might not know there is a problem compiling on Athlon processors => https://bugs.ruby-lang.org/projects/ruby-trunk/issues |
Hi, Are there any other solutions for using a current Ruby version with rvm? Regards, EDIT: |
I finally managed to compile Ruby 2.1.2. on my Athlon XP and mount it into rvm :D Here are the steps I performed in case someone else finds this useful:
I hope this helps. |
oh so you could try this: XCFLAGS="-athlon -msse" rvm install 2.1.2 |
Sadly that does not work: XCFLAGS="-athlon -msse" rvm install 2.1.2 gives XCFLAGS="-march=athlon -msse" rvm install 2.1.2 and XCFLAGS="-msse" rvm install 2.1.2 result in the known illegal-instruction-problem. |
How about: XCFLAGS="-msse -mfpmath=sse" rvm install 2.1.2 |
Unfortunately, that does not work either. XCFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -msse -mfpmath=sse -mstackrealign -DRUBY_EXPORT -fPIE" rvm install 2.1.2 ...but I get the same illegal-instruction-message. |
following https://bugs.ruby-lang.org/issues/9705#note-4 can you try: rvm install ruby-head |
Does not work, crashes with the same error message: ruby-head - #compiling - please wait
Error running '__rvm_make -j1',
showing last 15 lines of /home/carsten/.rvm/log/1402062760_ruby-head/make.log
converter for universal_newline
converter for crlf_newline
converter for cr_newline
done. (0.11user 0.00system 0.02elapsed)
compiling newline.c
compiling ./missing/setproctitle.c
compiling ./missing/strlcat.c
compiling ./missing/strlcpy.c
compiling addr2line.c
compiling dmyext.c
linking miniruby
uncommon.mk:540: recipe for target '.rbconfig.time' failed
make: *** [.rbconfig.time] Ungültiger Maschinenbefehl (Speicherauszug erstellt) I performed a |
can you comment on this ticket https://bugs.ruby-lang.org/issues/9705#note-4 |
I just did and referred to this thread / my error message. |
thanks, this should help them continue fixing the issue |
it does not look like MRI knows how to fix this problem, can I see: rvm info system
cat /proc/cpuinfo I will try to "fix" it on rvm level |
I dumped my old AthlonXP-machine in favour of a computer with SSE2-support, so I'm not affected by this problem anymore, but I still have access to that system, so here is the info you requested:
I hope it helps, I guess there are still some people with non-SSE2-CPUs who would love to see this issue fixed. Regards, |
can you try after: rvm get branch /bugfix/athlon_without_sse2_gh_2850 |
After having installed the bugfix version of rvm and running rvm install 2.1.2
Searching for binary rubies, this might take some time.
No binary rubies available for: debian/jessie_sid/i386/ruby-2.1.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for debian.
Requirements installation successful.
Installing Ruby from source to: /home/carsten/.rvm/rubies/ruby-2.1.2, this may take a while depending on your cpu(s)...
ruby-2.1.2 - #downloading ruby-2.1.2, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11.4M 100 11.4M 0 0 227k 0 0:00:51 0:00:51 --:--:-- 251k
ruby-2.1.2 - #extracting ruby-2.1.2 to /home/carsten/.rvm/src/ruby-2.1.2 - please wait
ruby-2.1.2 - #configuring - please wait
ruby-2.1.2 - #post-configuration - please wait
ruby-2.1.2 - #compiling - please wait
Error running '__rvm_make -j1',
showing last 15 lines of /home/carsten/.rvm/log/1409992329_ruby-2.1.2/make.log
CPPFLAGS = -I. -I.ext/include/i686-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.2.1 -fstack-protector
SOLIBS = -lpthread -ldl -lcrypt -lm
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.8/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.3-4' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --with-arch-32=i586 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.8.3 (Debian 4.8.3-4)
compiling main.c
gcc: error: unrecognized command line option ‘-msee’
Makefile:333: recipe for target 'main.o' failed
make: *** [main.o] Error 1
+__rvm_make:0:cmdor> return 2
There has been an error while running make. Halting the installation. |
d52bcb8
to
f3db948
Compare
removed the |
Great work, compilation process is finished without any errors and ruby 2.1.2 gets installed correctly! |
…_gh_2850 SSE2-CPU required for compiling Ruby 2.1.1 with rvm?
I hit this bug with on Gentoo's dev-lang/ruby-2.0.0_p576. Could this fix be backported to Ruby 2.0? |
I've been facing difficulties setting rvm up for my environment on window 8.1 after running the below command,
received the error below,
but when i check the .rvm folder, the ruby 1.9 was successfully download but sad, when i run
Please help! |
@samsoft00 this happens because you did |
@mpapis Thanks for your quick response... after trying your suggestion, here are the display information
|
@samsoft00 this is different issue, please open a new ticket |
after work around and following the instruction here... #2736 (comment) i got this.
Please how do i resolve this error... thanks |
@samsoft00 please open a new ticket and include all the things you had to do manually to get there |
can u help me ?
|
root@kali:~# rvm info system
root@kali:~# cat /proc/cpuinfo
|
@shell-permission please open a new ticket with all the details |
Hi,
I have the following problem with installing Ruby 2.1.1:
when I call
rvm install 2.1.1
on a Debian testing/jessie machine that has an Athlon XP 2600+ processor (no SSE2-support), the compiling process is aborted after a few minutes with the following output:'Ungültiger Maschinenbefehl (Speicherauszug erstellt)' would be 'Illegal instruction (core dumped)' in English.
Performing the same operation on an Intel Pentium 4 M (SSE2-support) with the same Linux distribution completes without errors. I'm using rvm 1.25.25 (stable) by the way.
Is it possible to work around this issue somehow? I hope I don't have to get a new computer to keep up with current Ruby development...
Regards,
Carsten