From: "nobu (Nobuyoshi Nakada)" Date: 2013-03-15T09:07:43+09:00 Subject: [ruby-core:53430] [ruby-trunk - Bug #8085][Third Party's Issue] Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32 Issue #8085 has been updated by nobu (Nobuyoshi Nakada). Status changed from Rejected to Third Party's Issue ---------------------------------------- Bug #8085: Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32 https://bugs.ruby-lang.org/issues/8085#change-37616 Author: meta (mathew murphy) Status: Third Party's Issue Priority: Normal Assignee: Category: Target version: ruby -v: 2.0.0p0 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. -- http://bugs.ruby-lang.org/