Project

General

Profile

Bug #14234

Failed to build on CentOS 6.9

Added by miyohide (Hidenori Miyoshi) 8 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:84449]

Description

CentOS 6.9(gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)) にてrbenv - ruby-buildを使ってRuby 2.5.0のビルドを試みると失敗します。

[~]$ rbenv install 2.5.0
Downloading ruby-2.5.0.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.0.tar.bz2
Installing ruby-2.5.0...

BUILD FAILED (CentOS release 6.9 (Final) using ruby-build 20171215-6-g3bd8c9a)

Inspect or clean up the working tree at /tmp/ruby-build.20171226075813.10682
Results logged to /tmp/ruby-build.20171226075813.10682.log

Last 10 log lines:
vm_eval.c: In function ‘eval_string_with_cref’:
vm_eval.c:1352: 警告: ‘_ec’ may be used uninitialized in this function
vm_eval.c: In function ‘rb_eval_cmd’:
vm_eval.c:1518: 警告: ‘safe’ may be used uninitialized in this function
vm_eval.c:1525: 警告: ‘_ec’ may be used uninitialized in this function
トップレベル:
cc1: 警告: unrecognized command line option "-Wno-self-assign"
cc1: 警告: unrecognized command line option "-Wno-constant-logical-operand"
cc1: 警告: unrecognized command line option "-Wno-parentheses-equality"
cc1: 警告: unrecognized command line option "-Wno-tautological-compare"
[~]$

出力されたログファイル(/tmp/ruby-build.20171226075813.10682)からエラー出力箇所の抜粋したものが以下のものです。ログ全体は、添付ファイルにて。

prelude.c: In function ‘prelude_eval’:
prelude.c:204: error: #pragma GCC diagnostic not allowed inside functions
prelude.c:205: error: #pragma GCC diagnostic not allowed inside functions
prelude.c:221: error: #pragma GCC diagnostic not allowed inside functions
トップレベル:
cc1: 警告: unrecognized command line option "-Wno-self-assign"
cc1: 警告: unrecognized command line option "-Wno-constant-logical-operand"
cc1: 警告: unrecognized command line option "-Wno-parentheses-equality"
cc1: 警告: unrecognized command line option "-Wno-tautological-compare"
make: *** [prelude.o] エラー 1
make: *** 未完了のジョブを待っています....
ruby2.5_build_error.txt (36.6 KB) ruby2.5_build_error.txt miyohide (Hidenori Miyoshi), 12/25/2017 11:36 PM

Related issues

Has duplicate Ruby trunk - Bug #14242: Fails to build ruby 2.5.0 on CentOS 6Rejected

Associated revisions

Revision de11e472
Added by nobu (Nobuyoshi Nakada) 8 months ago

prelude.c.tmpl: get rid of errors with old gcc

  • template/prelude.c.tmpl: moved diagnostic pragmas outside prelude_eval() for very old gcc. [Bug #14234]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 61478
Added by nobu (Nobuyoshi Nakada) 8 months ago

prelude.c.tmpl: get rid of errors with old gcc

  • template/prelude.c.tmpl: moved diagnostic pragmas outside prelude_eval() for very old gcc. [Bug #14234]

Revision 09088d03
Added by naruse (Yui NARUSE) 8 months ago

merge revision(s) 61478: [Backport #14234]

prelude.c.tmpl: get rid of errors with old gcc

* template/prelude.c.tmpl: moved diagnostic pragmas outside
  prelude_eval() for very old gcc.   [Bug #14234]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@61496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 61496
Added by naruse (Yui NARUSE) 8 months ago

merge revision(s) 61478: [Backport #14234]

prelude.c.tmpl: get rid of errors with old gcc

* template/prelude.c.tmpl: moved diagnostic pragmas outside
  prelude_eval() for very old gcc.   [Bug #14234]

History

#1 Updated by nobu (Nobuyoshi Nakada) 8 months ago

  • Status changed from Open to Closed

Applied in changeset trunk|r61478.


prelude.c.tmpl: get rid of errors with old gcc

  • template/prelude.c.tmpl: moved diagnostic pragmas outside prelude_eval() for very old gcc. [Bug #14234]

#2 Updated by hsbt (Hiroshi SHIBATA) 8 months ago

  • Backport changed from 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN to 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED

#3 Updated by hsbt (Hiroshi SHIBATA) 8 months ago

  • Has duplicate Bug #14242: Fails to build ruby 2.5.0 on CentOS 6 added

#4 [ruby-core:84501] Updated by naruse (Yui NARUSE) 8 months ago

  • Backport changed from 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED to 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE

ruby_2_5 r61496 merged revision(s) 61478.

#5 [ruby-core:84590] Updated by ewaters (Evan Waters) 8 months ago

Do we know when the next version of ruby is likely to be released, and if it will include this patch? I'm trying to build ruby 2.5.0 for CentOS 6 and running into this same issue.

#6 [ruby-core:84791] Updated by shyouhei (Shyouhei Urabe) 7 months ago

ewaters (Evan Waters) wrote:

Do we know when the next version of ruby is likely to be released, and if it will include this patch? I'm trying to build ruby 2.5.0 for CentOS 6 and running into this same issue.

There are good news and bad news.

The good news is the fix has already merged into 2.5 so next release includes it.
However, there can be security releases at any unpredictable moment. So no, we can't tell you when the next version will come.

Also available in: Atom PDF