summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2022-08-15 10:43:39 -0700
committerGitHub <noreply@github.com>2022-08-15 10:43:39 -0700
commit43c0dac6f6716b78fc61f7737fa796b7f057e90b (patch)
treee892b4b86617eebd3eebebd04abb2ee28e7415db
parentc12446d0ead95d2869242ff273cc87d3f1ab9dcc (diff)
downloadspack-43c0dac6f6716b78fc61f7737fa796b7f057e90b.tar.gz
spack-43c0dac6f6716b78fc61f7737fa796b7f057e90b.tar.bz2
spack-43c0dac6f6716b78fc61f7737fa796b7f057e90b.tar.xz
spack-43c0dac6f6716b78fc61f7737fa796b7f057e90b.zip
unifyfs %oneapi: add CFLAGS=-Wno-unused-function to build environment (#32107)
-rw-r--r--share/spack/gitlab/cloud_pipelines/stacks/e4s-oneapi/spack.yaml3
-rw-r--r--var/spack/repos/builtin/packages/unifyfs/package.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/share/spack/gitlab/cloud_pipelines/stacks/e4s-oneapi/spack.yaml b/share/spack/gitlab/cloud_pipelines/stacks/e4s-oneapi/spack.yaml
index b93f7cd64a..5d747dfd8a 100644
--- a/share/spack/gitlab/cloud_pipelines/stacks/e4s-oneapi/spack.yaml
+++ b/share/spack/gitlab/cloud_pipelines/stacks/e4s-oneapi/spack.yaml
@@ -177,6 +177,7 @@ spack:
- turbine
- umap
- umpire
+ - unifyfs
- upcxx
- veloc
- vtk-m ~openmp # can't build +openmp w/ %oneapi: https://github.com/spack/spack/issues/31830
@@ -210,7 +211,6 @@ spack:
#- py-warpx@22.05 ^warpx dims=2 # adios2
#- py-warpx@22.05 ^warpx dims=3 # adios2
#- py-warpx@22.05 ^warpx dims=rz # adios2
- #- unifyfs@0.9.2 # unifyfs
#- variorum@0.4.1 # variorum
# CPU BUILD FAILURES - NOTES
@@ -229,7 +229,6 @@ spack:
# ruby: limits.c:415:34: error: invalid suffix 'D' on floating constant
# rust: /usr/bin/ld: /opt/intel/oneapi/compiler/2022.1.0/linux/bin-llvm/../compiler/lib/intel64_lin/libimf.a(libm_feature_flag.o): in function `__libm_feature_flag_init': libm_feature_flag.c:(.text+0x25): undefined reference to `__intel_cpu_feature_indicator_x'
# scr: scr_globals.h:81:10: fatal error: 'spath_mpi.h' file not found: #include "spath_mpi.h"
- # unifyfs: client/src/unifyfs.c:1502:7: error: unused function 'next_page_align' [-Werror,-Wunused-function]
# variorum: ld: Intel/CMakeFiles/variorum_intel.dir/msr_core.c.o:(.bss+0x0): multiple definition of `g_platform'; CMakeFiles/variorum.dir/config_architecture.c.o:(.bss+0x0): first defined here
# vtk-m: clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
diff --git a/var/spack/repos/builtin/packages/unifyfs/package.py b/var/spack/repos/builtin/packages/unifyfs/package.py
index 9ee3b034a5..07908481ca 100644
--- a/var/spack/repos/builtin/packages/unifyfs/package.py
+++ b/var/spack/repos/builtin/packages/unifyfs/package.py
@@ -84,6 +84,8 @@ class Unifyfs(AutotoolsPackage):
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98266
if "%gcc@11" in self.spec:
env.append_flags("CFLAGS", "-Wno-array-bounds")
+ if self.spec.satisfies("%oneapi"):
+ env.append_flags("CFLAGS", "-Wno-unused-function")
def configure_args(self):
spec = self.spec