Project

General

Profile

Actions

Bug #17194

closed

Unable to build ruby 3.0-preview1 on centos 6

Added by hurricup (Alexandr Evstigneev) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:100169]

Description

Tried to build ruby using rvm:

[root@e6655f0fcbcd /]# rvm install ruby-3
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/6/x86_64/ruby-3.0.0-preview1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for centos.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-3.0.0-preview1, this may take a while depending on your cpu(s)...
ruby-3.0.0-preview1 - #downloading ruby-3.0.0-preview1, 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 14.8M  100 14.8M    0     0  2242k      0  0:00:06  0:00:06 --:--:-- 9943k
ruby-3.0.0-preview1 - #extracting ruby-3.0.0-preview1 to /usr/local/rvm/src/ruby-3.0.0-preview1.....
ruby-3.0.0-preview1 - #configuring..........................................................................
ruby-3.0.0-preview1 - #post-configuration..
ruby-3.0.0-preview1 - #compiling.......................
Error running '__rvm_make -j8',
please read /usr/local/rvm/log/1601109787_ruby-3.0.0-preview1/make.log

There has been an error while running make. Halting the installation.
[root@e6655f0fcbcd /]# cat /usr/local/rvm/log/1601109787_ruby-3.0.0-preview1/make.log
[2020-09-26 08:43:40] __rvm_make
__rvm_make () 
{ 
    \make "$@" || return $?
}
current path: /usr/local/rvm/src/ruby-3.0.0-preview1
GEM_HOME=/usr/local/rvm/gems/ruby-2.4.10
PATH=/usr/local/rvm/gems/ruby-2.4.10/bin:/usr/local/rvm/gems/ruby-2.4.10@global/bin:/usr/local/rvm/rubies/ruby-2.4.10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin
GEM_PATH=/usr/local/rvm/gems/ruby-2.4.10:/usr/local/rvm/gems/ruby-2.4.10@global
command(2): __rvm_make -j8
++ make -j8
        BASERUBY = /usr/local/rvm/rubies/ruby-2.4.10/bin/ruby --disable=gems
        CC = gcc -std=gnu99
        LD = ld
        LDSHARED = gcc -std=gnu99 -shared
        CFLAGS = -O3 -ggdb3 -Wall -Wextra -Werror=deprecated-declarations -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-arith -Werror=write-strings -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable   -fPIC 
        XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -DRUBY_DEVEL=1 -fvisibility=hidden -DRUBY_EXPORT -DCANONICALIZATION_FOR_MATHN -I. -I.ext/include/x86_64-linux -I./include -I. -I./enc/unicode/12.1.0
        CPPFLAGS =   
        DLDFLAGS = -Wl,-soname,libruby.so.3.0  -fstack-protector  
        SOLIBS = -lpthread -lrt -lrt -lrt -ldl -lcrypt -lm 
        LANG = 
        LC_ALL = 
        LC_CTYPE = 
        MFLAGS = - --jobserver-fds=4,5 -j
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
making dummy probes.h
compiling ast.c
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from ./include/ruby.h:31,
                 from ./main.c:21:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from dmydln.c:1:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
compiling bignum.c
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
dmydln.c: In function 'dln_load':
dmydln.c:9: warning: function declared 'noreturn' has a 'return' statement
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
compiling class.c
compiling compar.c
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from internal.h:29,
                 from ast.c:2:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from miniinit.c:12:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
compiling compile.c
In file included from vm_core.h:78,
                 from iseq.h:14,
                 from ast.c:6:
ruby_atomic.h:31:32: error: duplicate macro parameter "var"
compiling complex.c
In file included from vm_core.h:78,
                 from iseq.h:14,
                 from mini_builtin.c:3,
                 from miniinit.c:51:
ruby_atomic.h:31:32: error: duplicate macro parameter "var"
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from internal.h:29,
                 from bignum.c:32:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
compiling cont.c
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
make: *** [miniinit.o] Error 1
make: *** Waiting for unfinished jobs....
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from constant.h:13,
                 from class.c:29:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
make: *** [ast.o] Error 1
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from internal.h:29,
                 from compar.c:13:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
In file included from vm_core.h:78,
                 from class.c:39:
ruby_atomic.h:31:32: error: duplicate macro parameter "var"
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from ./include/ruby/encoding.h:15,
                 from encindex.h:14,
                 from compile.c:19:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from internal.h:29,
                 from complex.c:21:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
make: *** [class.o] Error 1
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
In file included from ./include/ruby/internal/arithmetic/char.h:23,
                 from ./include/ruby/internal/arithmetic.h:23,
                 from ./include/ruby/ruby.h:25,
                 from eval_intern.h:4,
                 from cont.c:21:
./include/ruby/internal/arithmetic/int.h: In function 'rb_int2num_inline':
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h:146: warning: comparison is always true due to limited range of data type
./include/ruby/internal/arithmetic/int.h: In function 'rb_uint2num_inline':
./include/ruby/internal/arithmetic/int.h:155: warning: comparison is always true due to limited range of data type
In file included from vm_core.h:78,
                 from iseq.h:14,
                 from compile.c:35:
ruby_atomic.h:31:32: error: duplicate macro parameter "var"
In file included from vm_core.h:78,
                 from eval_intern.h:5,
                 from cont.c:21:
ruby_atomic.h:31:32: error: duplicate macro parameter "var"
cont.c: In function 'rb_cont_call':
cont.c:1672: warning: function declared 'noreturn' has a 'return' statement
cont.c: In function 'rb_fiber_start':
cont.c:1931: warning: 'noreturn' function does return
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
make: *** [cont.o] Error 1
compile.c: In function 'ibf_load_object_unsupported':
compile.c:11154: warning: function declared 'noreturn' has a 'return' statement
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
make: *** [compile.o] Error 1
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
++ return 2

Actions #1

Updated by naruse (Yui NARUSE) over 3 years ago

  • Status changed from Open to Closed

Applied in changeset git|ce92d15596aab337b5e8b806603eb07ad6528ff2.


fix typo [Bug #17194]

Actions #2

Updated by naruse (Yui NARUSE) over 3 years ago

  • Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED

Updated by mame (Yusuke Endoh) over 3 years ago

Just FYI: Ruby 3 will not support CentOS 6 because the EOL date of the distribution is Nov 30 2020 and Ruby 3 will be released after that. We've already removed CentOS 6 from our CI.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0