Bug 367647

Summary: Unsupported compiler flags passed to Clang
Product: [Applications] Rocs Reporter: Jeff Bai <jeffbaichina>
Component: generalAssignee: Rocs Developers <rocs-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.9.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jeff Bai 2016-08-21 14:38:36 UTC
When building rocs from KDE Applications 16.08.0 with Clang 3.8, I encountered an error as follows:

clang-3.8: error: unknown argument: '-fext-numeric-literals'
clang-3.8: errorclang-3.8: error: unknown argument: '-fext-numeric-literals'
make[2]: *** [libgraphtheory/CMakeFiles/rocsgraphtheory.dir/build.make:84: libgraphtheory/CMakeFiles/rocsgraphtheory.dir/edge.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

I suppose an unspported compiler flag is passed per configured by the CMakeLists?

Reproducible: Always
Comment 1 Andreas Cord-Landwehr 2016-09-05 13:42:01 UTC
Git commit 624a6bc2118a9224089f3a7ee65e2993efc1dc1c by Andreas Cord-Landwehr.
Committed on 05/09/2016 at 13:41.
Pushed by cordlandwehr into branch 'Applications/16.08'.

Use BOOST_MATH_DISABLE_FLOAT128 to avoid operator problem.

The use of -fext-numeric-literals apparently is not supported
by Clang. Use correct Boost define to avoid use of custom
literals.

M  +0    -1    CMakeLists.txt
M  +2    -0    libgraphtheory/modifiers/topology.h

http://commits.kde.org/rocs/624a6bc2118a9224089f3a7ee65e2993efc1dc1c