Bug 724015 - kdeedu (rocs) FTBFS against boost-1.47.0
Summary: kdeedu (rocs) FTBFS against boost-1.47.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdeedu
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 711845
TreeView+ depends on / blocked
 
Reported: 2011-07-21 17:43 UTC by Rex Dieter
Modified: 2011-07-23 22:20 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-23 22:20:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rex Dieter 2011-07-21 17:43:22 UTC
build.log snippet:

In file included from /usr/include/boost/numeric/conversion/converter.hpp:14:0,
                 from /usr/include/boost/numeric/conversion/cast.hpp:32,
                 from /usr/include/boost/lexical_cast.hpp:31,
                 from /usr/include/boost/math/constants/constants.hpp:15,
                 from /usr/include/boost/graph/topology.hpp:17,
                 from /builddir/build/BUILD/kdeedu-4.6.95/rocs-4.6.95/src/Plugins/AssignValues/assignvalueswidget.h:25,
                 from /builddir/build/BUILD/kdeedu-4.6.95/rocs-4.6.95/src/Plugins/AssignValues/assignvaluestoolsplugin.cpp:20:
/usr/include/boost/numeric/conversion/converter_policies.hpp: In member function 'void boost::numeric::def_overflow_handler::operator()(boost::numeric::range_check_result)':
/usr/include/boost/numeric/conversion/converter_policies.hpp:162:31: error: exception handling disabled, use -fexceptions to enable

Comment 1 Petr Machata 2011-07-22 09:59:57 UTC
The problem is in boost/numeric/conversion, which should throw exceptions with boost::throw_exception, not literal throw, to aid compilation with -fno-exceptions.  I'm spinning a build that should fix this.

Note that boost::throw_exception is then defined in the client.  In rocs, it's in src/Plugins/dotParser/dotgrammar.cpp:

namespace boost
{
  void throw_exception(std::exception const &) {}
}

But, from boost documentation, "callers of throw_exception are allowed to assume that the function never returns; therefore, if the user-defined throw_exception returns, the behavior is undefined".  Just FYI.

Comment 2 Kevin Kofler 2011-07-22 12:01:47 UTC
FWIW, I think it sucks that we're building KDE with -fno-exceptions when the rest of Fedora is using -fexceptions even for C code. We should probably patch the kdelibs CMakeLists.txt to kill that -fno-exceptions use.

Comment 3 Rex Dieter 2011-07-23 04:27:43 UTC
Build requeued,
https://koji.fedoraproject.org/koji/taskinfo?taskID=3224594

in the meantime, I would tend to agree with kevin's sentiments about exceptions.  anyone interested to poke kde upstream about that?

Comment 4 Rex Dieter 2011-07-23 22:20:38 UTC
new build looks like a winner, thanks!


Note You need to log in before you can comment on or make changes to this bug.