Hi @Jack_Woehr -
In general, SCons ignores the shell environment in the interest of reproducible builds. If you wish to customize CC
and CXX
when invoking SCons, you must pass them as command line arguments to SCons. Try the following instead:
python buildscripts/scons.py install-mongod --disable-warnings-as-errors CC=/usr/local/bin/egcc CXX=/usr/local/bin/egc++
(Note: I’m guessing on that CXX value, I’m not very familiar with OpenBSD’s compiler setup).
One more thing I’ll note regarding toolchain is that it looks like your toolchain is in /usr/local/
. Will your toolchain automatically arrange for binaries to search for the C++ runtime in the right place? If not, some additional flags may be needed to setup an additional runpath.
The issue OpenSSL is more surprising. Can you provide more details on what is going wrong? Is it failing the configure check? If so, you can look in the config.log
, a path to which is printed out after a failed config, and it will often show something helpful. It might be worth building with VERBOSE=1 --config=force
to make sure you aren’t just getting echoed back a cached failure.
Also, it would be helpful if you could let me know what branch / version of MongoDB you are trying to build.
Thanks,
Andrew