FortranCInterface: Not working in LAPACK with xlc/xlf
Recently I am trying to compile LAPACK with xlc/xlf compiler and I ran into the same issue as shown here cmake lapack (EDIT: alternate link)
I am using LAPACK https://github.com/Reference-LAPACK/lapack/releases/tag/v3.9.0 and compiling on a Linux system with Power9 CPU as:
cmake ../ -DCMAKE_C_COMPILER=.../xl/16.1.1-6/xlC/16.1.1/bin/xlc -DBUILD_SHARED_LIBS=ON \
-DCMAKE_Fortran_COMPILER=.../xl/16.1.1-6/xlf/16.1.1/bin/xlf -DCMAKE_INSTALL_PREFIX=$HOME/opt/lapack \
-DLAPACKE=ON -DUSE_OPTIMIZED_BLAS=ON -DCBLAS=ON -DLAPACKE_WITH_TMG=ON
Thank you for looking into this.
Edited by Brad King