Skip to content

Instantly share code, notes, and snippets.

@stevesparks
Last active December 22, 2015 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevesparks/eebabfbcc23884b29c24 to your computer and use it in GitHub Desktop.
Save stevesparks/eebabfbcc23884b29c24 to your computer and use it in GitHub Desktop.
Failure when installing Ruby 2.0.0 with RVM.
bash-3.2# rvm install ruby --debug
ruby - install
Searching for binary rubies, this might take some time.
Remote file does not exist https://rvm.io/binaries/synology/libc-2.3/x86_64/ruby-2.0.0-p247.tar.bz2
Remote file does not exist http://jruby.org.s3.amazonaws.com/downloads/ruby-2.0.0-p247.tar.bz2
Remote file does not exist http://binaries.rubini.us/synology/libc-2.3/x86_64/ruby-2.0.0-p247.tar.bz2
rvm_remote_server_url3 not found
No remote file name found
No binary rubies available for: synology/libc-2.3/x86_64/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
__rvm_setup_compile_environment_setup ruby-2.0.0-p247
rvm_autolibs_flag=4
__rvm_setup_compile_environment_movable_early ruby-2.0.0-p247
__rvm_setup_compile_environment_requirements ruby-2.0.0-p247
Checking requirements for synology.
requirements code for synology loaded
rvm_configure_flags+=( --with-opt-dir=/usr/local )
Found required packages: gcc, autoconf, automake, libtool, bison, readline, openssl.
Requirements installation successful.
__rvm_setup_compile_environment_movable ruby-2.0.0-p247
__rvm_setup_compile_environment_osx_compiler ruby-2.0.0-p247
__rvm_setup_compile_environment_architectures ruby-2.0.0-p247
rvm_architectures(0):.
__rvm_setup_compile_environment_gcc47plus ruby-2.0.0-p247
__rvm_setup_compile_environment_bison ruby-2.0.0-p247
__rvm_setup_compile_environment_smartos ruby-2.0.0-p247
__rvm_setup_compile_environment_openindiana ruby-2.0.0-p247
__rvm_setup_compile_environment_sunos ruby-2.0.0-p247
__rvm_setup_compile_environment_openbsd ruby-2.0.0-p247
__rvm_setup_compile_environment_auto_conf_make ruby-2.0.0-p247
__rvm_setup_compile_environment_flags_docs ruby-2.0.0-p247
__rvm_setup_compile_environment_flags_tcltk ruby-2.0.0-p247
__rvm_setup_compile_environment_flags_shared_static ruby-2.0.0-p247
__rvm_setup_compile_environment_flags_threads ruby-2.0.0-p247
found compiler: /opt/bin/gcc
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.0.0-p247, this may take a while depending on your cpu(s)...
ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection...
Archive checksum matched, not downloading
Downloaded archive checksum matched.
ruby-2.0.0-p247 - #extracted to /usr/local/rvm/src/ruby-2.0.0-p247 (already extracted)
Trying patch 'default'.
Patch name 'default'.
/usr/local/rvm/scripts/functions/manage/base: line 14: /dev/fd/62: No such file or directory
Trying patch 'synology'.
Patch name 'synology'.
/usr/local/rvm/scripts/functions/manage/base: line 14: /dev/fd/60: No such file or directory
All found patches(0): .
Log prefix: /usr/local/rvm/log/1378113319_ruby-2.0.0-p247/
Log filesystem: ext4
Log max name length: 250
Log file: /usr/local/rvm/log/1378113319_ruby-2.0.0-p247/configure.log
[2013-09-02 05:15:19] ./configure
current path: /usr/local/rvm/src/ruby-2.0.0-p247
command(5): ./configure --prefix=/usr/local/rvm/rubies/ruby-2.0.0-p247 --with-opt-dir=/usr/local --disable-install-doc --enable-shared
ruby-2.0.0-p247 - #configuring.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Log file: /usr/local/rvm/log/1378113319_ruby-2.0.0-p247/postconfigure.log
[2013-09-02 05:16:08] __rvm_post_configure_ruby
__rvm_post_configure_ruby ()
{
typeset option;
if (( ${rvm_static_flag:-0} == 1 )); then
for option in 'option nodynamic' openssl psych zlib readline;
do
__rvm_update_ext_setup ${option};
done;
fi
}
current path: /usr/local/rvm/src/ruby-2.0.0-p247
command(1): __rvm_post_configure_ruby
ruby-2.0.0-p247 - #post-configuration
Log file: /usr/local/rvm/log/1378113319_ruby-2.0.0-p247/make.log
[2013-09-02 05:16:08] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /usr/local/rvm/src/ruby-2.0.0-p247
command(2): __rvm_make -j4
ruby-2.0.0-p247 - #compiling...............................................
Error running '__rvm_make -j4',
please read /usr/local/rvm/log/1378113319_ruby-2.0.0-p247/make.log
There has been an error while running make. Halting the installation.
__rvm_rm_rf already gone: /usr/local/rvm/tmp/28498*
[2013-09-02 05:11:40] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /usr/local/rvm/src/ruby-2.0.0-p247
command(2): __rvm_make -j4
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 = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I/usr/local/include -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.2.0 -L/usr/local/lib -Wl,-R/usr/local/lib -fstack-protector
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling miniprelude.c
copying dummy probes.h
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling enum.c
enum.c: In function 'sort_by_i':
enum.c:791: warning: dereferencing type-punned pointer will break strict-aliasing rules
enum.c: In function 'enum_sort_by':
enum.c:925: warning: dereferencing type-punned pointer will break strict-aliasing rules
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
regparse.c: In function 'onig_parse_make_tree':
regparse.c:6317: warning: passing argument 3 of 'parse_regexp' discards qualifiers from pointer target type
compiling strftime.c
compiling string.c
compiling struct.c
compiling time.c
compiling transcode.c
time.c: In function 'localtimew':
time.c:1509: warning: 'tm.tm_isdst' may be used uninitialized in this function
time.c:1509: note: 'tm.tm_isdst' was declared here
compiling util.c
compiling variable.c
compiling compile.c
compiling debug.c
compiling iseq.c
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/memcmp.c
compiling ./missing/strlcpy.c
compiling ./missing/strlcat.c
compiling ./missing/setproctitle.c
compiling addr2line.c
compiling ./missing/alloca.c
./missing/alloca.c:29: warning: 'SCCSid' defined but not used
compiling dmyext.c
compiling dln.c
compiling encoding.c
compiling dmyversion.c
compiling array.c
linking miniruby
file.o: In function `lchmod_internal':
/usr/local/rvm/src/ruby-2.0.0-p247/file.c:2103: warning: warning: lchmod is not implemented and will always fail
dmyencoding.o: In function `set_encoding_const':
/usr/local/rvm/src/ruby-2.0.0-p247/encoding.c:1553: undefined reference to `__stack_chk_fail_local'
complex.o: In function `parse_comp':
/usr/local/rvm/src/ruby-2.0.0-p247/complex.c:1797: undefined reference to `__stack_chk_fail_local'
dir.o: In function `dir_each':
/usr/local/rvm/src/ruby-2.0.0-p247/dir.c:633: undefined reference to `__stack_chk_fail_local'
dir.o: In function `dir_read':
/usr/local/rvm/src/ruby-2.0.0-p247/dir.c:596: undefined reference to `__stack_chk_fail_local'
dir.o: In function `glob_helper':
/usr/local/rvm/src/ruby-2.0.0-p247/dir.c:1499: undefined reference to `__stack_chk_fail_local'
error.o:/usr/local/rvm/src/ruby-2.0.0-p247/error.c:1960: more undefined references to `__stack_chk_fail_local' follow
io.o: In function `rb_update_max_fd':
/usr/local/rvm/src/ruby-2.0.0-p247/io.c:174: undefined reference to `__sync_val_compare_and_swap_4'
io.o: In function `finish_writeconv':
/usr/local/rvm/src/ruby-2.0.0-p247/io.c:3995: undefined reference to `__stack_chk_fail_local'
io.o: In function `pipe_open':
/usr/local/rvm/src/ruby-2.0.0-p247/io.c:5887: undefined reference to `__stack_chk_fail_local'
io.o: In function `nogvl_copy_stream_func':
/usr/local/rvm/src/ruby-2.0.0-p247/io.c:9987: undefined reference to `__stack_chk_fail_local'
io.o: In function `parse_mode_enc':
/usr/local/rvm/src/ruby-2.0.0-p247/io.c:4940: undefined reference to `__stack_chk_fail_local'
io.o: In function `rb_io_getline_1':
/usr/local/rvm/src/ruby-2.0.0-p247/io.c:3063: undefined reference to `__stack_chk_fail_local'
marshal.o:/usr/local/rvm/src/ruby-2.0.0-p247/marshal.c:405: more undefined references to `__stack_chk_fail_local' follow
thread.o: In function `rb_threadptr_execute_interrupts':
/usr/local/rvm/src/ruby-2.0.0-p247/thread.c:1906: undefined reference to `__sync_val_compare_and_swap_4'
unicode.o: In function `onigenc_unicode_property_name_to_ctype':
/usr/local/rvm/src/ruby-2.0.0-p247/./enc/unicode.c:185: undefined reference to `__stack_chk_fail_local'
setproctitle.o: In function `setproctitle':
/usr/local/rvm/src/ruby-2.0.0-p247/./missing/setproctitle.c:168: undefined reference to `__stack_chk_fail_local'
addr2line.o: In function `kprintf':
/usr/local/rvm/src/ruby-2.0.0-p247/addr2line.c:714: undefined reference to `__stack_chk_fail_local'
addr2line.o: In function `follow_debuglink':
/usr/local/rvm/src/ruby-2.0.0-p247/addr2line.c:453: undefined reference to `__stack_chk_fail_local'
collect2: ld returned 1 exit status
make: *** [miniruby] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment