Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
barracuda156 opened this issue Jun 12, 2024 · 0 comments

Comments

@barracuda156
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant