1.git clone -b support/v2024.3 https://github.com/cp2k/cp2k.git cp2k
2. module load intel_mkl/18.0.5
3. ./install_cp2k_toolchain.sh --with-openmpi=system --with-mkl=system --with-elpa=no --with-sirius=no
4. cp /cp2k/tools/toolchain/install/arch/* cp2k/arch
5. source /projects/f_rcr78_1/PACKAGES/CP2Kv9/cp2k/tools/toolchain/install/setup
6. make -j 8 ARCH=local VERSION=psmp
It complies for a while and then this error gets thrown up:
/usr/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.
/cp2k/tools/toolchain/install/libvori-220621/lib/libvori.a(v_unitcell.cpp.o): In function `std::deque<int, std::allocator<int> >::_M_reallocate_map(unsigned long, bool)':
v_unitcell.cpp:(.text._ZNSt5dequeIiSaIiEE17_M_reallocate_mapEmb[_ZNSt5dequeIiSaIiEE17_M_reallocate_mapEmb]+0x177): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.
/cp2k/tools/toolchain/install/libvori-220621/lib/libvori.a(v_unitcell.cpp.o): In function `std::deque<int, std::allocator<int> >::_M_reallocate_map(unsigned long, bool)':
v_unitcell.cpp:(.text._ZNSt5dequeIiSaIiEE17_M_reallocate_mapEmb[_ZNSt5dequeIiSaIiEE17_M_reallocate_mapEmb]+0x177): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.
/cp2k/tools/toolchain/install/libvori-220621/lib/libvori.a(bqb_format.cpp.o): In function `CBQBFile::OpenListFile(_IO_FILE*)':
bqb_format.cpp:(.text+0x4137): undefined reference to `std::__throw_bad_array_new_length()'
bqb_format.cpp:(.text+0x4159): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.
cp2k/tools/toolchain/install/libvori-220621/lib/libvori.a(bqb_format.cpp.o): In function `CBQBFile::OpenListFile(_IO_FILE*)':
bqb_format.cpp:(.text+0x4137): undefined reference to `std::__throw_bad_array_new_length()'
bqb_format.cpp:(.text+0x4159): undefined reference to `std::__throw_bad_array_new_length()'
collect2: error: ld returned 1 exit status
make[3]: *** [/cp2k/exe/local/cp2k.ssmp] Error 1
make[3]: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make[3]: *** [/cp2k/exe/local/libcp2k_unittest.ssmp] Error 1
make[2]: *** [all] Error 2
make[1]: *** [ssmp] Error 2
make: *** [all] Error 2
This is being compiled on a local cluster x86_64 GNU/Linux