gcc/gfortran can't find system library in latest Xcode/Mojave
Christopher Jones
jonesc at hep.phy.cam.ac.uk
Thu Oct 10 22:35:13 UTC 2019
Hi,
Apple has been depreciating shipping the SDK under /usr/include for some time now, and come Xcode11/macOS10.15 they are gone (with Xcode10 they where gone by default but you could add them back).
You need to specify the SDK root you need to use. See
https://www.mail-archive.com/macports-dev@lists.macports.org/msg06711.html <https://www.mail-archive.com/macports-dev@lists.macports.org/msg06711.html>
for a previous discussion.
Chris
> On 10 Oct 2019, at 11:20 pm, David Nicholls <david.nicholls at anu.edu.au> wrote:
>
> Something Apple did in either the latest update to Mojave or the latest Xcode breaks gfortran's (8.3.0) ability to find the system library. I updated to the latest macports recently, too. gfortran 8.3.0 that compiled code easily under previous versions of Mojave/Xcode/macports now throws an error:
>
> M5118 error on build:
> ld: library not found for -lSystem
> collect2: error: ld returned 1 exit status
> make[1]: *** [../lab/map51] Error 1
> make: *** [build] Error 2 with gfortran 8.3.0
>
> Does anyone know anything about this?
>
> DN
>
> David C Nicholls,
> Research School of Astronomy & Astrophysics
> Australian National University
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20191010/109cfaac/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1930 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20191010/109cfaac/attachment.bin>
More information about the macports-users
mailing list