Project

General

Profile

Actions

Bug #8085

closed

Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32

Added by meta (mathew murphy) almost 12 years ago. Updated almost 12 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
2.0.0p0
Backport:
[ruby-core:53385]

Description

Trying to build Ruby 2.0.0 on Debian Stable:

ruby-2.0.0-p0/golf_prelude.c
/tmp/ruby-build.20130313161606.17854/ruby-2.0.0-p0 /tmp/ruby-build.20130313161606.17854 ~
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in /tmp/ruby-build.20130313161606.17854/ruby-2.0.0-p0': configure: error: C compiler cannot create executables See config.log' for more details

In the config.log:

gcc version 4.4.5 (Debian 4.4.5-8)
configure:3721: $? = 0
configure:3710: gcc -V >&5
gcc: '-V' option must have argument
configure:3721: $? = 1
configure:3710: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3721: $? = 1
configure:3741: checking whether the C compiler works
configure:3763: gcc -Wno-error=shorten-64-to-32 -I'/home/meta/.rbenv/versions/2.0.0-p0/include' -L'/home/meta/.rbenv/versions/2.0.0-p0/lib' conftest.c >&5
cc1: error: -Werror=shorten-64-to-32: No option -Wshorten-64-to-32
configure:3767: $? = 1
configure:3805: result: no
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define CANONICALIZATION_FOR_MATHN 1
| #define RUBY_BASE_NAME "ruby" !!
| #define RUBY_VERSION_NAME RUBY_BASE_NAME"-"RUBY_LIB_VERSION !!
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3810: error: in /tmp/ruby-build.20130313160124.17429/ruby-2.0.0-p0': configure:3812: error: C compiler cannot create executables See config.log' for more details

I can't immediately see why ./configure decided to add -Werror=shorten-64-to-32. I've successfully built 2.0 on Ubuntu with GCC 4.6, and that doesn't have the -shorten-64-to-32 warning either.

Updated by meta (mathew murphy) almost 12 years ago

Oops! Turns out this is a bug in ruby-build:

https://github.com/sstephenson/ruby-build/issues/325

Sorry.

Updated by kosaki (Motohiro KOSAKI) almost 12 years ago

  • Status changed from Open to Rejected

Oops! Turns out this is a bug in ruby-build:

Then, closed.

Updated by nobu (Nobuyoshi Nakada) almost 12 years ago

  • Status changed from Rejected to Third Party's Issue
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0