Basic Installation problem

Hi I am building AllPix on Scientific Linux. My GCC compiler version is 4.8.5 20150623 (Red Hat 4.8.5-36). Please let me know how to resolve this.

[g4_linux@localhost build]$ cmake -DCMAKE_INSTALL_PREFIX=…/Install -DCMAKE_PREFIX_PATH=/home/g4_linux/Softwares/LCIO/Install -DBUILD_ALL_MODULES=ON …/source
– Git project directory is dirty:
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)…
– Building Allpix^2 version v1.3+137^g27fdffc.
– Building “RelWithDebInfo”
– Found Doxygen: /usr/bin/doxygen (found version “1.8.5”) found components: doxygen missing components: dot
– Found LATEX: /usr/bin/latex
– Found LaTeX compiler.
– Found UnixCommands: /usr/bin/bash
– I could not find the biber command.
CMake Warning at doc/CMakeLists.txt:97 (MESSAGE):
No pandoc command, cannot add Markdown documentation to user manual

– Manual: adding 0 module descriptions
– Manual: adding 0 example descriptions
CMake Warning at doc/CMakeLists.txt:173 (MESSAGE):
No biber command, cannot compile user manual.

– The CXX compiler identification is GNU 4.8.5
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Performing Test CXX_FLAG_WORKS__pedantic
– Performing Test CXX_FLAG_WORKS__pedantic - Success
– Performing Test CXX_FLAG_WORKS__Wall
– Performing Test CXX_FLAG_WORKS__Wall - Success
– Performing Test CXX_FLAG_WORKS__Wextra
– Performing Test CXX_FLAG_WORKS__Wextra - Success
– Performing Test CXX_FLAG_WORKS__Wcast_align
– Performing Test CXX_FLAG_WORKS__Wcast_align - Success
– Performing Test CXX_FLAG_WORKS__Wcast_qual
– Performing Test CXX_FLAG_WORKS__Wcast_qual - Success
– Performing Test CXX_FLAG_WORKS__Wconversion
– Performing Test CXX_FLAG_WORKS__Wconversion - Success
– Performing Test CXX_FLAG_WORKS__Wuseless_cast
– Performing Test CXX_FLAG_WORKS__Wuseless_cast - Success
– Performing Test CXX_FLAG_WORKS__Wctor_dtor_privacy
– Performing Test CXX_FLAG_WORKS__Wctor_dtor_privacy - Success
– Performing Test CXX_FLAG_WORKS__Wzero_as_null_pointer_constant
– Performing Test CXX_FLAG_WORKS__Wzero_as_null_pointer_constant - Success
– Performing Test CXX_FLAG_WORKS__Wdisabled_optimization
– Performing Test CXX_FLAG_WORKS__Wdisabled_optimization - Success
– Performing Test CXX_FLAG_WORKS__WformatE2
– Performing Test CXX_FLAG_WORKS__WformatE2 - Success
– Performing Test CXX_FLAG_WORKS__Winit_self
– Performing Test CXX_FLAG_WORKS__Winit_self - Success
– Performing Test CXX_FLAG_WORKS__Wlogical_op
– Performing Test CXX_FLAG_WORKS__Wlogical_op - Success
– Performing Test CXX_FLAG_WORKS__Wmissing_declarations
– Performing Test CXX_FLAG_WORKS__Wmissing_declarations - Success
– Performing Test CXX_FLAG_WORKS__Wmissing_include_dirs
– Performing Test CXX_FLAG_WORKS__Wmissing_include_dirs - Success
– Performing Test CXX_FLAG_WORKS__Wnoexcept
– Performing Test CXX_FLAG_WORKS__Wnoexcept - Success
– Performing Test CXX_FLAG_WORKS__Wold_style_cast
– Performing Test CXX_FLAG_WORKS__Wold_style_cast - Success
– Performing Test CXX_FLAG_WORKS__Wredundant_decls
– Performing Test CXX_FLAG_WORKS__Wredundant_decls - Success
– Performing Test CXX_FLAG_WORKS__Wsign_conversion
– Performing Test CXX_FLAG_WORKS__Wsign_conversion - Success
– Performing Test CXX_FLAG_WORKS__Wsign_promo
– Performing Test CXX_FLAG_WORKS__Wsign_promo - Success
– Performing Test CXX_FLAG_WORKS__Wstrict_null_sentinel
– Performing Test CXX_FLAG_WORKS__Wstrict_null_sentinel - Success
– Performing Test CXX_FLAG_WORKS__Wstrict_overflowE5
– Performing Test CXX_FLAG_WORKS__Wstrict_overflowE5 - Success
– Performing Test CXX_FLAG_WORKS__Wswitch_default
– Performing Test CXX_FLAG_WORKS__Wswitch_default - Success
– Performing Test CXX_FLAG_WORKS__Wundef
– Performing Test CXX_FLAG_WORKS__Wundef - Success
– Performing Test CXX_FLAG_WORKS__Werror
– Performing Test CXX_FLAG_WORKS__Werror - Success
– Performing Test CXX_FLAG_WORKS__Wshadow
– Performing Test CXX_FLAG_WORKS__Wshadow - Success
– Performing Test CXX_FLAG_WORKS__Wformat_security
– Performing Test CXX_FLAG_WORKS__Wformat_security - Success
– Performing Test CXX_FLAG_WORKS__Wdeprecated
– Performing Test CXX_FLAG_WORKS__Wdeprecated - Success
– Performing Test CXX_FLAG_WORKS__fdiagnostics_colorEauto
– Performing Test CXX_FLAG_WORKS__fdiagnostics_colorEauto - Success
– Performing Test CXX_FLAG_WORKS__Wheader_hygiene
– Performing Test CXX_FLAG_WORKS__Wheader_hygiene - Failed
– NOT adding -Wheader-hygiene to CXX_FLAGS - unsupported flag
– Performing Test CXX_FLAG_WORKS__Wno_overloaded_virtual
– Performing Test CXX_FLAG_WORKS__Wno_overloaded_virtual - Success
– Performing Test SUPPORT_STD_CXX17
– Performing Test SUPPORT_STD_CXX17 - Failed
– Looking for C++ include pthread.h
– Looking for C++ include pthread.h - found
– Looking for pthread_kill
– Looking for pthread_kill - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Could only find version 3 of clang-format, but version >= 4 is required.
– Could NOT check for clang-tidy, wrong compiler: GNU
– Building module: CapacitiveTransfer
– Building module: CorryvreckanWriter
– Building module: DefaultDigitizer
– Building module: DepositionGeant4
– Building module: DepositionPointCharge
– Building module: DetectorHistogrammer
– Building module: Dummy
– Building module: ElectricFieldReader
– Building module: GenericPropagation
– Building module: GeometryBuilderGeant4
– Geometry export in GDML format is enabled.
– Building module: LCIOWriter
– Check for LCIO (2.12.1)
– Check for LCIO_LIBRARIES: lcio;sio
– Check for LCIO_LCIO_LIBRARY: /home/g4_linux/Softwares/LCIO/Install/lib/liblcio.so – ok
– Check for LCIO_SIO_LIBRARY: /home/g4_linux/Softwares/LCIO/Install/lib/libsio.so – ok
– Found LCIO: /home/g4_linux/Softwares/LCIO/Install
– Building module: MagneticFieldReader
– Building module: ProjectionPropagation
– Building module: RCEWriter
– Building module: ROOTObjectReader
– Building module: ROOTObjectWriter
– Building module: SimpleTransfer
– Building module: TextWriter
– Building module: VisualizationGeant4
– Unit tests: 11 examples
– Unit tests: 38 module functionality tests
– Unit tests: 4 performance tests
– Unit tests: 22 framework core functionality tests
– Configuring done
– Generating done
– Build files have been written to: /home/g4_linux/Softwares/AllPix/build
[g4_linux@localhost build]$ make
[ 1%] Generating AllpixObjectsDictionary.cxx, libAllpixObjects_rdict.pcm, libAllpixObjects.rootmap
[ 2%] Generating AllpixObjectsDictionary.cxx.o
c++: error: unrecognized command line option ‘-std=c++14’
make[2]: *** [src/objects/AllpixObjectsDictionary.cxx.o] Error 1
make[1]: *** [src/objects/CMakeFiles/AllpixObjects.dir/all] Error 2
make: *** [all] Error 2

We make use of some features contained in the C++14 standard. This means, you need at least GCC version 5 or Clang 3.4 to compile.

Running Scientific Linux 6, new compiler versions can be obtained through different channels:

We should probabaly improve the documentation and explicitly state the required minimum compiler versions. I have opened a ticket for that:

I upgraded to Development Toolset 7. And this solved the problem for me.

Thanks!