Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake error CBLAS/CMakeLists.txt wrt FortranCInterface #349

Closed
KineticTheory opened this issue Aug 12, 2019 · 1 comment · Fixed by #355
Closed

CMake error CBLAS/CMakeLists.txt wrt FortranCInterface #349

KineticTheory opened this issue Aug 12, 2019 · 1 comment · Fixed by #355
Milestone

Comments

@KineticTheory
Copy link
Contributor

In version 3.8, there is a bug in CBLAS/CMakeLists.txt that causes CMake to fail for certain compiler types (IBM XL, newer Cray CCE). The solution is:

--- a/CBLAS/CMakeLists.txt
+++ b/CBLAS/CMakeLists.txt
@@ -12,8 +12,8 @@
                          SYMBOL_NAMESPACE "F77_")
 if(NOT FortranCInterface_GLOBAL_FOUND OR NOT FortranCInterface_MODULE_FOUND)
   message(WARNING "Reverting to pre-defined include/lapacke_mangling.h")
-  configure_file(include/lapacke_mangling_with_flags.h.in
-                 ${LAPACK_BINARY_DIR}/include/lapacke_mangling.h)
+  configure_file(include/cblas_mangling_with_flags.h.in
+                 ${LAPACK_BINARY_DIR}/include/cblas_mangling.h)
 endif()
 
 include_directories(include ${LAPACK_BINARY_DIR}/include)

This appears to be simple mistake. A patch file to fix this issue is provided by (and tested by) spack.

@julielangou
Copy link
Contributor

@KineticTheory , could you please open a Pull request please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants