-
Notifications
You must be signed in to change notification settings - Fork 2.4k
The concretiser does not respect the choice of compiler #22718
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingconcretizationconcretizer-use-caseinteresting dependency hierarchy that would challenge the current concretizerinteresting dependency hierarchy that would challenge the current concretizerimpact-low
Description
When installing a package with a dependency on a package that was built with a compiler that is older than the most recent one known to Spack, the resulting spec has a mix of compilers.
The issue was initially found when concretising for an already installed package spack install mumps ^/abcdefg.
The issue appears to be present with both Clingo and the original solver.
Steps to reproduce the issue
$ spack compiler list
==> Available compilers
-- gcc rhel8-x86_64 ---------------------------------------------
[email protected] [email protected] [email protected]
$ spack spec mumps ^mvapich2 %[email protected]
Input spec
--------------------------------
mumps
^mvapich2%[email protected]
Concretized
--------------------------------
[email protected]%[email protected]+complex+double+float~int64~metis+mpi~parmetis~ptscotch~scotch+shared patches=1946864d2106f7414aaa4dbd4dbc068b7804af7c1588381e814b268a56140a52 arch=linux-rhel8-zen2
^[email protected]%[email protected]~alloca~cuda~debug+regcache+wrapperrpath ch3_rank_bits=32 fabrics=mrail file_systems=auto process_managers=auto threads=multiple arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected]+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-rhel8-zen2
^[email protected]%[email protected]+shared arch=linux-rhel8-zen2
^[email protected]%[email protected]~python arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected]~pic arch=linux-rhel8-zen2
^[email protected]%[email protected]+optimize+pic+shared arch=linux-rhel8-zen2
^[email protected]%[email protected]~symlinks+termlib arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected]+cpanm+shared+threads arch=linux-rhel8-zen2
^[email protected]%[email protected]~docs patches=b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522 arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected]+sigsegv patches=3877ab548f88597ab2327a2230ee048d2d07ace1062efe81fc92e91b7f39cd00,fc9b61654a3ba1a8d6cd78ce087e7c96366c290bc8d2c299f09828d793b853c8 arch=linux-rhel8-zen2
^[email protected]%[email protected] patches=84b916c0bf8c51b7e7b28417692f0ad3e7030d1f3c248ba77c42ede5c1c5d11e,bd9e4e5cc280f9753ae14956c4e4aa17fe7a210f55dd6c84aa60b12d106d47a2 arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected] patches=12f6edb0c6b270b8c8dba2ce17998c580db01182d871ee32b7b6e4129bd1d23a,1732115f651cff98989cb0215d8f64da5e0f7911ebf0c13b064920f088f2ffe1 arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^[email protected]%[email protected] arch=linux-rhel8-zen2
^rdma-core@50mlnx1%[email protected]~ipo build_type=RelWithDebInfo arch=linux-rhel8-zen2
^[email protected]%[email protected]~ipo~pic+shared build_type=Release patches=1c9ce5fee1451a08c2de3cc87f446aeda0b818ebbce4ad0d980ddf2f2a0b2dc4,f2baedde688ffe4c20943c334f580eb298e04d6f35c86b90a1f4e8cb7ae344a2 arch=linux-rhel8-zen2
^[email protected]%[email protected]~doc+ncurses+openssl+ownlibs~qt build_type=Release arch=linux-rhel8-zen2
^[email protected]%[email protected]~docs+systemcerts arch=linux-rhel8-zen2
^[email protected]%[email protected]~bignuma~consistent_fpcsr~ilp64+locking+pic+shared threads=none arch=linux-rhel8-zen2Note that spack spec mumps %[email protected] ^mvapich2 works as expected with only [email protected] being used which indicates that ^and % are not associative.
Information on your system
$ spack debug report
* **Spack:** 0.16.1-1940-3d7069e039
* **Python:** 3.6.8
* **Platform:** linux-rhel8-zen2
* **Concretizer:** clingo
Could @alalazo take a look?
Additional information
- I have run
spack debug reportand reported the version of Spack/Python/Platform - I have searched the issues of this repo and believe this is not a duplicate
- I have run the failing commands in debug mode and reported the output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingconcretizationconcretizer-use-caseinteresting dependency hierarchy that would challenge the current concretizerinteresting dependency hierarchy that would challenge the current concretizerimpact-low