Issue #8268 has been updated by nobu (Nobuyoshi Nakada).


At least, gcc 4.7 on Debian 7 and MacPorts work fine with -ggdb3, so it's not gcc 4.7 specific.
----------------------------------------
Bug #8268: ruby 2.0.0 incorrectly detects debugflags on SmartOS / gcc 4.7
https://bugs.ruby-lang.org/issues/8268#change-38591

Author: mattconnolly (Matt Connolly)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 
ruby -v: 2.0.0-p0


When compiling ruby from source on Smart OS, which uses gcc-4.7, the configure script fails to correctly detect a compatible debug flag. It chooses "-ggdb3" which doesn't work, and this causes all of the conftest.c compilations to fail at build without executing.

Running configure like "./configure ac_cv_func_dl_iterate_phdr=no" fails to complete the configure script. 

Running configure like this: `./configure ac_cv_func_dl_iterate_phdr=no debugflags="-ggdb"` works. Configure completes and ruby compiles and runs fine.

I'm not sure if this is a SmartOS specific problem, or gcc 4.7, so I'm writing it here to see if others have seen the same thing.


-- 
http://bugs.ruby-lang.org/