Bug #12679

Failed to build ruby on aarch64 with musl libc and gcc 6

Added by clandmeter (Carlo Landmeter) over 4 years ago. Updated over 1 year ago.

Target version:


verconf.h updated
compiling loadpath.c
encdb.h updated
linking static-library libruby-static.a
making srcs under enc
make[1]: Entering directory '/home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1'
make[1]: Nothing to be done for 'srcs'.
make[1]: Leaving directory '/home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1'
generating transdb.h
verifying static-library libruby-static.a
./template/transdb.h.tmpl:17: [BUG] Segmentation fault at 0x00000000000000
ruby 2.3.1p112 (2016-04-26 revision 54768) [aarch64-linux-musl]

-- Control frame information -----------------------------------------------
c:0008 p:---- s:0049 e:000048 IFUNC
c:0007 p:---- s:0047 e:000046 CFUNC  :each
c:0006 p:---- s:0045 e:000044 CFUNC  :inject
c:0005 p:0062 s:0041 E:000ed8 EVAL   ./template/transdb.h.tmpl:17 [FINISH]
c:0004 p:---- s:0032 e:000031 CFUNC  :eval
c:0003 p:0050 s:0025 e:000024 METHOD /home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/lib/erb.rb:864
c:0002 p:0384 s:0021 E:001818 EVAL   ./tool/generic_erb.rb:38 [FINISH]
c:0001 p:0000 s:0002 E:0000d0 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
./tool/generic_erb.rb:38:in `<main>'
/home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/lib/erb.rb:864:in `result'
/home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/lib/erb.rb:864:in `eval'
./template/transdb.h.tmpl:17:in `<main>'
./template/transdb.h.tmpl:17:in `inject'
./template/transdb.h.tmpl:17:in `each'

-- Other runtime information -----------------------------------------------

* Loaded script: ./tool/generic_erb.rb

* Loaded features:

    1 thread.rb
    4 /home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/lib/cgi/util.rb
    5 /home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/lib/erb.rb
    6 /home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/lib/optparse.rb
    7 /home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/lib/fileutils.rb
    8 /home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/tool/vpath.rb

* Process memory map:

2aaac4c0000-2aaac680000 r-xp 00000000 00:27 1100437                      /home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/miniruby
2aaac680000-2aaac690000 r--p 001b0000 00:27 1100437                      /home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/miniruby
2aaac690000-2aaac6a0000 rw-p 001c0000 00:27 1100437                      /home/clandmeter/aports-aarch64/main/ruby/src/ruby-2.3.1/miniruby
2aabc490000-2aabc780000 rw-p 00000000 00:00 0                            [heap]
3ff7cf90000-3ff7cfa0000 ---p 00000000 00:00 0
3ff7cfa0000-3ff7d0c0000 rw-p 00000000 00:00 0                            [stack:10116]
3ff7d0c0000-3ff7d120000 r-xp 00000000 00:27 1212                         /usr/lib/
3ff7d120000-3ff7d130000 rw-p 00050000 00:27 1212                         /usr/lib/
3ff7d130000-3ff7d140000 r--p 00000000 00:00 0                            [vvar]
3ff7d140000-3ff7d150000 r-xp 00000000 00:00 0                            [vdso]
3ff7d150000-3ff7d1e0000 r-xp 00000000 00:27 509023                       /lib/
3ff7d1e0000-3ff7d200000 rw-p 00080000 00:27 509023                       /lib/
3ffd8380000-3ffd83b0000 rw-p 00000000 00:00 0

You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details:

make: *** [ transdb.h] Aborted
make: *** Waiting for unfinished jobs....
>>> ERROR: ruby: all failed
>>> ruby: Uninstalling dependencies...

Updated by clandmeter (Carlo Landmeter) over 4 years ago

  • Description updated (diff)

Updated by shyouhei (Shyouhei Urabe) about 4 years ago

  • Status changed from Open to Feedback

Sorry, this platform (arch and libc) is not actively supported officially I think.

I'm happy to introduce a fix if someone have one.


Updated by jeremyevans0 (Jeremy Evans) over 1 year ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF