Closed aoeftiger closed 5 years ago
same error reproduced with gcc 6.4.0
, so it's not gcc 9 specific:
$ cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc
-- The C compiler identification is GNU 6.4.0
-- The CXX compiler identification is GNU 6.4.0
-- Check for working C compiler: /cvmfs/it.gsi.de/compiler/gcc/6.4.0/bin/gcc
-- Check for working C compiler: /cvmfs/it.gsi.de/compiler/gcc/6.4.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /cvmfs/it.gsi.de/compiler/gcc/6.4.0/bin/g++
-- Check for working CXX compiler: /cvmfs/it.gsi.de/compiler/gcc/6.4.0/bin/g++ -- works
[...]
Thank you for testing this and for the feedback! I was able to reproduce the problem, it's not related to the g++/gcc toolchain at all but is caused by sloppy handling of the configuration flags in two CMakeLists.txt files (i.e. two opencl based examples were attempted to be built even if opencl is not available -> this causes the error messages).
Could you please try to
Thank you in advance & sorry for the hassle
Great, indeed it is fixed with #64 (in particular commit d2ef27 )
Many thanks @martinschwinzerl !
PS: for reference, the Settings.cmake
contained (as before):
# ---- Backends and computing architectures:
option( SIXTRACKL_ENABLE_AUTOVECTORIZATION "Enable Autovectorization" ON )
option( SIXTRACKL_ENABLE_MANUAL_SIMD "Enable manual SIMD backend" OFF )
option( SIXTRACKL_ENABLE_OPENMP "Enable OpenMP backend" ON )
option( SIXTRACKL_ENABLE_OPENCL "Enable OpenCL 1.x backend" OFF )
option( SIXTRACKL_ENABLE_CUDA "Enable CUDA backend" OFF )
option( SIXTRACKL_ENABLE_MPFR4 "Enable GMP/MPFR4 backend" OFF )
option( SIXTRACKL_ENABLE_CXX "Enable C++ bindings" ON )
option( SIXTRACKL_ENABLE_PYTHON "Enable Python bindings" ON )
# ------------------------------------------------------------------------------
# ---- Program logistic options:
option( SIXTRACKL_BUILD_EXAMPLES "Build sixtracklib examples" ON )
option( SIXTRACKL_ENABLE_PROGRAMM_TESTS "Enable programmatic unit-tests" OFF )
option( SIXTRACKL_ENABLE_BENCHMARK_TESTS "Enable benchmark tests" OFF )
Based, again, on the
gcc 9.1.0
andcmake 3.11.1
set-up, I find errors compiling on the kronos cluster at GSI -- perhaps these errors again might have to do with the c++17 standards? I'm compiling only for CPU:Settings.make
cmake
outputmake
output