[MacPorts] #59660: py36-isce2 fails to rebuild with Xcode 11.2

MacPorts noreply at macports.org
Thu Nov 14 05:24:28 UTC 2019


#59660: py36-isce2 fails to rebuild with Xcode 11.2
-------------------------+-----------------------
  Reporter:  EJFielding  |      Owner:  piyushrpt
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:              |   Keywords:
      Port:  py-isce2    |
-------------------------+-----------------------

Comment (by EJFielding):

 Rebuilding gcc7 from source also works. Now it is looking for the 10.14
 SDK in the CommandLineTools directory:

 {{{
 cpp -v
 Using built-in specs.
 COLLECT_GCC=cpp
 Target: x86_64-apple-darwin18
 Configured with:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/gcc7/work/gcc-7.4.0/configure
 --prefix=/opt/local --build=x86_64-apple-darwin18 --enable-
 languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc7
 --includedir=/opt/local/include/gcc7 --infodir=/opt/local/share/info
 --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-7 --with-
 local-prefix=/opt/local --with-system-zlib --disable-nls --program-
 suffix=-mp-7 --with-gxx-include-dir=/opt/local/include/gcc7/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 gcc7 7.4.0_3' --with-
 sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 Thread model: posix
 gcc version 7.4.0 (MacPorts gcc7 7.4.0_3)
 COLLECT_GCC_OPTIONS='-E' '-v' '-mmacosx-version-min=10.14.7'
 '-asm_macosx_version_min=10.14' '-mtune=core2'
  /opt/local/libexec/gcc/x86_64-apple-darwin18/7.4.0/cc1 -E -quiet -v
 -D__DYNAMIC__ - -fPIC -mmacosx-version-min=10.14.7 -mtune=core2
 ignoring nonexistent directory
 "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/opt/local/include"
 ignoring nonexistent directory "/opt/local/lib/gcc7/gcc/x86_64-apple-
 darwin18/7.4.0/../../../../../x86_64-apple-darwin18/include"
 ignoring nonexistent directory
 "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/Library/Frameworks"
 #include "..." search starts here:
 #include <...> search starts here:
  /opt/local/lib/gcc7/gcc/x86_64-apple-darwin18/7.4.0/include
  /opt/local/lib/gcc7/gcc/x86_64-apple-darwin18/7.4.0/include-fixed
  /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks
 End of search list.
 }}}

 The py36-isce2 port still does not build because it is not finding the
 hdf5 libraries. The regular scons build of the ISCE2 source works and
 finds the hdf5 libraries, but something about the portfile is a little
 different.

 Replying to [comment:8 piyushrpt]:
 > You have to create symlinks for the 10.14sdk for this to work.
 >
 > {{{
 > > gcc -v
 > Using built-in specs.
 > COLLECT_GCC=gcc
 > COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin18/7.4.0
 /lto-wrapper
 > Target: x86_64-apple-darwin18
 > Configured with:
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc7/gcc7/work/gcc-7.4.0/configure
 --prefix=/opt/local --build=x86_64-apple-darwin18 --enable-
 languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc7
 --includedir=/opt/local/include/gcc7 --infodir=/opt/local/share/info
 --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-7 --with-
 local-prefix=/opt/local --with-system-zlib --disable-nls --program-
 suffix=-mp-7 --with-gxx-include-dir=/opt/local/include/gcc7/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 gcc7 7.4.0_3' --with-
 sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 > Thread model: posix
 > gcc version 7.4.0 (MacPorts gcc7 7.4.0_3)
 > }}}
 >
 > tells us where its looking for the SDK (see sysroot).
 >
 > Creating the symlink and pointing it to the old SDK -
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 > should solve the problem.

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


More information about the macports-tickets mailing list