Bug 367647 - Unsupported compiler flags passed to Clang
Summary: Unsupported compiler flags passed to Clang
Status: RESOLVED FIXED
Alias: None
Product: Rocs
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.9.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Rocs Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-21 14:38 UTC by Jeff Bai
Modified: 2016-09-05 13:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

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