Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#59108 closed defect (fixed)

mercurial 5.1: fails to build with "ld: library not found for -lSystem"

Reported by: ylluminarious (George Plymale II) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.6.0
Keywords: Cc:
Port: mercurial

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Making a new ticket as per the discussion here. I'm attaching the last log file which was in that thread to this ticket.

Attachments (1)

main.log (107.2 KB) - added by ylluminarious (George Plymale II) 5 years ago.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by ylluminarious (George Plymale II)

Attachment: main.log added

comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Well, the log shows you're using Xcode 11, yet the build is using flags like -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk. Xcode 11 does not contain the 10.14 SDK; it only contains the 10.15 SDK. There are many other tickets for this issue already.

comment:3 in reply to:  2 ; Changed 5 years ago by ylluminarious (George Plymale II)

Replying to ryandesign:

Well, the log shows you're using Xcode 11, yet the build is using flags like -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk. Xcode 11 does not contain the 10.14 SDK; it only contains the 10.15 SDK. There are many other tickets for this issue already.

Are there any known solutions or workarounds to this problem? Could you point me to one of these tickets?

comment:4 in reply to:  3 Changed 5 years ago by kencu (Ken)

Replying to ylluminarious:

Are there any known solutions or workarounds to this problem? Could you point me to one of these tickets?

There are several workarounds in 59113

comment:5 Changed 5 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In efb1b95f2d20f268aafb7026cdd0c75e059c5db2/macports-ports (master):

python pg: support Mojave with /usr/include

Some users may have installed the optional package that provides system
headers in /usr/include.

Fixes: #59108

comment:6 in reply to:  5 Changed 5 years ago by ylluminarious (George Plymale II)

Replying to jmroot:

In efb1b95f2d20f268aafb7026cdd0c75e059c5db2/macports-ports (master):

python pg: support Mojave with /usr/include

Some users may have installed the optional package that provides system
headers in /usr/include.

Fixes: #59108

Thanks a lot for fixing it, it works now!

Note: See TracTickets for help on using tickets.