Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 84263

Summary: libsigc++ doesn't compile when CXXFLAGS contains -fno-exceptions
Product: Gentoo Linux Reporter: Joseph Cheek <joseph>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joseph Cheek 2005-03-05 20:45:22 UTC
test_exception_catch.cc: In member function `int f::operator()(int)':
test_exception_catch.cc:15: error: exception handling disabled, use -fexceptions to enable
test_exception_catch.cc: In member function `int my_catch::operator()()':
test_exception_catch.cc:42: error: `e' undeclared (first use this function)
test_exception_catch.cc:42: error: (Each undeclared identifier is reported onlyonce for each function it appears in.)
make[2]: *** [test_exception_catch.o] Error 1
make[2]: Leaving directory `/usr/src/RedmondLinux/BUILD/libsigc++-2.0.5/tests'


Reproducible: Always
Steps to Reproduce:
1.add -fno-exceptions to CXXFLAGS
2.emerge libsigc++
3.verify above failure

Actual Results:  
see above

Expected Results:  
src_compile should filter-flags -fno-exceptions
Comment 1 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-05-07 18:49:03 UTC
This flag disables a core feature of C++, and I think many C++ applications would fail without exception handling. I have added a filter-flags line for it, but I don't think this flag should be set globally for CXXFLAGS.