hpx: Add conflict with some GCC versions and +rocm due to valarray bug (#38297)

* hpx: Add conflict with some GCC versions and +rocm due to valarray bug

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103022

* remove conflict for %gcc@11.1.0 since there is none

---------

Co-authored-by: eugeneswalker <eugenesunsetwalker@gmail.com>
This commit is contained in:
Mikael Simberg 2023-06-22 09:38:45 +02:00 committed by GitHub
parent f35fcee6be
commit ace20c5d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,6 +177,14 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage):
# both include a fix. # both include a fix.
conflicts("boost@:1.77.0", when="@:1.7 +rocm") conflicts("boost@:1.77.0", when="@:1.7 +rocm")
# libstdc++ has a broken valarray in some versions that clang/hipcc refuses
# to compile:
# https://github.com/spack/spack/issues/38104
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103022
conflicts("%gcc@9.1:9.4", when="+rocm")
conflicts("%gcc@10.1:10.3", when="+rocm")
conflicts("%gcc@11.2", when="+rocm")
# boost 1.73.0 build problem with HPX 1.4.0 and 1.4.1 # boost 1.73.0 build problem with HPX 1.4.0 and 1.4.1
# https://github.com/STEllAR-GROUP/hpx/issues/4728#issuecomment-640685308 # https://github.com/STEllAR-GROUP/hpx/issues/4728#issuecomment-640685308
depends_on("boost@:1.72.0", when="@:1.4") depends_on("boost@:1.72.0", when="@:1.4")