Commit Graph

39314 Commits

Author SHA1 Message Date
Massimiliano Culpo
d0d77d253d (To be revisited) compiler: add cc, cxx, and fortran properties
These properties are implemented in the same way in each compiler
package, at least for external specs. So, push the implementation
to the base class for now.

This needs to be revisited, to make the base class less dependent
on C, C++, and Fortran.
2025-01-11 13:57:51 +01:00
Massimiliano Culpo
762d4fd7d5 Fix print in spack compiler info 2025-01-11 13:57:51 +01:00
Harmen Stoppels
90d2034d8b delete redundant spack.concretize.CHECK_COMPILER_EXISTENCE 2025-01-11 13:57:50 +01:00
Massimiliano Culpo
f1958fbd7e Raise UnsupportedCompilerFlag when a flag is not supported 2025-01-11 13:57:50 +01:00
Massimiliano Culpo
254f5c920b Remove SPACK_COMPILER_SPEC from the environment 2025-01-11 13:57:50 +01:00
Massimiliano Culpo
23bd090436 (TO BE REMOVED) pipelines: "tee" configuration, for better logging 2025-01-11 13:57:49 +01:00
Massimiliano Culpo
19a4171c38 pipelines: update devtools-aarch64 2025-01-11 13:57:49 +01:00
Massimiliano Culpo
d3176767a0 pipelines: relax requirements on e4s-oneapi 2025-01-11 13:57:48 +01:00
Massimiliano Culpo
41bb68a623 Update pipeline configurations
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:57:48 +01:00
Massimiliano Culpo
eaf4483db7 Prepend compiler wrappers path last, so we don't risk finding externals 2025-01-11 13:57:47 +01:00
Massimiliano Culpo
37704c5708 solver: temporarily enforce compilers to be externals 2025-01-11 13:57:47 +01:00
Massimiliano Culpo
de24715e05 Remove rule already accounted for by the gcc package 2025-01-11 13:57:47 +01:00
Massimiliano Culpo
35dea05048 dyninst: add missing dependencies 2025-01-11 13:57:46 +01:00
Massimiliano Culpo
a69cf5b9ad builtin: minimal fix for _get_host_config_path 2025-01-11 13:57:46 +01:00
Massimiliano Culpo
1da005f6bd mpich, openmpi: fix setting up dependent build environment 2025-01-11 13:57:45 +01:00
Massimiliano Culpo
787f7d7729 builtin: fix for Windows pipelines 2025-01-11 13:57:45 +01:00
Massimiliano Culpo
bb90d02d90 builtin: changes to packages 2025-01-11 13:57:44 +01:00
Massimiliano Culpo
cf34db4676 Allow different target flags for different compilers 2025-01-11 13:57:44 +01:00
Massimiliano Culpo
bddd41aa26 unit-test: make Spec.compiler behavior stricter
Now the adaptor will raise if the Spec has no C, C++,
or Fortran compiler.
2025-01-11 13:57:43 +01:00
Massimiliano Culpo
db2d077e2c Remove a test that should fail according to concretization rules 2025-01-11 13:57:43 +01:00
Massimiliano Culpo
8f96ac3d03 Add a unit-test for satisfies and __getitem__ semantic 2025-01-11 13:57:43 +01:00
Massimiliano Culpo
2fd89f7e59 Add a unit-test for compiler self-dependencies 2025-01-11 13:57:42 +01:00
Massimiliano Culpo
c6fb85eed5 Exempt "compilers" and "runtimes" from default requirements 2025-01-11 13:57:42 +01:00
Massimiliano Culpo
33cf8d3f5e unit-tests: mark a few tests as xfail, or skip, for now
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:57:41 +01:00
Massimiliano Culpo
c595a7008d Fix setting SPACK_TARGET_ARGS for concrete specs 2025-01-11 13:57:41 +01:00
Massimiliano Culpo
591b659242 unit-test: fix reading Cray manifest files 2025-01-11 13:57:40 +01:00
Massimiliano Culpo
99d8f2ddbd unit-tests: fix most unit tests to account for the new model
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:57:40 +01:00
Massimiliano Culpo
673703a17d Fix setting SPACK_TARGET_ARGS for concrete specs 2025-01-11 13:57:39 +01:00
Massimiliano Culpo
2017dfea4c Fix concretization of julia
That package depends on llvm as a library, and the rule on compatible
targets for compilers was getting in the way.
2025-01-11 13:57:39 +01:00
Massimiliano Culpo
df464681bf Modify Spec.short_spec to remove compiler info 2025-01-11 13:57:38 +01:00
Massimiliano Culpo
b6ce34607e Make Spec.compiler behavior stricter
Now the adaptor will raise if the Spec has no C, C++,
or Fortran compiler.
2025-01-11 13:57:38 +01:00
Massimiliano Culpo
10479101fa asp: fix intel-oneapi-compilers-classic 2025-01-11 13:57:38 +01:00
Massimiliano Culpo
eb270afa0c Spec.__contains__: traverse only lin/run + direct build 2025-01-11 13:57:34 +01:00
Massimiliano Culpo
7edcc4da88 Exempt "compilers" and "runtimes" from default requirements 2025-01-11 13:29:02 +01:00
Massimiliano Culpo
a316f23d79 Allow self concretization to bootstrap compilers 2025-01-11 13:29:02 +01:00
Massimiliano Culpo
92d96d747c Add more constraint to providers 2025-01-11 13:29:01 +01:00
Massimiliano Culpo
96b54ec59c Fix for duplicate glibc in concretization 2025-01-11 13:29:01 +01:00
Massimiliano Culpo
da06ad3303 Improve reporting when bootstrapping from source
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:29:00 +01:00
Massimiliano Culpo
058e19458d Improve error messages for statically checked specs
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:29:00 +01:00
Massimiliano Culpo
575483d041 spec: implemented direct satisfy semantic
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:59 +01:00
Massimiliano Culpo
e6729320f7 Fixup binary cache reuse
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:59 +01:00
Massimiliano Culpo
9ca0bd5d97 Write adaptors for CompilerSpec and Compiler
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:59 +01:00
Massimiliano Culpo
cdc8236169 Make BaseConfiguration pickleable
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:58 +01:00
Massimiliano Culpo
f8ab75244b Fix reading Cray manifest files
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:58 +01:00
Massimiliano Culpo
f211789087 (WIP) Fix LMod module generation
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:57 +01:00
Massimiliano Culpo
09ccccbec5 (WIP) Remove deprecated argument for Spec.format
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:57 +01:00
Massimiliano Culpo
45e1573a17 fixup: spec copies compiler annotation
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:56 +01:00
Massimiliano Culpo
352442a383 Restore bootstrapping from binaries
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:56 +01:00
Massimiliano Culpo
543f830f57 Restore bootstrapping from sources
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:55 +01:00
Massimiliano Culpo
94fdd3dc5b spec: change semantic of __getitem__
Now __getitem__ can pick items in the transitive link/run graph,
or from direct build dependencies.

Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-01-11 13:28:55 +01:00