Skip to content

otf2: fix NameError: name spack_cc is not defined when installing fr…#14361

Closed
eugeneswalker wants to merge 1 commit intospack:developfrom
eugeneswalker:bugfix-otf2
Closed

otf2: fix NameError: name spack_cc is not defined when installing fr…#14361
eugeneswalker wants to merge 1 commit intospack:developfrom
eugeneswalker:bugfix-otf2

Conversation

@eugeneswalker
Copy link
Copy Markdown
Contributor

Installation of otf2 from build cache fails because of:

NameError: name 'spack_cc' is not defined

which is referenced in configure_args() section of the otf2 package. I'm not sure this is the best way to address it, here I'm substituting the logic from I was trying to substitute how spack_cc et. al. get defined in https://github.com/spack/spack/blob/develop/lib/spack/spack/build_environment.py#L460

@adamjstewart
Copy link
Copy Markdown
Member

I think @alalazo made it so that things like spack_cc are only defined when we need them. @gartung why do we need to run configure_args when installing from a build cache?

@gartung
Copy link
Copy Markdown
Member

gartung commented Jan 3, 2020

Not that I know of, unless it is needed for module generation somehow.

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Jan 3, 2020

I think @alalazo made it so that things like spack_cc are only defined when we need them. @gartung why do we need to run configure_args when installing from a build cache?

@adamjstewart Nope. I think you are referring to something that we tried in #13557 and left out in the end because of backward compatibility concerns. This seems more a case similar to the ones solved by #11084

@eugeneswalker Can you check if that PR solves your issue?

@alalazo alalazo self-assigned this Jan 3, 2020
@eugeneswalker
Copy link
Copy Markdown
Contributor Author

eugeneswalker commented Jan 3, 2020

@alalazo @michaelkuhn @adamjstewart Yes, I was able to install otf2 from buildcache wo/ errors using #11084 . Thank you. Do you expect this to be merged soon?

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Jan 3, 2020

Yes, I was able to install otf2 from buildcache wo/ errors using #11084 . Thank you. Do you expect this to be merged soon?

I'll try to prioritize reviewing it, even though I'm quite busy with 0.14.0 at the moment 😬

@eugeneswalker
Copy link
Copy Markdown
Contributor Author

Yes, I was able to install otf2 from buildcache wo/ errors using #11084 . Thank you. Do you expect this to be merged soon?

I'll try to prioritize reviewing it, even though I'm quite busy with 0.14.0 at the moment 😬

@alalazo This is not an urgent concern for my team right now. It will be nice to have, but not as nice as Spack 0.14, just FYI. Thank you 👍

@adamjstewart
Copy link
Copy Markdown
Member

Closing in favor of #11084

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.

4 participants