[MacPorts] #59113: gcc-mp-8

MacPorts noreply at macports.org
Thu Sep 26 08:12:11 UTC 2019


#59113: gcc-mp-8
-----------------------+--------------------
  Reporter:  abyrvalk  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  base      |    Version:
Resolution:            |   Keywords:
      Port:            |
-----------------------+--------------------

Comment (by kencu):

 you'll find lots of other open tickets about this right now. Our gcc
 versions were built against a versioned macOS SDK that no longer exists:
 {{{
 $ /opt/local/bin/gcc-mp-9 -v
 Using built-in specs.
 COLLECT_GCC=/opt/local/bin/gcc-mp-9
 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin18/9.2.0
 /lto-wrapper
 Target: x86_64-apple-darwin18
 Configured with:
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc9/gcc9/work/gcc-9.2.0/configure
 --prefix=/opt/local --build=x86_64-apple-darwin18 --enable-
 languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc9
 --includedir=/opt/local/include/gcc9 --infodir=/opt/local/share/info
 --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-9 --with-
 local-prefix=/opt/local --with-system-zlib --disable-nls --program-
 suffix=-mp-9 --with-gxx-include-dir=/opt/local/include/gcc9/c++/ --with-
 gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-
 isl=/opt/local --enable-stage1-checking --disable-multilib --enable-lto
 --enable-libstdcxx-time --with-build-config=bootstrap-debug --with-
 as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-
 ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
 --disable-tls --with-pkgversion='MacPorts gcc9 9.2.0_0' --with-
 sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 Thread model: posix
 gcc version 9.2.0 (MacPorts gcc9 9.2.0_0)
 }}}

 i.e.
 {{{
 --with-
 sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 }}}

 and -just for fun - you can't build gcc against the 10.15 Catalina headers
 right now.

 SO -- my best bet would be to find the 10.14 SDK and put it where it is
 looking.

 Others have downgraded their Xcode back down again (easy enough).

 I rarely upgrade Xcode when it first comes out, BTW. Fine for apple stuff,
 but all the MacPorty stuff is going to be a trick.

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


More information about the macports-tickets mailing list