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

MacPorts noreply at macports.org
Thu Jan 30 15:47:45 UTC 2020


#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 jxy):

 I had to rebuild gcc9 from source to get it work too.  With the pre-built
 package I have

 {{{
 Library search paths:
         /opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/9.2.0
         /opt/local/lib/gcc9
 Framework search paths:
 ld: library not found for -lSystem
 collect2: error: ld returned 1 exit status
 }}}

 after rebuild from source I have
 {{{
 Library search paths:
         /opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/9.2.0
         /opt/local/lib/gcc9
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib
 Framework search paths:
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/
 }}}

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


More information about the macports-tickets mailing list