[MacPorts] #59727: gcc9: fails to link properly (-lSystem no found)

MacPorts noreply at macports.org
Tue Nov 19 17:03:03 UTC 2019


#59727: gcc9: fails to link properly (-lSystem no found)
------------------------+--------------------
  Reporter:  akimd      |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:
      Port:  gcc8 gcc9  |
------------------------+--------------------

Comment (by kencu):

 I think you'll probably have to rebuild gcc8 and gcc9 on your system from
 source to get the proper SDK baked into gcc.

 It looks like you're building into a prefix that is not `/opt/local`, so
 you're building yourself. I see `_opt_bblocal`, so I presume you have it
 prefixing into `/opt/bblocal`.

 So uninstall gcc8 and gcc9  (and perhaps all the libgccN versions as well,
 ugh). And then reinstall gcc9, and it should pick up your proper CLT SDK
 and then all will (hopefully) be well for you.

 BTW, life is 1000% easier if you use `/opt/local` and then the buildbot
 prebuilt binaries, but that is up to you.

-- 
Ticket URL: <https://trac.macports.org/ticket/59727#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list