Skip to content

Commit cddb328

Browse files
authored
Merge branch 'spack:develop' into add-r-rtracklayer-conflicts-deprecations
2 parents ea606df + f5642ce commit cddb328

24 files changed

Lines changed: 126 additions & 30 deletions

File tree

.ci/env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
SPACK_CHECKOUT_VERSION=c1ddfe76000468ee84120d13db12ad4f497091da
1+
SPACK_CHECKOUT_VERSION=c5f814bfb1801c7bb50bc17015ba999ab68e1e27
22
SPACK_CHECKOUT_REPO=spack/spack

repos/spack_repo/builtin/packages/blaspp/package.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class Blaspp(CMakePackage, CudaPackage, ROCmPackage):
6868
depends_on("cxx", type="build") # generated
6969

7070
depends_on("cmake@3.15.0:", type="build")
71+
depends_on("cmake@3.21:", when="@2025.05.28:", type="build")
7172
depends_on("blas")
7273
depends_on("lapack")
7374
depends_on("llvm-openmp", when="+openmp %apple-clang")
@@ -118,6 +119,11 @@ def cmake_args(self):
118119
"-DLAPACK_LIBRARIES=%s" % spec["lapack"].libs.joined(";"),
119120
]
120121

122+
# Older releases only link precompiled CUDA libraries.
123+
if spec.satisfies("@2025.05.28:+cuda") and not spec.satisfies("cuda_arch=none"):
124+
cuda_arch = spec.variants["cuda_arch"].value
125+
args.append(self.define("CMAKE_CUDA_ARCHITECTURES", ";".join(cuda_arch)))
126+
121127
if spec["blas"].name == "cray-libsci":
122128
args.append(self.define("BLA_VENDOR", "CRAY"))
123129

repos/spack_repo/builtin/packages/brigand/package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class Brigand(CMakePackage):
2525
version("1.1.0", sha256="afdcc6909ebff6994269d3039c31698c2b511a70280072f73382b26855221f64")
2626
version("1.0.0", sha256="8daf7686ff39792f851ef1977323808b80aab31c5f38ef0ba4e6a8faae491f8d")
2727

28-
depends_on("cxx", type="build") # generated
28+
depends_on("c", type="build")
29+
depends_on("cxx", type="build")
2930

3031
def cmake_args(self):
3132
args = [self.define("BUILD_TESTING", self.run_tests)]

repos/spack_repo/builtin/packages/camp/package.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class Camp(CMakePackage, CudaPackage, ROCmPackage):
9999

100100
with when("+cuda"):
101101
depends_on("cub", when="^cuda@:10")
102+
depends_on("cmake@3.18:", type="build")
102103

103104
depends_on("blt", type="build")
104105
depends_on("blt@0.7.1:", type="build", when="@2025.09.0:")
@@ -138,10 +139,7 @@ def cmake_args(self):
138139

139140
if not spec.satisfies("cuda_arch=none"):
140141
cuda_arch = spec.variants["cuda_arch"].value
141-
options.append("-DCMAKE_CUDA_ARCHITECTURES={0}".format(cuda_arch[0]))
142-
options.append("-DCUDA_ARCH=sm_{0}".format(cuda_arch[0]))
143-
flag = "-arch sm_{0}".format(cuda_arch[0])
144-
options.append("-DCMAKE_CUDA_FLAGS:STRING={0}".format(flag))
142+
options.append("-DCMAKE_CUDA_ARCHITECTURES={0}".format(";".join(cuda_arch)))
145143

146144
options.append(self.define_from_variant("ENABLE_HIP", "rocm"))
147145
if spec.satisfies("+rocm"):

repos/spack_repo/builtin/packages/clingo/package.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Clingo(CMakePackage):
2929
version("master", branch="master", submodules=True)
3030
version("spack", commit="2a025667090d71b2c9dce60fe924feb6bde8f667", submodules=True)
3131

