Build error on CentOS 8, version 1.19
The relevant versions are:
- gcc 8.3.1
- Boost 1.66
[ 66s] /usr/bin/c++ -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/home/abuild/rpmbuild/BUILD/BornAgain-1.19.0/Wrap -pipe -m64 -Wall -W -Woverloaded-virtual -Wno-unknown-pragmas -fPIC -DHAVE_QT=ON -I/home/abuild/rpmbuild/BUILD/BornAgain-1.19.0/build/inc -O3 -Wl,--no-undefined -shared -Wl,-soname,_libBornAgainBase.so -o ../lib/_libBornAgainBase.so CMakeFiles/BornAgainBase.dir/Axis/Bin.cpp.o CMakeFiles/BornAgainBase.dir/Axis/ConstKBinAxis.cpp.o CMakeFiles/BornAgainBase.dir/Axis/CustomBinAxis.cpp.o CMakeFiles/BornAgainBase.dir/Axis/FixedBinAxis.cpp.o CMakeFiles/BornAgainBase.dir/Axis/IAxis.cpp.o CMakeFiles/BornAgainBase.dir/Axis/PointwiseAxis.cpp.o CMakeFiles/BornAgainBase.dir/Axis/VariableBinAxis.cpp.o CMakeFiles/BornAgainBase.dir/Math/Bessel.cpp.o CMakeFiles/BornAgainBase.dir/Math/FourierTransform.cpp.o CMakeFiles/BornAgainBase.dir/Math/Functions.cpp.o CMakeFiles/BornAgainBase.dir/Math/IntegratorGK.cpp.o CMakeFiles/BornAgainBase.dir/Math/Numeric.cpp.o CMakeFiles/BornAgainBase.dir/Pixel/PolarizationHandler.cpp.o CMakeFiles/BornAgainBase.dir/Pixel/SimulationElement.cpp.o CMakeFiles/BornAgainBase.dir/Progress/DelayedProgressCounter.cpp.o CMakeFiles/BornAgainBase.dir/Progress/ProgressHandler.cpp.o CMakeFiles/BornAgainBase.dir/Py/PyUtils.cpp.o CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o CMakeFiles/BornAgainBase.dir/Utils/StringUtils.cpp.o CMakeFiles/BornAgainBase.dir/Utils/SysUtils.cpp.o CMakeFiles/BornAgainBase.dir/Vector/BasicVector3D.cpp.o CMakeFiles/BornAgainBase.dir/Vector/Direction.cpp.o CMakeFiles/BornAgainBase.dir/Vector/Transform3D.cpp.o CMakeFiles/BornAgainBase.dir/__/auto/Wrap/libBornAgainBase_wrap.cpp.o /usr/lib64/libpython3.6m.so /usr/lib64/libgsl.so /usr/lib64/libgslcblas.so /usr/lib64/libfftw3.so /usr/lib64/libboost_iostreams.so /usr/lib64/libboost_program_options.so /usr/lib64/libboost_regex.so
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `std::filesystem::__cxx11::path::path<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::filesystem::__cxx11::path>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::filesystem::__cxx11::path::format) [clone .constprop.630]':
[ 66s] /usr/include/c++/8/bits/fs_path.h:185: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::createDirectory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /home/abuild/rpmbuild/BUILD/BornAgain-1.19.0/Base/Utils/FileSystemUtils.cpp:45: undefined reference to `std::filesystem::create_directory(std::filesystem::__cxx11::path const&)'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::createDirectories(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /home/abuild/rpmbuild/BUILD/BornAgain-1.19.0/Base/Utils/FileSystemUtils.cpp:54: undefined reference to `std::filesystem::create_directories(std::filesystem::__cxx11::path const&)'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::IsFileExists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /usr/include/c++/8/bits/fs_ops.h:121: undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::stem(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /usr/include/c++/8/bits/fs_path.h:1050: undefined reference to `std::filesystem::__cxx11::path::_M_find_extension() const'
[ 66s] /usr/include/c++/8/bits/fs_path.h:178: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::extension(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /usr/include/c++/8/bits/fs_path.h:1059: undefined reference to `std::filesystem::__cxx11::path::_M_find_extension() const'
[ 66s] /usr/include/c++/8/bits/fs_path.h:178: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::jointPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /usr/include/c++/8/bits/fs_path.h:381: undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
[ 66s] /usr/include/c++/8/bits/fs_path.h:258: undefined reference to `std::filesystem::__cxx11::path::has_filename() const'
[ 66s] /usr/include/c++/8/bits/fs_path.h:261: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::filesInDirectory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /usr/include/c++/8/bits/fs_ops.h:121: undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::filesInDirectory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /usr/include/c++/8/bits/fs_dir.h:361: undefined reference to `std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path const&, std::filesystem::directory_options, std::error_code*)'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::filesInDirectory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /home/abuild/rpmbuild/BUILD/BornAgain-1.19.0/Base/Utils/FileSystemUtils.cpp:65: undefined reference to `std::filesystem::__cxx11::directory_iterator::operator*() const'
[ 66s] /home/abuild/rpmbuild/BUILD/BornAgain-1.19.0/Base/Utils/FileSystemUtils.cpp:65: undefined reference to `std::filesystem::__cxx11::directory_iterator::operator++()'
[ 66s] CMakeFiles/BornAgainBase.dir/Utils/FileSystemUtils.cpp.o: In function `FileSystemUtils::filesInDirectory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[ 66s] /usr/include/c++/8/bits/fs_dir.h:260: undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
[ 66s] collect2: error: ld returned 1 exit status
[ 66s] make[2]: *** [Base/CMakeFiles/BornAgainBase.dir/build.make:458: lib/_libBornAgainBase.so] Error 1
[ 66s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/BornAgain-1.19.0/build'
[ 66s] make[1]: *** [CMakeFiles/Makefile2:1799: Base/CMakeFiles/BornAgainBase.dir/all] Error 2
[ 66s] make[1]: *** Waiting for unfinished jobs....
Edited by Georg Brandl