[MacPorts] #62678: netcdf 4.8.0: update fails after libstdc++ headers not found

MacPorts noreply at macports.org
Sun Apr 18 08:52:37 UTC 2021


#62678: netcdf 4.8.0: update fails after libstdc++ headers not found
---------------------------+----------------------
  Reporter:  thiagoveloso  |      Owner:  tenomoto
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.4
Resolution:                |   Keywords:
      Port:  netcdf        |
---------------------------+----------------------

Comment (by cjones051073):

 The issue is the use of the none default gcc10 variant. Without this the
 configuration environment is

 {{{
 CC='/usr/bin/clang'
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_science_netcdf/netcdf/work/.CC_PRINT_OPTIONS'
 CFLAGS='-pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 CPATH='/opt/local/include'
 CPPFLAGS='-I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 CXX='/usr/bin/clang++'
 CXXFLAGS='-pipe -Os -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 DEVELOPER_DIR='/Library/Developer/CommandLineTools'
 F90FLAGS='-pipe -Os -m64'
 FCFLAGS='-pipe -Os -m64'
 FFLAGS='-pipe -Os -m64'
 INSTALL='/usr/bin/install -c'
 LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 LIBRARY_PATH='/opt/local/lib'
 MACOSX_DEPLOYMENT_TARGET='11.0'
 OBJC='/usr/bin/clang'
 OBJCFLAGS='-pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 OBJCXX='/usr/bin/clang++'
 OBJCXXFLAGS='-pipe -Os -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 }}}

 compared to with it enabled

 {{{
 CC='/opt/local/bin/gcc-mp-10'
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_science_netcdf/netcdf/work/.CC_PRINT_OPTIONS'
 CFLAGS='-pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 CPATH='/opt/local/include'
 CPPFLAGS='-I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 CXX='/usr/bin/clang++'
 CXXFLAGS='-pipe -Os -stdlib=libstdc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 DEVELOPER_DIR='/Library/Developer/CommandLineTools'
 F90FLAGS='-pipe -Os -m64'
 FCFLAGS='-pipe -Os -m64'
 FFLAGS='-pipe -Os -m64'
 INSTALL='/usr/bin/install -c'
 LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 LIBRARY_PATH='/opt/local/lib'
 MACOSX_DEPLOYMENT_TARGET='11.0'
 OBJC='/usr/bin/clang'
 OBJCFLAGS='-pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 OBJCXX='/usr/bin/clang++'
 OBJCXXFLAGS='-pipe -Os -stdlib=libstdc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
 }}}

 See how CC is changed to use gcc-mp-10, which is a bit odd, but also how
 -stdlib=libstdc++ finds its way into a number of flags.

 I don't think this is an upstream issue with netcdf, but an issue with the
 MacPorts mpi (or compilers) PortGroup configuration.

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


More information about the macports-tickets mailing list