Skip to content

Instantly share code, notes, and snippets.

@petervandenabeele
Created January 9, 2012 00:06
Show Gist options
  • Save petervandenabeele/1580214 to your computer and use it in GitHub Desktop.
Save petervandenabeele/1580214 to your computer and use it in GitHub Desktop.
rvm install ruby-head fails on Ubuntu 10.04 (32 bit)
peterv@ASUS:~$ rvm cleanup repos
Cleaning up rvm directory '/home/peterv/.rvm/repos'
peterv@ASUS:~$ rvm cleanup sources
Cleaning up rvm directory '/home/peterv/.rvm/src'
peterv@ASUS:~$ rvm install ruby-head
Installing Ruby from source to: /home/peterv/.rvm/rubies/ruby-head, this may take a while depending on your cpu(s)...
ruby-head - #fetching
Cloning from git://github.com/ruby/ruby.git, this may take a while depending on your connection...
Initialized empty Git repository in /home/peterv/.rvm/repos/ruby/.git/
remote: Counting objects: 217264, done.
remote: Compressing objects: 100% (43676/43676), done.
remote: Total 217264 (delta 172520), reused 215086 (delta 171876)
Receiving objects: 100% (217264/217264), 74.47 MiB | 3.38 MiB/s, done.
Resolving deltas: 100% (172520/172520), done.
HEAD is now at 471394f * gc.c: i686-linux needs to define _XOPEN_SOURCE 600 for posix_memalign.
From git://github.com/ruby/ruby
* branch trunk -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
Running autoreconf
ruby-head - #configuring
ruby-head - #compiling
ERROR: Error running 'make ', please read /home/peterv/.rvm/log/ruby-head/make.log
ERROR: There has been an error while running make. Halting the installation.
peterv@ASUS:~$ cat /home/peterv/.rvm/log/ruby-head/make.log
[2012-01-09 00:54:36] make
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -fPIC
XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/i686-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.2.0 -fstack-protector
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling dmyversion.c
generating miniprelude.c
bison -d -o y.tab.c parse.y
sed -f ./tool/ytab.sed -e "/^#/s!y\.tab\.c!parse.c!" y.tab.c > parse.c.new
sed -e "/^#line.*y\.tab\.h/d;/^#line.*parse\.y/d" y.tab.h > parse.h.new
parse.h updated
generating id.h
id.h updated
compiling miniprelude.c
compiling array.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling enum.c
compiling enumerator.c
generating known_errors.inc
known_errors.inc updated
compiling error.c
compiling eval.c
compiling load.c
compiling proc.c
compiling file.c
compiling gc.c
gc.c:41:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/time.h:23,
from ./include/ruby/missing.h:28,
from <command-line>:0:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
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
copying lex.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
generating insns.inc
generating insns_info.inc
generating optinsn.inc
generating optunifs.inc
generating opt_sc.inc
compiling compile.c
compiling debug.c
generating node_name.inc
compiling iseq.c
generating vmtc.inc
generating vm.inc
compiling vm.c
compiling vm_dump.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
generating newline.c ...
converter for universal_newline
converter for crlf_newline
converter for cr_newline
done. (0.07user 0.00system 0.02elapsed)
compiling newline.c
compiling ./missing/strlcpy.c
compiling ./missing/strlcat.c
compiling ./missing/setproctitle.c
compiling addr2line.c
compiling dmyext.c
linking miniruby
rbconfig.rb updated
generating enc.mk
compiling dln.c
compiling encoding.c
generating prelude.c
compiling prelude.c
linking static-library libruby-static.a
linking shared-library libruby.so.2.0.0
generating encdb.h
encdb.h updated
making enc
make[1]: Entering directory `/home/peterv/.rvm/src/ruby-head'
compiling ./enc/encdb.c
linking encoding encdb.so
compiling ./enc/big5.c
linking encoding big5.so
compiling ./enc/cp949.c
linking encoding cp949.so
compiling ./enc/emacs_mule.c
linking encoding emacs_mule.so
compiling ./enc/euc_jp.c
linking encoding euc_jp.so
compiling ./enc/euc_kr.c
linking encoding euc_kr.so
compiling ./enc/euc_tw.c
linking encoding euc_tw.so
compiling ./enc/gb2312.c
linking encoding gb2312.so
compiling ./enc/gb18030.c
linking encoding gb18030.so
compiling ./enc/gbk.c
linking encoding gbk.so
compiling ./enc/iso_8859_1.c
linking encoding iso_8859_1.so
compiling ./enc/iso_8859_2.c
linking encoding iso_8859_2.so
compiling ./enc/iso_8859_3.c
linking encoding iso_8859_3.so
compiling ./enc/iso_8859_4.c
linking encoding iso_8859_4.so
compiling ./enc/iso_8859_5.c
linking encoding iso_8859_5.so
compiling ./enc/iso_8859_6.c
linking encoding iso_8859_6.so
compiling ./enc/iso_8859_7.c
linking encoding iso_8859_7.so
compiling ./enc/iso_8859_8.c
linking encoding iso_8859_8.so
compiling ./enc/iso_8859_9.c
linking encoding iso_8859_9.so
compiling ./enc/iso_8859_10.c
linking encoding iso_8859_10.so
compiling ./enc/iso_8859_11.c
linking encoding iso_8859_11.so
compiling ./enc/iso_8859_13.c
linking encoding iso_8859_13.so
compiling ./enc/iso_8859_14.c
linking encoding iso_8859_14.so
compiling ./enc/iso_8859_15.c
linking encoding iso_8859_15.so
compiling ./enc/iso_8859_16.c
linking encoding iso_8859_16.so
compiling ./enc/koi8_r.c
linking encoding koi8_r.so
compiling ./enc/koi8_u.c
linking encoding koi8_u.so
compiling ./enc/shift_jis.c
linking encoding shift_jis.so
compiling ./enc/utf_16be.c
linking encoding utf_16be.so
compiling ./enc/utf_16le.c
linking encoding utf_16le.so
compiling ./enc/utf_32be.c
linking encoding utf_32be.so
compiling ./enc/utf_32le.c
linking encoding utf_32le.so
compiling ./enc/windows_1251.c
linking encoding windows_1251.so
make[1]: Leaving directory `/home/peterv/.rvm/src/ruby-head'
making srcs under enc
make[1]: Entering directory `/home/peterv/.rvm/src/ruby-head'
generating table from enc/trans/big5.c
generating enc/trans/big5.c ...
converter from Big5 to UTF-8
converter from UTF-8 to Big5
converter from CP950 to UTF-8
converter from UTF-8 to CP950
converter from Big5-HKSCS to UTF-8
converter from UTF-8 to Big5-HKSCS
converter from CP951 to UTF-8
converter from UTF-8 to CP951
converter from Big5-UAO to UTF-8
converter from UTF-8 to Big5-UAO
done. (10.61user 0.06system 10.63elapsed)
generating table from enc/trans/chinese.c
generating enc/trans/chinese.c ...
load mapsrc enc/trans/GB/GB2312%UCS.src
converter from GB2312 to UTF-8
load mapsrc enc/trans/GB/GB12345%UCS.src
converter from GB12345 to UTF-8
load mapsrc enc/trans/GB/UCS%GB2312.src
converter from UTF-8 to GB2312
load mapsrc enc/trans/GB/UCS%GB12345.src
converter from UTF-8 to GB12345
done. (2.17user 0.01system 2.15elapsed)
generating table from enc/trans/emoji.c
generating enc/trans/emoji.c ...
enc/trans/emoji.trans:4: [BUG] compile_array: This node is not NODE_ARRAY, but NODE_STR
ruby 2.0.0dev (2012-01-09) [i686-linux]
-- Control frame information -----------------------------------------------
c:0008 p:---- s:0051 b:0051 l:000050 d:000050 CFUNC :require
c:0007 p:0046 s:0047 b:0047 l:001b9c d:000d68 EVAL enc/trans/emoji.trans:4
c:0006 p:---- s:0042 b:0042 l:000041 d:000041 FINISH
c:0005 p:---- s:0040 b:0040 l:000039 d:000039 CFUNC :eval
c:0004 p:0062 s:0033 b:0033 l:000032 d:000032 METHOD /home/peterv/.rvm/src/ruby-head/lib/erb.rb:838
c:0003 p:1570 s:0028 b:0028 l:001b9c d:0018f4 EVAL ./tool/transcode-tblgen.rb:1033
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001b9c d:001b9c TOP
-- Ruby level backtrace information ----------------------------------------
./tool/transcode-tblgen.rb:1033:in `<main>'
/home/peterv/.rvm/src/ruby-head/lib/erb.rb:838:in `result'
/home/peterv/.rvm/src/ruby-head/lib/erb.rb:838:in `eval'
enc/trans/emoji.trans:4:in `<main>'
enc/trans/emoji.trans:4:in `require'
-- C level backtrace information -------------------------------------------
./miniruby() [0x81c7423] vm_dump.c:812
./miniruby() [0x8096277] error.c:266
./miniruby(rb_bug+0x49) [0x8096379] error.c:285
./miniruby() [0x81a5fdf] compile.c:2292
./miniruby() [0x819fa61] compile.c:4259
./miniruby() [0x81a5e48] compile.c:2300
./miniruby() [0x81a61d1] compile.c:2338
./miniruby() [0x819f933] compile.c:5001
./miniruby() [0x819aba6] compile.c:3027
./miniruby(rb_iseq_compile_node+0x8ca) [0x81a517a] compile.c:488
./miniruby(rb_iseq_new_with_opt+0xa0) [0x81add20] iseq.c:413
./miniruby(rb_iseq_new_top+0x53) [0x81ae273] iseq.c:388
./miniruby() [0x809adfa] load.c:308
./miniruby(rb_require_safe+0x63a) [0x809c4aa] load.c:627
./miniruby(rb_f_require+0x26) [0x809c7c6] load.c:473
./miniruby() [0x81afb33] vm_insnhelper.c:371
./miniruby() [0x81b48c5] vm_insnhelper.c:452
./miniruby() [0x81b5d2d] insns.def:1015
./miniruby() [0x81bbfe2] vm.c:1217
./miniruby() [0x81bc94c] vm_eval.c:1065
./miniruby() [0x81bcfbc] vm_eval.c:1106
./miniruby() [0x81afb58] vm_insnhelper.c:365
./miniruby() [0x81b48c5] vm_insnhelper.c:452
./miniruby() [0x81b5d2d] insns.def:1015
./miniruby() [0x81bbfe2] vm.c:1217
./miniruby(rb_iseq_eval_main+0x1f7) [0x81bc3e7] vm.c:1459
./miniruby() [0x8097eda] eval.c:204
./miniruby(ruby_exec_node+0x25) [0x8097f15] eval.c:251
./miniruby(ruby_run_node+0x35) [0x8099885] eval.c:244
./miniruby() [0x805c178] main.c:38
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x400cabd6]
./miniruby() [0x805c071]
-- Other runtime information -----------------------------------------------
* Loaded script: ./tool/transcode-tblgen.rb
* Loaded features:
0 enumerator.so
1 /home/peterv/.rvm/src/ruby-head/lib/optparse.rb
2 /home/peterv/.rvm/src/ruby-head/lib/erb.rb
3 /home/peterv/.rvm/src/ruby-head/lib/fileutils.rb
4 /home/peterv/.rvm/src/ruby-head/lib/prettyprint.rb
5 /home/peterv/.rvm/src/ruby-head/lib/pp.rb
* Process memory map:
08048000-08237000 r-xp 00000000 08:05 3452282 /home/peterv/.rvm/src/ruby-head/miniruby
08237000-0823a000 r--p 001ef000 08:05 3452282 /home/peterv/.rvm/src/ruby-head/miniruby
0823a000-0823b000 rw-p 001f2000 08:05 3452282 /home/peterv/.rvm/src/ruby-head/miniruby
0823b000-0824b000 rw-p 00000000 00:00 0
096ba000-099f3000 rw-p 00000000 00:00 0 [heap]
40000000-4001b000 r-xp 00000000 08:03 434206 /lib/ld-2.11.1.so
4001b000-4001c000 r--p 0001a000 08:03 434206 /lib/ld-2.11.1.so
4001c000-4001d000 rw-p 0001b000 08:03 434206 /lib/ld-2.11.1.so
4001d000-4001e000 r-xp 00000000 00:00 0 [vdso]
4001e000-40020000 rw-p 00000000 00:00 0
40020000-40027000 r--s 00000000 08:03 1966520 /usr/lib/gconv/gconv-modules.cache
40027000-40028000 ---p 00000000 00:00 0
40028000-4002c000 rw-p 00000000 00:00 0
40035000-4004a000 r-xp 00000000 08:03 451167 /lib/tls/i686/cmov/libpthread-2.11.1.so
4004a000-4004b000 r--p 00014000 08:03 451167 /lib/tls/i686/cmov/libpthread-2.11.1.so
4004b000-4004c000 rw-p 00015000 08:03 451167 /lib/tls/i686/cmov/libpthread-2.11.1.so
4004c000-4004e000 rw-p 00000000 00:00 0
4004e000-40055000 r-xp 00000000 08:03 451169 /lib/tls/i686/cmov/librt-2.11.1.so
40055000-40056000 r--p 00006000 08:03 451169 /lib/tls/i686/cmov/librt-2.11.1.so
40056000-40057000 rw-p 00007000 08:03 451169 /lib/tls/i686/cmov/librt-2.11.1.so
40057000-40058000 rw-p 00000000 00:00 0
40058000-4005a000 r-xp 00000000 08:03 451153 /lib/tls/i686/cmov/libdl-2.11.1.so
4005a000-4005b000 r--p 00001000 08:03 451153 /lib/tls/i686/cmov/libdl-2.11.1.so
4005b000-4005c000 rw-p 00002000 08:03 451153 /lib/tls/i686/cmov/libdl-2.11.1.so
4005c000-40065000 r-xp 00000000 08:03 451152 /lib/tls/i686/cmov/libcrypt-2.11.1.so
40065000-40066000 r--p 00008000 08:03 451152 /lib/tls/i686/cmov/libcrypt-2.11.1.so
40066000-40067000 rw-p 00009000 08:03 451152 /lib/tls/i686/cmov/libcrypt-2.11.1.so
40067000-4008e000 rw-p 00000000 00:00 0
4008e000-400b2000 r-xp 00000000 08:03 451154 /lib/tls/i686/cmov/libm-2.11.1.so
400b2000-400b3000 r--p 00023000 08:03 451154 /lib/tls/i686/cmov/libm-2.11.1.so
400b3000-400b4000 rw-p 00024000 08:03 451154 /lib/tls/i686/cmov/libm-2.11.1.so
400b4000-40207000 r-xp 00000000 08:03 451150 /lib/tls/i686/cmov/libc-2.11.1.so
40207000-40208000 ---p 00153000 08:03 451150 /lib/tls/i686/cmov/libc-2.11.1.so
40208000-4020a000 r--p 00153000 08:03 451150 /lib/tls/i686/cmov/libc-2.11.1.so
4020a000-4020b000 rw-p 00155000 08:03 451150 /lib/tls/i686/cmov/libc-2.11.1.so
4020b000-40210000 rw-p 00000000 00:00 0
40210000-4024f000 r--p 00000000 08:03 2080911 /usr/lib/locale/en_US.utf8/LC_CTYPE
4024f000-402d0000 rw-p 00000000 00:00 0
402e5000-40302000 r-xp 00000000 08:03 434304 /lib/libgcc_s.so.1
40302000-40303000 r--p 0001c000 08:03 434304 /lib/libgcc_s.so.1
40303000-40304000 rw-p 0001d000 08:03 434304 /lib/libgcc_s.so.1
bfc55000-bfc6b000 rw-p 00000000 00:00 0 [stack]
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Aborted
make[1]: *** [enc/trans/emoji.c] Error 134
make[1]: Leaving directory `/home/peterv/.rvm/src/ruby-head'
make: *** [srcs-enc] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment