Skip to content

--reuse concretizes to a new architecture than the current target architecture #29672

@bvanessen

Description

@bvanessen

Steps to reproduce

On a Power8 system I can create an environment that then fails to build because it tries to use Power9 installed packages.

spack env create lbann-gitlab-power8le

spack env activate -p lbann-gitlab-power8le

spack compiler find --scope env:lbann-gitlab-power8le

spack external find --scope env:lbann-gitlab-power8le bzip2 cmake cuda cudnn hipblas hwloc ninja libtool nccl ncurses openssl perl pkg-config python rccl rdma-core sqlite spectrum-mpi mvapich2 openmpi

spack add lbann@gitlab-power8le +gold cuda_arch=60 +cuda +deterministic +vision +numpy ^hydrogen@develop blas=openblas ^dihydrogen@develop blas=openblas ^aluminum@master ^spectrum-mpi ^[email protected] threads=openmp ^[email protected] ^[email protected] ^[email protected]

spack develop --no-clone -p /usr/WS1/vanessen/lbann_bugfixes.git lbann@gitlab-power8le

spack add [email protected]:

spack concretize --reuse --test root

spack concretize -f --reuse --test root

Error message

On a system where there is a an existing power9le set of software packages the above commands when using --reuse find packages that are incompatible with the power8le architecture.

==> [2022-03-22-11:55:14.119580] Concretized lbann@gitlab-power8le+cuda+deterministic+gold+numpy+vision cuda_arch=60 dev_path=/usr/WS1/vanessen/lbann_bugfixes.git ^aluminum@master ^[email protected] ^dihydrogen@develop blas=openblas ^hydrogen@develop blas=openblas ^[email protected] ^[email protected] threads=openmp ^[email protected] ^spectrum-mpi
 -   yvucsbc  lbann@gitlab-power8le%[email protected]+al~asan~boost+conduit+cuda+deterministic+dihydrogen~distconv~fft+gold~half+hwloc~ipo~lld+numpy~nvprof~nvshmem~onednn~onnx+pfe+python~rocm+vision~vtune build_type=Release cuda_arch=60 dev_path=/usr/WS1/vanessen/lbann_bugfixes.git dtype=float arch=linux-rhel7-power9le
 -   22c4mxt      ^aluminum@master%[email protected]+cuda+cuda_rma~ht~ipo+nccl~rccl~rocm build_type=RelWithDebInfo cuda_arch=60 arch=linux-rhel7-power9le
[+]  mhnavkh          ^[email protected]%[email protected]~doc+ncurses+openssl+ownlibs~qt build_type=Release arch=linux-rhel7-power9le
[+]  3uml3ee              ^[email protected]%[email protected]~symlinks+termlib abi=5 patches=f84b270 arch=linux-rhel7-power9le
[+]  b6rgoro              ^[email protected]%[email protected]~docs certs=system arch=linux-rhel7-power9le
[+]  gdrhg2x          ^[email protected]%[email protected]~allow-unsupported-compilers~dev arch=linux-rhel7-power9le

Information on your system

[lbann-gitlab-power8le] (1) vanessen@ray24 [lbann_bugfixes.git] %> spack debug report
* **Spack:** 0.17.1-1526-705107b9df
* **Python:** 3.7.2
* **Platform:** linux-rhel7-power8le
* **Concretizer:** clingo
* ```

### General information

- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform
- [X] I have searched the issues of this repo and believe this is not a duplicate
- [X] I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingconcretizationconcretizer-use-caseinteresting dependency hierarchy that would challenge the current concretizertriageThe issue needs to be prioritized

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions