complication issue with cp2kv2024.3

91 views
Skip to first unread message

Colin Hylton-Farrington

unread,
Sep 13, 2024, 4:35:38 PM9/13/24
to cp2k

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

Johann Pototschnig

unread,
Sep 14, 2024, 12:52:32 PM9/14/24
to cp2k
As far as I know, is this happening because binutils(ld) and the compiler(gcc) are too different.
You can try changing the version of one of them.

Colin Hylton-Farrington

unread,
Sep 16, 2024, 1:42:39 PM9/16/24
to cp2k
That fixed it. I had binutils 2.27 and gcc 14.1. Changing to GCC 11.2 made it work
Reply all
Reply to author
Forward
0 new messages