Skip to content

Wrong architecture concretized on a multi-architecture setup #6245

@alfredo-gimenez

Description

@alfredo-gimenez

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions