Project

General

Profile

Actions

Bug #14234

closed

Failed to build on CentOS 6.9

Added by miyohide (Hidenori Miyoshi) almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
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: *** 未完了のジョブを待っています....

Files

ruby2.5_build_error.txt (36.6 KB) ruby2.5_build_error.txt miyohide (Hidenori Miyoshi), 12/25/2017 11:36 PM

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #14242: Fails to build ruby 2.5.0 on CentOS 6RejectedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0