-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Wrong architecture concretized on a multi-architecture setup #6245
Copy link
Copy link
Open
Labels
Description
I have packages installed under two different architectures:
(catalyst160):~$ spack find -l python
==> 2 installed packages.
-- linux-rhel6-x86_64 / [email protected] -------------------------------
bmjyypv [email protected]
-- linux-rhel7-x86_64 / [email protected] -------------------------------
tlx6gbm [email protected]
If I try to load a package compiled for both, spack frequently chooses the wrong one for the current architecture (note the hashes):
(catalyst160):~$ spack arch
linux-rhel7-x86_64
(catalyst160):~$ spack load python
Lmod has detected the following error: The following module(s) are unknown: "python-2.7.14-gcc-4.9.2-bmjyypv"
Please check the spelling or version number. Also try "module spider ..."
I can resolve this by specifying the arch explicitly:
(catalyst160):~$ spack load python arch=`spack arch`
# successfully loads
But it seems to me that this should be the default behavior.
Reactions are currently unavailable