From: "dklein (Dmitri Klein)" Date: 2021-12-22T22:43:57+00:00 Subject: [ruby-core:106773] [CommonRuby Feature#18423] Installing stable versions like 3.0.3 from source generates fatal error by make Issue #18423 has been reported by dklein (Dmitri Klein). ---------------------------------------- Feature #18423: Installing stable versions like 3.0.3 from source generates fatal error by make https://bugs.ruby-lang.org/issues/18423 * Author: dklein (Dmitri Klein) * Status: Open * Priority: Normal ---------------------------------------- # make BASERUBY = echo executable host ruby is required. use --with-baseruby option.; false CC = /opt/SUNWspro/bin/CC LD = /usr/ccs/bin/ld LDSHARED = /opt/SUNWspro/bin/CC -G CFLAGS = -g XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0 CPPFLAGS = -D_XOPEN_SOURCE=500 DLDFLAGS = SOLIBS = -lz -lpthread -lrt -lrt -lrt -lsocket -ldl -lcrypt -lm LANG = LC_ALL = LC_CTYPE = MFLAGS = CC: Sun C++ 5.12 SunOS_i386 2011/11/16 compiling vm.c "./include/ruby/backward/cxxanyargs.hpp", line 207: Warning (Anachronism): Formal argument 1 of type extern "C" unsigned long(*)(unsigned long) in call to rb_iterate(extern "C" unsigned long(*)(unsigned long), unsigned long, extern "C" unsigned long(*)(unsigned long,unsigned long,int,const unsigned long*,unsigned long), unsigned long) is being passed unsigned long(*)(unsigned long). ... "./include/ruby/backward/cxxanyargs.hpp", line 648: Error: Template parameter ruby::backward::cxxanyargs::define_method::F requires an expression of type void(*)(const char*,unsigned long(*)(...),int). "./include/ruby/internal/fl_type.h", line 205: Warning: Identifier expected instead of "}". "internal.h", line 16: Error: #error not for C++. *** Error code 2 The following command caused the error: /opt/SUNWspro/bin/CC -g -DRUBY_EXPORT -I. -I.ext/include/i386-solaris2.10 -I./include -I. -I./enc/unicode/12.1.0 -D_XOPEN_SOURCE=500 -o vm.o -c vm.c make: Fatal error: Command failed for target `vm.o' # -- https://bugs.ruby-lang.org/ Unsubscribe: