Massimiliano Culpo
eacdfef38f
Account for language on flag propagation
...
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-02-28 23:34:57 +01:00
Massimiliano Culpo
1316e4a2e3
concretize.lp: minor clean up of node_compiler
...
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-02-28 23:34:56 +01:00
Massimiliano Culpo
de51c6b894
spack verify: use --fake in test installs
2025-02-28 23:34:56 +01:00
Harmen Stoppels
9fb5878ebb
improve static check of direct deps
2025-02-28 23:34:55 +01:00
Massimiliano Culpo
cfaf130115
Fix style issue
...
Possible bug in mypy?
2025-02-28 23:34:55 +01:00
Massimiliano Culpo
5dbbb52579
spec: remove {%compiler} in default format
2025-02-28 23:34:55 +01:00
Harmen Stoppels
964baf9402
remove leftover debug statements
2025-02-28 23:34:54 +01:00
Harmen Stoppels
2e2f76819c
config.py: undo reintroduction of ConfigurationType
2025-02-28 23:34:54 +01:00
Massimiliano Culpo
848816efa4
cray-libsci: fix finding library
...
The fix is brittle, but not more brittle
than before, where users had to specify
the "correct" compiler ans prefix in the
external definition
2025-02-28 23:34:53 +01:00
Massimiliano Culpo
035131749b
macOS: improve error message for required compilers
2025-02-28 23:34:53 +01:00
Massimiliano Culpo
05cf9b32a5
Add unit-tests on runtimes
2025-02-28 23:34:52 +01:00
Massimiliano Culpo
29d273d86e
Disregard only default compiler requirements for runtimes
2025-02-28 23:34:52 +01:00
Massimiliano Culpo
e37a7b6c91
gromacs: fix issue with ^gcc
2025-02-28 23:34:51 +01:00
Massimiliano Culpo
626c5c59c6
Relax rule on gcc-runtime
...
It might happen that gcc-runtime is just a dep
of another runtime, and not used as a compiler.
2025-02-28 23:34:51 +01:00
Massimiliano Culpo
229945ed27
compiler-wrapper: add missing links on Cray
2025-02-28 23:34:51 +01:00
Massimiliano Culpo
6989bf9661
py-petsc4py: patch again for wrong assumption on LDSHARED
2025-02-28 23:34:50 +01:00
Massimiliano Culpo
bab2053d54
darwin: try to use better defaults
2025-02-28 23:34:50 +01:00
Massimiliano Culpo
cc8447968e
gcc-runtime: fix case of only gfortran in macOS
2025-02-28 23:34:49 +01:00
Massimiliano Culpo
ae1f39339b
Fix failing test self dependency
...
TO BE CHECKED
2025-02-28 23:34:49 +01:00
Massimiliano Culpo
30ebf3595b
Don't use compilers from buildcache if reuse is false
2025-02-28 23:34:48 +01:00
Massimiliano Culpo
7800c4c51b
Allow using compilers from build caches
2025-02-28 23:34:48 +01:00
Massimiliano Culpo
476f2a63e2
Add support for externals with compiler specified
...
Compiler annotation is taken into account when
selecting externals as dependencies.
2025-02-28 23:34:47 +01:00
Massimiliano Culpo
745a0fac8a
Improve default selection of compilers
...
This splits optimization on providers, and
puts selection of default compilers at lower
priority wrt selection of e.g. mpi or lapack
provider.
This is so that, on systems where 2 or more
compilers are used (e.g. macOS), clingo would
not make weird choices for mpi or lapack, in
order to minimize compiler penalty due to
using different compilers on the same node.
2025-02-28 23:34:47 +01:00
Massimiliano Culpo
660fff39eb
rpcsvc-proto: point to compiler-wrapper, instead of Spack dir
...
https://gitlab.spack.io/spack/spack/-/jobs/15003090
2025-02-28 23:34:47 +01:00
Massimiliano Culpo
d4b5eb2be6
Improve heuristic.lp
2025-02-28 23:34:46 +01:00
Massimiliano Culpo
ddeab9879e
Improve stability of DAG when using multiple compilers for the same language
2025-02-28 23:34:46 +01:00
Massimiliano Culpo
5920d31b25
unit-test: remove test that is superseded by new semantic
2025-02-28 23:34:45 +01:00
Massimiliano Culpo
f75555136b
No flag propagation when compilers are different
...
Flag propagation is not activated on nodes with
a compiler that is different from the propagation
source
2025-02-28 23:34:45 +01:00
Massimiliano Culpo
922b9b0e50
solver: test that we can build llvm%gcc
2025-02-28 23:34:44 +01:00
Harmen Stoppels
da916a944e
remove unused code
2025-02-28 23:34:44 +01:00
Harmen Stoppels
6d224d8a6f
simplify imports
2025-02-28 23:34:43 +01:00
Massimiliano Culpo
15f0871a6f
Add an alias for SpecfileLatest
2025-02-28 23:34:43 +01:00
Massimiliano Culpo
99489c236f
Modify granularity of CachedCMakeBuilder.cache_name
2025-02-28 23:34:42 +01:00
Massimiliano Culpo
e94ee8b2f3
Fix version numbers
2025-02-28 23:34:42 +01:00
Massimiliano Culpo
ac72170e91
Spack fails with an error the local database is at an outdated version
...
With this commit Spack fails with an error and an informative message,
if the local store is at an outdated version. This usually happens when
people upgrade their Spack version, but retain the same configuration as
before.
Since updating the DB without an explicit consent of the user means making
the local store incompatible with previous versions of Spack, here we opt
to error out and give the user the choice to either reindex, or update the
configuration.
2025-02-28 23:34:42 +01:00
Massimiliano Culpo
fc2793f98f
Improve info messages
2025-02-28 23:34:41 +01:00
Massimiliano Culpo
a8dd481bbf
Allow using compilers from the local store
...
To do this we introduce a new fact, that is true
when a compiler is used as a link dependency.
If we don't have this fact, we enforce only run
dependencies in the ASP problem.
2025-02-28 23:34:41 +01:00
Massimiliano Culpo
56c685e374
compiler-wrapper: install in libexec/spack instead of spack/bin
2025-02-28 23:34:40 +01:00
Massimiliano Culpo
42c5cc4dc8
Fix for compiler search and conversion from compilers.yaml
...
* Don't write to platform scope
* Remove leftover print about compilers.yaml
* Avoid merging all the scopes when writing compilers
2025-02-28 23:34:40 +01:00
Massimiliano Culpo
e0d889fb91
Remove dead code after "spack compiler" reworking
2025-02-28 23:34:39 +01:00
Massimiliano Culpo
4566ad9c2b
Tolerate compiler tokens in external specs
2025-02-28 23:34:39 +01:00
Massimiliano Culpo
dc12cfde75
Remove artifacts of frequent rebase
...
fixup
2025-02-28 23:34:38 +01:00
Massimiliano Culpo
b3cc4b4cb3
Fix non-determinism when using mixed compilers
2025-02-28 23:34:38 +01:00
Massimiliano Culpo
bb65d495d9
Fix setting build dependencies of a build dependency from cli
2025-02-28 23:34:38 +01:00
Massimiliano Culpo
8ccf626306
compiler-wrapper: decouple the package from Spack configuration
2025-02-28 23:34:37 +01:00
Massimiliano Culpo
11065ff318
Remove attribute spuriously added during rebase
2025-02-28 23:34:37 +01:00
Harmen Stoppels
b9b7ef424c
Fix test_pkg_flags_from_compiler_and_none
2025-02-28 23:34:36 +01:00
Massimiliano Culpo
91b09cfeb6
Better handling of legacy compilers.yaml
...
After this commit, entries in compilers.yaml will be "converted"
to entries in packages.yaml, only if no other compiler is present,
when Spack tries to initialize automatically the compiler
configuration.
2025-02-28 23:34:36 +01:00
Massimiliano Culpo
57b8167ead
Spec: relax a few type-hints to accept a Sequence
2025-02-28 23:34:35 +01:00
Massimiliano Culpo
aa10284a0a
Flatten the default store projection
2025-02-28 23:34:35 +01:00