[CP2K-user] [CP2K:20719] Re: complication issue with cp2kv2024.3
'Colin Hylton-Farrington' via cp2k
cp2k at googlegroups.com
Mon Sep 16 17:42:39 UTC 2024
That fixed it. I had binutils 2.27 and gcc 14.1. Changing to GCC 11.2 made
it work
On Saturday, September 14, 2024 at 12:52:32 PM UTC-4 Johann Pototschnig
wrote:
> 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.
>
> On Friday, September 13, 2024 at 10:35:38 PM UTC+2 Colin Hylton-Farrington
> wrote:
>
>> 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
>>
>
--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/e26e5dc2-b1ec-4a44-a7ac-47d3ae508857n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20240916/2d7c7c23/attachment.htm>
More information about the CP2K-user
mailing list