netlib-scalapack: fix build error with oneapi compilers (#33539)
/home/xsdk/spack.x/lib/spack/env/oneapi/icx -DAdd_ -Dscalapack_EXPORTS -I/opt/intel/oneapi/mpi/2021.7.0/include -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/scalapack.dir/BLACS/SRC/dgamx2d_.c.o -MF CMakeFiles/scalapack.dir/BLACS/SRC/dgamx2d_.c.o.d -o CMakeFiles/scalapack.dir/BLACS/SRC/dgamx2d_.c.o -c /home/xsdk/spack.x/spack-stage/spack-stage-netlib-scalapack-2.2.0-uj3jepiowz5is4hmdmjrzjltetgdr3lx/spack-src/BLACS/SRC/dgamx2d_.c /home/xsdk/spack.x/spack-stage/spack-stage-netlib-scalapack-2.2.0-uj3jepiowz5is4hmdmjrzjltetgdr3lx/spack-src/BLACS/SRC/igsum2d_.c:154:7: error: call to undeclared function 'BI_imvcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] BI_imvcopy(Mpval(m), Mpval(n), A, tlda, bp->Buff); ^
This commit is contained in:
parent
b89f6226f8
commit
f74a6a4503
@ -87,7 +87,7 @@ def cmake_args(self):
|
||||
# Work around errors of the form:
|
||||
# error: implicit declaration of function 'BI_smvcopy' is
|
||||
# invalid in C99 [-Werror,-Wimplicit-function-declaration]
|
||||
if spec.satisfies("%clang") or spec.satisfies("%apple-clang"):
|
||||
if spec.satisfies("%clang") or spec.satisfies("%apple-clang") or spec.satisfies("%oneapi"):
|
||||
c_flags.append("-Wno-error=implicit-function-declaration")
|
||||
|
||||
options.append(self.define("CMAKE_C_FLAGS", " ".join(c_flags)))
|
||||
|
Loading…
Reference in New Issue
Block a user