From: ngotogenome@... Date: 2018-06-05T14:02:05+00:00 Subject: [ruby-dev:50562] [Ruby trunk Bug#14826] make: *** [.ext/include/sparc-solaris2.10/rb_mjit_min_header-2.6.0.h] Error 1 on Solaris 10 with very old gcc3 Issue #14826 has been reported by ngoto (Naohisa Goto). ---------------------------------------- Bug #14826: make: *** [.ext/include/sparc-solaris2.10/rb_mjit_min_header-2.6.0.h] Error 1 on Solaris 10 with very old gcc3 https://bugs.ruby-lang.org/issues/14826 * Author: ngoto (Naohisa Goto) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Solaris 10 上にて、Sun(現Oracle)がOSのおまけとして提供しているフリーソフト集に含まれている、とても古いバージョンのgccにてrubyをコンパイルすると、rb_mjit_min_header-2.6.0.h の作成に失敗してエラーになります。 (r63531にて確認) ~~~ make[1]: Leaving directory `/var/tmp/tmp.DzLrdENoQV/sparc32-gcc3-trunk-63571' /usr/sfw/bin/gcc -E -DMJIT_HEADER -P -dD -O -D_FORTIFY_SOURCE=2 -DRUBY_DEVEL=1 -DRUBY_EXPORT -fPIE -DCANONICALIZATION_FOR_MATHN -I/usr/local/include -std=gnu99 -D_XOPEN_SOURCE=600 -I. -I.ext/include/sparc-solaris2.10 -I./include -I. -I./enc/unicode/10.0.0 ./vm.c -o rb_mjit_header.h.new ./tool/ifchange "--timestamp=.ext/.timestamp/rb_mjit_header.time" rb_mjit_header.h rb_mjit_header.h.new rb_mjit_header.h updated ./miniruby -I./lib -I. -I.ext/common ./tool/transform_mjit_header.rb "/usr/sfw/bin/gcc " rb_mjit_header.h .ext/include/sparc-solaris2.10/rb_mjit_min_header-2.6.0.h error in initial header file: cc1: error: unrecognized command line option "-Werror=implicit-function-declaration" cc1: error: unrecognized command line option "-Werror=implicit-int" cc1: error: unrecognized command line option "-Wfatal-errors" make: *** [.ext/include/sparc-solaris2.10/rb_mjit_min_header-2.6.0.h] Error 1 ~~~ gccのバージョンは以下のとおりです。 ~~~ $ /usr/sfw/bin/gcc --version gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Copyright (C) 2004 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. ~~~ 今さらgccバージョン3系を使うほうが悪いのは重々承知ですが、念のため記録だけしておきます。 -- https://bugs.ruby-lang.org/