[MacPorts] #60835: /usr/local missing from gcc10 library and include search path

MacPorts noreply at macports.org
Tue Jul 14 18:08:27 UTC 2020


#60835: /usr/local missing from gcc10 library and include search path
---------------------+--------------------
 Reporter:  krovetz  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.6.2
 Keywords:           |       Port:  gcc10
---------------------+--------------------
 Xcode's clang lists /usr/local on the default search path while gcc10 does
 not. For example:


 {{{
 icelake> clang -Xlinker -v
 <snip>
 Library search paths:
         /usr/local/lib
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
 Framework search paths:
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/

 }}}

 but gcc10 does not


 {{{
 icelake> gcc-mp-10 -Xlinker -v
 <snip>
 Library search paths:
         /opt/local/lib/gcc10/gcc/x86_64-apple-darwin19/10.1.0
         /opt/local/lib/gcc10
         /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib
 Framework search paths:
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/
 }}}


 Same goes for include search paths


 {{{
 icelake> gcc-mp-10 -x c -v -E /dev/null
 <snip>
 #include "..." search starts here:
 #include <...> search starts here:
  /opt/local/lib/gcc10/gcc/x86_64-apple-darwin19/10.1.0/include
  /opt/local/lib/gcc10/gcc/x86_64-apple-darwin19/10.1.0/include-fixed
  /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks
 End of search list.
 icelake> clang -x c -v -E /dev/null
 <snip>
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/local/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
 (framework directory)
 End of search list.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60835>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list