Spack compiler wrappers aren't compatible with SCons
Open
@alalazo is already working on this.
Since Apr 19, 2018.
compilers
- Dominant language
- Python
- Stars
- 5.1k
- Forks
- 2.5k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 82
Description
I'm working on a SConsPackage base class and started debugging some SCons builds. I discovered that SCons ignores the CC environment variable. If I add 'CC={0}'.format(spack_cc) to the serf build line, it actually uses Spack's compiler wrappers, but I end up seeing the following error message:
Spack compiler must be run from Spack! Input 'SPACK_PREFIX' is missing.
Maybe SCons purifies the build environment for some reason? We might need a way to work around this. For now I'll tell it to use the actual compilers and manually set -L and -I.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.