ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [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
       [not found] <redmine.issue-14826.20180605140204@ruby-lang.org>
@ 2018-06-05 14:02 ` ngotogenome
  0 siblings, 0 replies; only message in thread
From: ngotogenome @ 2018-06-05 14:02 UTC (permalink / raw)
  To: ruby-dev

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-05 14:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-14826.20180605140204@ruby-lang.org>
2018-06-05 14:02 ` [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 ngotogenome

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).