|
|
(reaxTools) [f@node0 reax_tools-main]$ ls
bin CMakeLists.txt doc install_reax_tools.sh README.md src test tools VERSION
(reaxTools) [f@node0 reax_tools-main]$ gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-28)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(reaxTools) [f@node0 reax_tools-main]$ cmake --version
cmake version 3.26.5
CMake suite maintained and supported by Kitware (kitware.com/cmake).
(reaxTools) [f@node0 reax_tools-main]$ ./install_reax_tools.sh
Installing ReaxTools 2.1
Project directory: /home/fjk/software/reax_tools-main
[1/3] Building C++ analysis core
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /home/fjk/software/reax_tools-main/build
[ 8%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/cell_list.cpp.o
[ 16%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/argparser.cpp.o
[ 25%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/main.cpp.o
[ 33%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/reax_flow.cpp.o
[ 41%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/reax_counter.cpp.o
[ 50%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/reax_track.cpp.o
[ 58%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/universe.cpp.o
[ 66%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/string_tools.cpp.o
[ 75%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/system.cpp.o
[ 83%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/fmt/format.cc.o
[ 91%] Building CXX object CMakeFiles/reax_tools_core.dir/src/cpp/fmt/os.cc.o
[100%] Linking CXX executable /home/fjk/software/reax_tools-main/bin/reax_tools_core
CMakeFiles/reax_tools_core.dir/src/cpp/main.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.134]':
main.cpp:(.text+0x252): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
CMakeFiles/reax_tools_core.dir/src/cpp/main.cpp.o: In function `main':
main.cpp:(.text.startup+0x202): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
main.cpp:(.text.startup+0x1141): undefined reference to `std::filesystem::create_directory(std::filesystem::__cxx11::path const&)'
CMakeFiles/reax_tools_core.dir/src/cpp/reax_track.cpp.o: In function `ReactionTracker::save_reaction_snapshots(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
reax_track.cpp:(.text+0xaa2b): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
reax_track.cpp:(.text+0xaa86): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
reax_track.cpp:(.text+0xaaa8): undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
reax_track.cpp:(.text+0xaafa): undefined reference to `std::filesystem::create_directories(std::filesystem::__cxx11::path const&)'
reax_track.cpp:(.text+0xaf89): undefined reference to `std::filesystem::__cxx11::path::has_filename() const'
reax_track.cpp:(.text+0xafc9): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
CMakeFiles/reax_tools_core.dir/src/cpp/string_tools.cpp.o: In function `create_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
string_tools.cpp:(.text+0x8c8): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
string_tools.cpp:(.text+0x90e): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
string_tools.cpp:(.text+0xab5): undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
string_tools.cpp:(.text+0xaca): undefined reference to `std::filesystem::__cxx11::path::has_filename() const'
string_tools.cpp:(.text+0xb5e): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
CMakeFiles/reax_tools_core.dir/src/cpp/universe.cpp.o: In function `void parallel_for_each<System, void (System::*)()>(std::vector<System*, std::allocator<System*> >&, void (System::*)())':
universe.cpp:(.text._Z17parallel_for_eachI6SystemMS0_FvvEEvRSt6vectorIPT_SaIS5_EET0_[_Z17parallel_for_eachI6SystemMS0_FvvEEvRSt6vectorIPT_SaIS5_EET0_]+0xf2): undefined reference to `pthread_create'
universe.cpp:(.text._Z17parallel_for_eachI6SystemMS0_FvvEEvRSt6vectorIPT_SaIS5_EET0_[_Z17parallel_for_eachI6SystemMS0_FvvEEvRSt6vectorIPT_SaIS5_EET0_]+0x12b): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/reax_tools_core.dir/build.make:257: /home/fjk/software/reax_tools-main/bin/reax_tools_core] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/reax_tools_core.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
不修改的时候,会报这个错误 |
|