[flang-dev] Does LLVM/Flang support compile LAPACK now on windows?

Jerry J via flang-dev flang-dev at lists.llvm.org
Sun Jan 9 05:33:16 PST 2022

*Hi Flang-Dev*

*we try to compile openblas on windows ,we use CLang64 Flang to compile but
it failed when compile LAPACK of OpenBlas. I have asked help from Openblas
communtity, and as they said:*

There are two different Flang: LLVM/Flang and Classic Flang.
The one packaged on MSYS2/clang64 is the LLVM one. which couldn't generate
binary code and is also not supported by CMake.
MSYS2/mingw-w64 doesn't have Classic Flang

so I want to make sure whether their answer is correct? thansk a lot!

it seems flang-new.exe lack cc1 tool, so I use f18,but it still failed
C:\msys64\clang64\bin>flang-new.exe -cc1
error: unknown integrated tool '-cc1'. Valid tools include '-fc1'.

C:\msys64\clang64\bin>f18.exe -cc1
Enter Fortran source
Use EOF character (^D) to end file

*Compile failure info:*
-- The Fortran compiler identification is unknown
in function main':
undefined reference to WinMain'
collect2.exe: error: ld returned 1 exit status
execvp(gfortran) failed:
-- Detecting Fortran compiler ABI info
CMake Error: Error required internal CMake variable not set, cmake may not
be built correctly.
Missing variable is:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/flang-dev/attachments/20220109/7d90e0e9/attachment.html>

More information about the flang-dev mailing list