<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Dear all,<div><br></div><div>How are you? I hope all is well with you. I need help please. I’m no longer able to compile and link a C++ code on my Mac. I use the latest GNU C++ compiler available via MacPorts:</div><div><br></div><div>g++ (MacPorts gcc12 12.3.0_0+stdlib_flag) 12.3.0</div><div><br></div><div>Please find below the output of the make tool:</div><div><br></div><div><div>g++ ifm.o Core/engine.o Core/filter.o Core/watershed.o FileIO/interpolation.o FileIO/mapfile.o FileIO/netcdf_io.o FileIO/rain_table.o -o ifm -fopenmp -O3 -lm -lz -lnetcdf_c++ -lnetcdf -L/opt/local/lib</div><div>-macosx_version_min has been renamed to -macos_version_min</div><div>0 0x109822f43 __assert_rtn + 64</div><div>1 0x109724f43 ld::AtomPlacement::findAtom(unsigned char, unsigned long long, ld::AtomPlacement::AtomLoc const*&, long long&) const + 1411</div><div>2 0x109741431 ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 19745</div><div>3 0x109751b71 ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&) const + 657</div><div>4 0x7ff810954066 _dispatch_client_callout2 + 8</div><div>5 0x7ff810965e09 _dispatch_apply_invoke + 213</div><div>6 0x7ff810954033 _dispatch_client_callout + 8</div><div>7 0x7ff8109640f6 _dispatch_root_queue_drain + 683</div><div>8 0x7ff810964768 _dispatch_worker_thread2 + 170</div><div>9 0x7ff810af1c0f _pthread_wqthread + 257</div><div>ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336.</div><div>collect2: error: ld returned 1 exit status</div><div>make: *** [Makefile:58: ifm] Error 1</div></div><div><br></div><div>All this may be related to the update of Xcode command line tools that I performed yesterday. Any help on how to debug and make it compile would be most welcome. Thank you and have a great day ahead!</div><div><br></div><div>—</div><div>Best wishes,</div><div>Maxim</div><div><br><div>
<meta charset="UTF-8"><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Maxim Abalenkov \\ maxim.abalenkov@gmail.com<br>+44 7 486 486 505 \\ www.maxim.abalenkov.uk</div></div></div></div></div></body></html>