unifyfs %oneapi: add CFLAGS=-Wno-unused-function to build environment (#32107)

This commit is contained in:
eugeneswalker 2022-08-15 10:43:39 -07:00 committed by GitHub
parent c12446d0ea
commit 43c0dac6f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -84,6 +84,8 @@ def setup_build_environment(self, env):
# 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