Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84263 - libsigc++ doesn't compile when CXXFLAGS contains -fno-exceptions
Summary: libsigc++ doesn't compile when CXXFLAGS contains -fno-exceptions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-05 20:45 UTC by Joseph Cheek
Modified: 2005-05-07 18:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.