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

update filename used for cc wrapper invocation debug log #5837

Merged
merged 3 commits into from
Nov 2, 2017

Conversation

scheibelp
Copy link
Member

@scheibelp scheibelp commented Oct 20, 2017

The name of the debug log written by the cc compiler wrapper is given by Spec.short_spec, which includes the architecture. Somewhere along the line Spec.format started adding spaces around the architecture property so the filename started including spaces; the cc wrapper script appears to ignore this, so files like spack-cc-bzip2-....in.log (which record the wrapped compiler invocations) were not being generated. This updates the value of SPACK_SHORT_SPEC to a value without spaces (just includes the name and hash).

EDIT: the original value of SPACK_SHORT_SPEC was important so I added a new variable to store the identifier used to generate log file names (SPACK_DEBUG_LOG_ID).

@scheibelp
Copy link
Member Author

Just noticed that the cc wrapper also uses SPACK_SHORT_SPEC to check whether the OS is darwin, which this PR would break.

…for build details in that. Add a new variable to store a filename-compatible format of the spec name.
@scheibelp
Copy link
Member Author

Just noticed that the cc wrapper also uses SPACK_SHORT_SPEC to check whether the OS is darwin, which this PR would break.

I restored how SPACK_SHORT_SPEC was originally set and added a new variable to identify the compiler wrapper log.

@scheibelp scheibelp merged commit 3eb59f6 into spack:develop Nov 2, 2017
healther pushed a commit to electronicvisions/spack that referenced this pull request Nov 13, 2017
healther pushed a commit to electronicvisions/spack that referenced this pull request Dec 1, 2017
kljohann added a commit to electronicvisions/spack that referenced this pull request Dec 4, 2017
scheibelp pushed a commit that referenced this pull request Dec 11, 2017
Fixes #6521.

Bazel's build system filters environment variables, including those
set by Spack for use by its compiler wrapper. This updates the patch
to include the SPACK_DEBUG_LOG_ID variable added in #5837.
healther pushed a commit to electronicvisions/spack that referenced this pull request Dec 15, 2017
ch741 pushed a commit to ch741/spack that referenced this pull request Apr 20, 2018
Fixes spack#6521.

Bazel's build system filters environment variables, including those
set by Spack for use by its compiler wrapper. This updates the patch
to include the SPACK_DEBUG_LOG_ID variable added in spack#5837.
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

Successfully merging this pull request may close these issues.

1 participant