Project

General

Profile

Bug #9655

Build failure of Arch linux

Added by hsbt (Hiroshi SHIBATA) over 5 years ago. Updated over 5 years ago.

Status:
Third Party's Issue
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
2.1.0
[ruby-core:61607]

Description

See. https://github.com/sstephenson/ruby-build/issues/500

$ rbenv install --version
ruby-build 20140204

$ uname -a
Linux box 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014 x86_64 GNU/Linux

$ rbenv install -v 2.1.0
................................
compiling iseq.c
compiling vm.c
In file included from vm.c:79:0:
vm_insnhelper.c: In function ‘vm_call_ivar’:
vm_insnhelper.c:1568:1: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See https://bugs.archlinux.org/ for instructions.
Makefile:333: recipe for target 'vm.o' failed
make: *** [vm.o] Error 1
make: *** Waiting for unfinished jobs....

$ rbenv install -v 2.0.0-p353
................................
compiling dmyversion.c
compiling array.c
linking miniruby
generating encdb.h
./tool/mkconfig.rb:180: syntax error, unexpected ' ', expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
  arch_flag = ENV['ARCHFLAGS'] ...
  ^
./tool/mkconfig.rb:179: unterminated string meets end of file
uncommon.mk:528: recipe for target '.rbconfig.time' failed
make: *** [.rbconfig.time] Error 1
make: *** Waiting for unfinished jobs....
./tool/generic_erb.rb:3:in `require': /tmp/ruby-build.20140205212451.28425/ruby-2.0.0-p353/lib/optparse.rb:758: unterminated string meets end of file (SyntaxError)
/tmp/ruby-build.20140205212451.28425/ruby-2.0.0-p353/lib/optparse.rb:758: syntax error, unexpected end-of-input, expecting keyword_end
    from ./tool/generic_erb.rb:3:in `<main>'
uncommon.mk:886: recipe for target 'encdb.h' failed
make: *** [encdb.h] Error 1

History

Updated by phasis68 (Heesob Park) over 5 years ago

It seems that this is a GCC version specific issue.

I cannot reproduce this issue on archlinux with both 2.1.0 and 2.0.0-p353.

[root@arch ~]# uname -a
Linux arch 3.13.8-1-ARCH #1 SMP PREEMPT Tue Apr 1 12:19:51 CEST 2014 x86_64 GNU/Linux
[root@arch ~]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-4.8-20140206/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.8.2 20140206 (prerelease) (GCC)

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Status changed from Open to Third Party's Issue

Also available in: Atom PDF