Details
-
Bug
-
Status: Closed (View Workflow)
-
Medium
-
Resolution: Fixed
-
6.14/02
-
None
-
OS: Archlinux x86_64
compiler: GCC 8.2.0 / CLANG 6.0.1
compiler variables:
```
CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -pthread --save-temps'
CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -pthread --save-temps'
LDFLAGS="Wl,-O1,sort-common,as-needed,-z,relro,-z,now -pthread -Wl,-no-undefined"
```
additional configuration parameters: settings.cmakeOS: Archlinux x86_64 compiler: GCC 8.2.0 / CLANG 6.0.1 compiler variables: ``` CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -pthread --save-temps' CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -pthread --save-temps' LDFLAGS=" Wl,-O1, sort-common, as-needed,-z,relro,-z,now -pthread -Wl, -no-undefined" ``` additional configuration parameters: settings.cmake
Description
Running
CFLAGS='march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -pthread --save-temps'
|
CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -pthread --save-temps'
|
LDFLAGS="-Wl,-O1,sort-common,as-needed,-z,relro,-z,now -pthread -Wl,-no-undefined" cmake -C ../settings.cmake ../root-6.14.02
|
|
fails with
interpreter/llvm/src/CMakeLists.txt:598 (include) CMake Error at interpreter/llvm/src/cmake/modules/HandleLLVMOptions.cmake:402 (message): LLVM requires C+11 support but the '-std=c+11' flag isn't supported. Call Stack (most recent call first): interpreter/llvm/src/CMakeLists.txt:598 (include) - Configuring incomplete, errors occurred!
|
|
Adding `-std=c++17` to `CXXFLAGS` doesn't help. When I do
$ ccmake -DOpenGL_GL_PREFERENCE="GLVND" -C ../settings.cmake ../root-6.14.02
|
|
and add option `--save-temps` to `CMAKE_CXX_FLAGS` the compilation stops on 92% with message:
Scanning dependencies of target G__TMVAGui [ 92%] Generating G__TMVAGui.cxx, ../../lib/libTMVAGui_rdict.pcm, ../../lib/libTMVAGui.rootmap [ 92%] Built target G__TMVAGui Scanning dependencies of target G__PyMVA [ 92%] Generating G__PyMVA.cxx, ../../lib/libPyMVA_rdict.pcm, ../../lib/libPyMVA.rootmap [ 92%] Built target G__PyMVA Scanning dependencies of target onepcm [ 92%] Generating etc/dictpch/allLinkDefs.h, etc/dictpch/allHeaders.h, etc/dictpch/allCppflags.txt Generating PCH for bindings/pyroot core/base core/clingutils core/imt core/multiproc core/rint core/thread graf2d/asimage graf2d/fitsio graf2d/gpad graf2d/gpadv7 graf2d/graf graf2d/postscript graf2d/primitives graf2d/x11 graf2d/x11ttf graf3d/g3d graf3d/gl gui/fitpanel gui/fitpanelv7 gui/gui hist/hbook hist/hist hist/histdraw hist/histpainter hist/spectrum hist/spectrumpainter hist/unfold io/io math/genetic math/genvector math/mathcore math/mathmore math/matrix math/minuit math/minuit2 math/physics math/smatrix math/vecops net/net net/netx net/netxng roofit/histfactory roofit/roofit roofit/roofitcore roofit/roostats tmva/pymva tmva/tmva tmva/tmvagui tree/dataframe tree/tree tree/treeplayer tree/treeviewer [ 92%] Generating etc/allDict.cxx.pch Argument "--save-temps" is not a supported cling argument. This could be mistyped rootcling argument. Please check the commandline. make[2]: *** [CMakeFiles/onepcm.dir/build.make:65: etc/allDict.cxx.pch] Error 1 make[1]: *** [CMakeFiles/Makefile2:499: CMakeFiles/onepcm.dir/all] Error 2 make: *** [Makefile:152: all] Error 2
|
|
P.S. With GCC it takes much longer to get to point with a failure, CLANG is a bit faster.
P.P.S. All formatting claims to your Bug Reporting System.
—
WBR, Vladimir Lomov