<div>As far as I know, is this happening because binutils(ld) and the compiler(gcc) are too different. <br /></div><div>You can try changing the version of one of them. <br /></div><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Friday, September 13, 2024 at 10:35:38 PM UTC+2 Colin Hylton-Farrington wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="margin-top:0px;margin-bottom:0px;margin-left:18px;color:rgb(0,0,0);font-family:-webkit-standard;font-size:12px"><p>1.<span style="background-color:rgb(246,248,250);color:rgb(31,35,40);font-size:13.6px;text-indent:0px">git clone -b support/v2024.3 <a href="https://github.com/cp2k/cp2k.git" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://github.com/cp2k/cp2k.git&source=gmail&ust=1726418233018000&usg=AOvVaw2r3q59ecCBjFeykuBphKjz">https://github.com/cp2k/cp2k.git</a> cp2k</span></p>

<p>2. module load intel_mkl/18.0.5</p>

<p>3. ./install_cp2k_toolchain.sh --with-openmpi=system
--with-mkl=system --with-elpa=no --with-sirius=no</p>

<p>4. cp /cp2k/tools/toolchain/install/arch/* cp2k/arch</p>

<p>5. source
/projects/f_rcr78_1/PACKAGES/CP2Kv9/cp2k/tools/toolchain/install/setup</p>

<p>6. make -j 8 ARCH=local VERSION=psmp</p><p><br></p><p>It complies for a while and then this error gets thrown up:</p><p><span>/usr/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.</span></p><p><span>/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)':</span></p><p><span>v_unitcell.cpp:(.text._ZNSt5dequeIiSaIiEE17_M_reallocate_mapEmb[_ZNSt5dequeIiSaIiEE17_M_reallocate_mapEmb]+0x177): undefined reference to `std::__throw_bad_array_new_length()'</span></p><p><span>/usr/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.</span></p><p><span>/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)':</span></p><p><span>v_unitcell.cpp:(.text._ZNSt5dequeIiSaIiEE17_M_reallocate_mapEmb[_ZNSt5dequeIiSaIiEE17_M_reallocate_mapEmb]+0x177): undefined reference to `std::__throw_bad_array_new_length()'</span></p><p><span>/usr/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.</span></p><p><span>/cp2k/tools/toolchain/install/libvori-220621/lib/libvori.a(bqb_format.cpp.o): In function `CBQBFile::OpenListFile(_IO_FILE*)':</span></p><p><span>bqb_format.cpp:(.text+0x4137): undefined reference to `std::__throw_bad_array_new_length()'</span></p><p><span>bqb_format.cpp:(.text+0x4159): undefined reference to `std::__throw_bad_array_new_length()'</span></p><p><span>/usr/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.</span></p><p><span>cp2k/tools/toolchain/install/libvori-220621/lib/libvori.a(bqb_format.cpp.o): In function `CBQBFile::OpenListFile(_IO_FILE*)':</span></p><p><span>bqb_format.cpp:(.text+0x4137): undefined reference to `std::__throw_bad_array_new_length()'</span></p><p><span>bqb_format.cpp:(.text+0x4159): undefined reference to `std::__throw_bad_array_new_length()'</span></p><p><span>collect2: error: ld returned 1 exit status</span></p><p><span>make[3]: *** [/cp2k/exe/local/cp2k.ssmp] Error 1</span></p><p><span>make[3]: *** Waiting for unfinished jobs....</span></p><p><span>collect2: error: ld returned 1 exit status</span></p><p><span>make[3]: *** [/cp2k/exe/local/libcp2k_unittest.ssmp] Error 1</span></p><p><span>make[2]: *** [all] Error 2</span></p><p><span>make[1]: *** [ssmp] Error 2</span></p><p>


























</p><p>make: *** [all] Error 2</p>

<p> </p><p><br></p><p>This is being compiled on a local cluster x86_64 GNU/Linux</p>





</div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/c141c6cb-6fc6-4e19-8e4e-e999468b2276n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/c141c6cb-6fc6-4e19-8e4e-e999468b2276n%40googlegroups.com</a>.<br />