spack / spack/spack

Spack compiler wrappers aren't compatible with SCons

Open
#4,927 5 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.