<div dir="ltr"><div dir="ltr">Maxim, thanks. Yours is the third report of compile or link problems related to Command Line Tools 15.0, released only two days ago, that I have seen. I do not know what to make of that error message. I have not heard of "xcodebuild -version" failing when Xcode was actually installed. Other than maybe downgrading Xcode and CLT to 14.x, I do not have any other ideas right now. Anyone else?</div><div dir="ltr"><br></div><div>(Resending to include the mailing list)</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 20, 2023 at 11:12 AM Maxim Abalenkov <<a href="mailto:maxim.abalenkov@gmail.com">maxim.abalenkov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="line-break:after-white-space">Dear Dave et al.,<div><br></div><div>I’m unable to run the ‘xcodebuild —version’. It complains:</div><div><br></div><div>xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance</div><div><br></div><div>The version of Xcode reported by the ‘About Xcode’ graphical menu item is:</div><div><br></div><div>Version 15.0 (15A240d)</div><div>—</div><div>Best wishes,</div><div>Maxim</div><div><div><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;line-break:after-white-space"><div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>On 20 Sep 2023, at 17:41, Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr">Maxim, thank you for the detailed follow-up. What is the full output from "xcodebuild -version"?<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 20, 2023 at 10:36 AM Maxim Abalenkov <<a href="mailto:maxim.abalenkov@gmail.com" target="_blank">maxim.abalenkov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="line-break:after-white-space">Dear all,<div><br></div><div>I can compile and link the code with Clang C++ compiler from the MacPorts collection:</div><div><div><br></div><div>clang version 15.0.7</div><div>Target: x86_64-apple-darwin22.6.0</div><div>Thread model: posix</div><div>InstalledDir: /opt/local/libexec/llvm-15/bin</div><div><br></div><div>To complement my previous email: my target system is macOS 13.5.2 (22G91) and the new command line tools version is:</div><div><br></div><div><div>package-id: com.apple.pkg.CLTools_Executables</div><div>version: 15.0.0.0.1.1694021235</div><div>volume: /</div><div>location: /</div><div>install-time: 1695112544</div></div><div><br></div><div>—</div><div>Best wishes,</div><div>Maxim</div><div><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;line-break:after-white-space"><div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>On 20 Sep 2023, at 17:11, Maxim Abalenkov <<a href="mailto:maxim.abalenkov@gmail.com" target="_blank">maxim.abalenkov@gmail.com</a>> wrote:</div><br><div><div style="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>—</div><div>Best wishes,</div><div>Maxim</div><div><br><div>
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;line-break:after-white-space"><div>Maxim Abalenkov \\ <a href="mailto:maxim.abalenkov@gmail.com" target="_blank">maxim.abalenkov@gmail.com</a><br>+44 7 486 486 505 \\ <a href="http://www.maxim.abalenkov.uk/" target="_blank">www.maxim.abalenkov.uk</a></div></div></div></div></div></div></div></blockquote></div></div></div></blockquote></div></div></div></blockquote></div></div></div></blockquote></div></div>