[MacPorts] #61457: libtool: configure error: C compiler cannot create executables

MacPorts noreply at macports.org
Sun Nov 15 00:21:01 UTC 2020


#61457: libtool: configure error: C compiler cannot create executables
------------------------+----------------------
  Reporter:  rseichter  |      Owner:  larryv
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.4
Resolution:             |   Keywords:
      Port:  libtool    |
------------------------+----------------------

Comment (by ryandesign):

 Well it says the problem is:

 {{{
 configure:3902: checking whether the C compiler works
 configure:3924: /usr/bin/clang -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
 x86_64 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -arch x86_64 conftest.c  >&5
 ld: library not found for -lSystem
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 }}}

 which is of course a big problem. The System library is essential to
 everything. So why isn't it there, or why does it think it isn't there?

 Are the .tbd files there in the SDK? Try running:
 {{{
 ls -l
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/lib/libSystem*
 }}}

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


More information about the macports-tickets mailing list