<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Chris, <div class=""><br class=""></div><div class="">thanks for the reply. I got a feeling that the problem you describe is behind this error but I didn’t know how to fix it. </div><div class="">I’ve added the export you suggest in my profile and it worked. </div><div class=""><br class=""></div><div class="">Thanks again for the help, much appreciated! </div><div class=""><br class=""></div><div class="">Andreas </div><div class=""><br class=""></div><div class=""><br class=""><div class="">
Dr. Seismologist
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Dec 15, 2020, at 2:12 PM, Christopher Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">This is another consequence of a change Apple has introduced with macOS11 which is the SDK version now changes on every incremental OS update. So updating from 11.0 to 11.1 (and I presume Xcode 12.3) you now have SDK 11.1, not 11.0, and thus the current build of gcc, which has the sys root to the 11.0 baked into it, now fails.</div><div class=""><br class=""></div><div class="">A quick workaround is to set in your shell SDKROOT to point to the new path to the 11.1 SDK. I use</div><div class=""><br class=""></div><div class="">export SDKROOT=`xcrun --show-sdk-path`</div><div class=""><br class=""></div><div class="">in my ~/.profile which does this for each shell.</div><div class=""><br class=""></div><div class="">This is almost certainly not the only issue this change in SDK versioning is going to cause, and its likely going to take a while to figure out what to do in MacPorts. One option, for ports which have this problem is to configure them to use the versionless SDK path at configuration time, at least on macOS 11 and newer… This has other issues, but for now it seems the lesser evil to me…</div><div class=""><br class=""></div><div class="">Chris</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 15 Dec 2020, at 9:23 pm, Andreas Skarlatoudis via macports-users <<a href="mailto:macports-users@lists.macports.org" class="">macports-users@lists.macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span style="caret-color: rgb(0, 0, 0);" class="">Hello all, </span><div class="" style="caret-color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0);">I’m working on a MBP, 2018 model and yesterday I updated to the latest version of BigSur. Since then I cannot compile any fortran code and the error I get is </div><div class="" style="caret-color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0);"><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);"><span class="" style="font-variant-ligatures: no-common-ligatures;">ld: library not found for -lSystem</span></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);"><span class="" style="font-variant-ligatures: no-common-ligatures;">collect2: error: ld returned 1 exit status</span></div></div><div class="" style="caret-color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0);">I have tried both gcc9 and gcc10</div><div class="" style="caret-color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0);">gfortran -v gives this output :</div><div class="" style="caret-color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0);"><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);"><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Using built-in specs.</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">COLLECT_GCC=gfortran</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin20/10.2.0/lto-wrapper</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Target: x86_64-apple-darwin20</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc10/gcc10/work/gcc-10.2.0/configure --prefix=/opt/local --build=x86_64-apple-darwin20 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc10 --includedir=/opt/local/include/gcc10 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-10 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-10 --with-gxx-include-dir=/opt/local/include/gcc10/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-build-config=bootstrap-debug --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=<a href="https://trac.macports.org/newticket" class="">https://trac.macports.org/newticket</a> --enable-host-shared --disable-tls --with-pkgversion='MacPorts gcc10 10.2.0_4' --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Thread model: posix</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Supported LTO compression algorithms: zlib</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">gcc version 10.2.0 (MacPorts gcc10 10.2.0_4) </span></div></div></div><div class="" style="caret-color: rgb(0, 0, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="caret-color: rgb(0, 0, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures;">I’ve removed and reinstalled MacPorts and all packages but it didn’t help.</span></div><div class="" style="caret-color: rgb(0, 0, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="caret-color: rgb(0, 0, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures;">Any ideas what may be the problem here? </span></div><div class="" style="caret-color: rgb(0, 0, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="caret-color: rgb(0, 0, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures;">Thanks in advance for your help</span></div><div class="" style="caret-color: rgb(0, 0, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="caret-color: rgb(0, 0, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures;">Andreas </span></div><div class="" style="caret-color: rgb(0, 0, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="">
Dr. Seismologist
</div>
<br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>