[MacPorts] #70211: ncpp does not respect MacPorts compiler settings

MacPorts noreply at macports.org
Wed Jun 12 21:51:07 UTC 2024


#70211: ncpp does not respect MacPorts compiler settings
--------------------------+----------------------
 Reporter:  barracuda156  |      Owner:  mf2k
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.3
 Keywords:                |       Port:  ncpp
--------------------------+----------------------
 https://github.com/NCAR/ncpp/issues/2

 Build fails:
 {{{
 --->  Building ncpp
 Executing:  cd
 "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_ncpp/ncpp/work/ncpp-2.3.0"
 && /opt/local/bin/scons OPT_PREFIX=/opt/local
 scons: Reading SConscript files ...
 Loading eol_scons from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_ncpp/ncpp/work/ncpp-2.3.0/site_scons/eol_scons...
 Searching for tool_*.py files...
 Found 1 tool files, caching is disabled.
 Config files:
 ['/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_ncpp/ncpp/work/ncpp-2.3.0/config.py']
 Checking for netcdf linking...yes
 scons: done reading SConscript files.
 scons: Building targets ...
 g++ -o raf/ACconfig.o -c -g -Wall -std=c++11 -Wno-write-strings -Wno-
 deprecated-register -g -Wall -Wno-write-strings -DPNG -I.
 -I/opt/local/include raf/ACconfig.cc
 cc1plus: error: unrecognized command line option "-Wno-deprecated-
 register"
 cc1plus: error: unrecognized command line option "-std=c++11"
 scons: *** [raf/ACconfig.o] Error 1
 scons: building terminated because of errors.
 }}}

 It also fails if I set `compiler.cxx_standard 2011`, because it just
 ignores compiler settings.

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


More information about the macports-tickets mailing list