32+
version("5.8.1", sha256="28fe78322cefb92e0f68f350777e19407d07bbb5179ca725fc6f77d538f0d19a")
3233
version("5.8.0", sha256="4ddd5975e79d7a0f8d126039f1b923a371b1a43e0e0687e1537a37d6d6d5cc7c")
3334
version(
3435
"5.7.1",
@@ -56,12 +57,14 @@ class Clingo(CMakePackage):
5657

5758
with when("@5.6:5.8,master"):
5859
depends_on("re2c@1.1.1:", type="build")
59-
# forward compat issue: reference to undefined condition 'aspif'
60-
depends_on("re2c@:3", type="build")
6160
depends_on("bison@2.5:", type="build", when="platform=linux")
6261
depends_on("bison@2.5:", type="build", when="platform=darwin")
6362
depends_on("bison@2.5:", type="build", when="platform=freebsd")
6463

64+
# Lexers use a re2c condition that 4.3+ rejects ("undefined condition 'aspif'"),
65+
# fixed upstream in 5.8.1 and master. See https://github.com/potassco/clingo/issues/591
66+
depends_on("re2c@:3", type="build", when="@5.6:5.8.0")
67+
6568
with when("@6:"):
6669
depends_on("re2c@3:", type="build")
6770
depends_on("cmake@3.22.1:", type="build")

repos/spack_repo/builtin/packages/glibmm/package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class Glibmm(AutotoolsPackage):
2020
version("2.16.0", sha256="99795b9c6e58e490df740a113408092bf47a928427cbf178d77c35adcb6a57a3")
2121
version("2.4.8", sha256="78b97bfa1d001cc7b398f76bf09005ba55b45ae20780b297947a1a71c4f07e1f")
2222

23-
depends_on("cxx", type="build") # generated
23+
depends_on("c", type="build")
24+
depends_on("cxx", type="build")
2425

2526
depends_on("libsigcpp")
2627
# https://libsigcplusplus.github.io/libsigcplusplus/index.html

repos/spack_repo/builtin/packages/hdf5/package.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,14 @@ def flag_handler(self, name, flags):
377377
# in C99:
378378
cmake_flags.append("-Wno-error=implicit-function-declaration")
379379
# Note that this flag will cause an error if building %nvhpc.
380+
if spec.satisfies("@:1.10.8 %gcc@14:"):
381+
cmake_flags.extend(
382+
[
383+
"-Wno-error=implicit-int",
384+
"-Wno-error=incompatible-pointer-types",
385+
"-Wno-error=int-conversion",
386+
]
387+
)
380388
if spec.satisfies("@:1.8.12~shared"):
381389
# More recent versions set CMAKE_POSITION_INDEPENDENT_CODE to
382390
# True and build with PIC flags.
@@ -580,6 +588,9 @@ def cmake_args(self):
580588
self.define_from_variant("HDF5_BUILD_TOOLS", "tools"),
581589
]
582590

591+
if spec.satisfies("@:1.10.8 %gcc@14:"):
592+
args.append(self.define("HDF5_DISABLE_COMPILER_WARNINGS", True))
593+
583594
# Always enable this option. This does not actually enable any
584595
# features: it only *allows* the user to specify certain combinations
585596
# of other arguments that would normally be rejected as unsupported

repos/spack_repo/builtin/packages/hdf_eos2/package.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,16 @@ def flag_handler(self, name, flags):
152152
flags.append("-Wno-error=implicit-int")
153153
flags.append("-std=gnu17")
154154

155-
# Testing shows we need one extra flag for gcc@14
156-
if self.spec.satisfies("%gcc@14:"):
155+
# Newer compilers promote -Wincompatible-pointer-types from a warning
156+
# to an error. This is not gcc-specific: clang 16+, and oneAPI's
157+
# clang-based icx, reject the same code (58 errors in EHapi/GDapi/
158+
# PTapi/SWapi.c passing 'long *' where 'int32 *' is expected).
159+
if (
160+
self.spec.satisfies("%clang@16:")
161+
or self.spec.satisfies("%apple-clang@15:")
162+
or self.spec.satisfies("%oneapi")
163+
or self.spec.satisfies("%gcc@14:")
164+
):
157165
flags.append("-Wno-error=incompatible-pointer-types")
158166
return flags, None, None
159167

@@ -180,9 +188,15 @@ def setup_build_environment(self, env: EnvironmentModifications) -> None:
180188
or self.spec.satisfies("%oneapi")
181189
or self.spec.satisfies("%gcc@14:")
182190
):
191+
# NOTE: this env.set REPLACES the cflags computed in
192+
# flag_handler above (the build uses CC=h4cc with these CFLAGS),
193+
# so every flag needed there must be repeated here.
183194
env.set(
184195
"CFLAGS",
185-
"-Wno-error=implicit-function-declaration -Wno-error=implicit-int -std=gnu17",
196+
"-Wno-error=implicit-function-declaration "
197+
"-Wno-error=implicit-int "
198+
"-Wno-error=incompatible-pointer-types "
199+
"-std=gnu17",
186200
)
187201

188202
@run_before("configure", when="@3.0")

repos/spack_repo/builtin/packages/hssp/package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class Hssp(AutotoolsPackage):
3434
version("3.0.2", sha256="76b4275c8cde120509d7920609fca983f2b04249a649d0aa802c69fd09e5f8cf")
3535
version("3.0.1", sha256="62a703d15bdfec82fdbd2a4275e1973b6a1ac6ccd4dbec75036f16faacaa9dce")
3636

37-
depends_on("cxx", type="build") # generated
37+
depends_on("c", type="build")
38+
depends_on("cxx", type="build")
3839

3940
depends_on("autoconf", type="build")
4041
depends_on("automake", type="build")

repos/spack_repo/builtin/packages/ilmbase/package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ class Ilmbase(AutotoolsPackage):
3636
url="http://download.savannah.nongnu.org/releases/openexr/ilmbase-0.9.0.tar.gz",
3737
)
3838

39-
depends_on("cxx", type="build") # generated
39+
depends_on("c", type="build")
40+
depends_on("cxx", type="build")

0 commit comments

Comments
 (0)