Skip to content

The build ignores env settings and picks a random g++ which fails to work when C++11 not supported by /usr/bin/g++ #2

@barracuda156

Description

@barracuda156

Could you say how to specify the needed compiler? It requires C++11, but I environment settings are ignored by the build, and it picks a default system compiler, which 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions