Skip to content

Instantly share code, notes, and snippets.

@ahibal ahibal/env | sort Secret
Last active Aug 29, 2015

Embed
What would you like to do?
rvm install 2.1.1 fails while compiling
ahibal@AK38 ~ $ env | sort
CINNAMON_VERSION=2.0.14
CLUTTER_DISABLE_XINPUT=1
COLORTERM=gnome-terminal
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Mqy5bTOf8B,guid=9cd337e77b993d189ce40a28533c2569
DEFAULTS_PATH=/usr/share/gconf/default.default.path
DESKTOP_SESSION=default
DISPLAY=:0
GDMSESSION=default
GDM_XSERVER_LOCATION=local
GEM_HOME=/home/ahibal/.rvm/gems/ruby-2.1.0
GEM_PATH=/home/ahibal/.rvm/gems/ruby-2.1.0:/home/ahibal/.rvm/gems/ruby-2.1.0@global
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-H8nIva
GNOME_KEYRING_PID=1341
GPG_AGENT_INFO=/run/user/1000/keyring-H8nIva/gpg:0:1
HOME=/home/ahibal
install_flag=1
IRBRC=/home/ahibal/.rvm/rubies/ruby-2.1.0/.irbrc
LANG=en_US.UTF-8
LC_ADDRESS=el_GR.UTF-8
LC_IDENTIFICATION=el_GR.UTF-8
LC_MEASUREMENT=el_GR.UTF-8
LC_MONETARY=el_GR.UTF-8
LC_NAME=el_GR.UTF-8
LC_NUMERIC=el_GR.UTF-8
LC_PAPER=el_GR.UTF-8
LC_TELEPHONE=el_GR.UTF-8
LC_TIME=el_GR.UTF-8
LOGNAME=ahibal
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MANDATORY_PATH=/usr/share/gconf/default.mandatory.path
MDM_LANG=en_US.UTF-8
MDMSESSION=default
MDM_XSERVER_LOCATION=local
MY_RUBY_HOME=/home/ahibal/.rvm/rubies/ruby-2.1.0
OLDPWD=/home/ahibal/.rvm/examples
PATH=/home/ahibal/.rvm/gems/ruby-2.1.0/bin:/home/ahibal/.rvm/gems/ruby-2.1.0@global/bin:/home/ahibal/.rvm/rubies/ruby-2.1.0/bin:/home/ahibal/.rvm/bin:/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/ahibal
RUBY_VERSION=ruby-2.1.0
rvm_bin_path=/home/ahibal/.rvm/bin
rvm_path=/home/ahibal/.rvm
rvm_prefix=/home/ahibal
rvm_recommended_ruby=rvm install ruby-2.1.1
rvm_ruby_make=
rvm_ruby_make_install=
rvm_ruby_string=2.1.1
rvm_version=1.25.22 (master)
SESSION_MANAGER=local/AK38:@/tmp/.ICE-unix/1417,unix/AK38:/tmp/.ICE-unix/1417
SHELL=/bin/bash
SHLVL=1
SSH_AGENT_PID=1494
SSH_AUTH_SOCK=/run/user/1000/keyring-H8nIva/ssh
_system_arch=i386
_system_name=Mint
_system_type=Linux
_system_version=16
TERM=xterm
TEXTDOMAINDIR=/usr/share/locale/
TEXTDOMAIN=im-config
uninstall_flag=1
USER=ahibal
USERNAME=ahibal
_=/usr/bin/env
VTE_VERSION=3406
WINDOWID=33554439
WINDOWPATH=8
XAUTHORITY=/home/ahibal/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-default:/etc/xdg
XDG_CURRENT_DESKTOP=GNOME
XDG_DATA_DIRS=/usr/share/default:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=be49543ee89f3bade03cb61e5330aa49-1396450663.441265-313715234
XDG_SESSION_ID=c1
XDG_VTNR=8
2014-04-02 20:47:32] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /home/ahibal/.rvm/src/ruby-2.1.1
GEM_HOME=/home/ahibal/.rvm/gems/ruby-2.1.0
PATH=/home/ahibal/.rvm/gems/ruby-2.1.0/bin:/home/ahibal/.rvm/gems/ruby-2.1.0@global/bin:/home/ahibal/.rvm/rubies/ruby-2.1.0/bin:/home/ahibal/.rvm/bin:/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
GEM_PATH=/home/ahibal/.rvm/gems/ruby-2.1.0:/home/ahibal/.rvm/gems/ruby-2.1.0@global
command(2): __rvm_make -j1
++ make -j1
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-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -ansi -std=iso9899:199409 -fPIC
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -msse2 -mfpmath=sse -mstackrealign -DRUBY_EXPORT
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/i686-linux-gnu/4.8/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.1-10ubuntu9' --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 --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 --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu9)
compiling main.c
compiling dmydln.c
compiling miniinit.c
compiling miniprelude.c
copying dummy probes.h
compiling array.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling encoding.c
compiling enum.c
compiling enumerator.c
compiling error.c
compiling eval.c
compiling load.c
compiling proc.c
compiling file.c
compiling gc.c
compiling hash.c
compiling inits.c
compiling io.c
compiling marshal.c
compiling math.c
compiling node.c
compiling numeric.c
compiling object.c
compiling pack.c
compiling parse.c
compiling process.c
compiling random.c
compiling range.c
compiling rational.c
compiling re.c
compiling regcomp.c
compiling regenc.c
compiling regerror.c
compiling regexec.c
compiling regparse.c
compiling regsyntax.c
compiling ruby.c
compiling safe.c
compiling signal.c
compiling sprintf.c
compiling st.c
compiling strftime.c
compiling string.c
compiling struct.c
compiling time.c
compiling transcode.c
compiling util.c
compiling variable.c
compiling version.c
compiling compile.c
compiling debug.c
compiling iseq.c
In file included from vm_core.h:25:0,
from eval_intern.h:5,
from iseq.c:14:
iseq.c: In function ‘iseq_load’:
iseq.c:540:54: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cached_map = ATOMIC_PTR_CAS(type_map_cache, (struct st_table *)0, type_map);
^
ruby_atomic.h:13:36: note: in definition of macro ‘ATOMIC_CAS’
({ __typeof__(oldval) oldvaldup = (oldval); /* oldval should not be modified */ \
^
ruby_atomic.h:166:53: note: in expansion of macro ‘ATOMIC_SIZE_CAS’
# define ATOMIC_PTR_CAS(var, oldval, val) (void *)ATOMIC_SIZE_CAS(*(size_t *)&(var), (size_t)(oldval), (size_t)(val))
^
iseq.c:540:15: note: in expansion of macro ‘ATOMIC_PTR_CAS’
cached_map = ATOMIC_PTR_CAS(type_map_cache, (struct st_table *)0, type_map);
^
compiling vm.c
compiling vm_dump.c
compiling vm_backtrace.c
compiling vm_trace.c
compiling thread.c
compiling cont.c
compiling ./enc/ascii.c
compiling ./enc/us_ascii.c
compiling ./enc/unicode.c
compiling ./enc/utf_8.c
compiling newline.c
compiling ./missing/strlcpy.c
compiling ./missing/strlcat.c
compiling ./missing/setproctitle.c
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Illegal instruction
++ return 2
ahibal@AK38 ~ $ rvm install 2.1.1
Searching for binary rubies, this might take some time.
No binary rubies available for: mint/16/i386/ruby-2.1.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for mint.
Requirements installation successful.
Installing Ruby from source to: /home/ahibal/.rvm/rubies/ruby-2.1.1, this may take a while depending on your cpu(s)...
ruby-2.1.1 - #downloading ruby-2.1.1, 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 205k 0 0:00:57 0:00:57 --:--:-- 209k
ruby-2.1.1 - #extracting ruby-2.1.1 to /home/ahibal/.rvm/src/ruby-2.1.1...
ruby-2.1.1 - #applying patch /home/ahibal/.rvm/patches/ruby/changeset_r45225.diff.
ruby-2.1.1 - #applying patch /home/ahibal/.rvm/patches/ruby/changeset_r45240.diff.
ruby-2.1.1 - #configuring.....................................................
ruby-2.1.1 - #post-configuration.
ruby-2.1.1 - #compiling...........
Error running '__rvm_make -j1',
showing last 15 lines of /home/ahibal/.rvm/log/1396460696_ruby-2.1.1/make.log
compiling thread.c
compiling cont.c
compiling ./enc/ascii.c
compiling ./enc/us_ascii.c
compiling ./enc/unicode.c
compiling ./enc/utf_8.c
compiling newline.c
compiling ./missing/strlcpy.c
compiling ./missing/strlcat.c
compiling ./missing/setproctitle.c
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Illegal instruction
++ return 2
There has been an error while running make. Halting the installation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.