flang-compiler / flang

Flang is a Fortran language front-end designed for integration with LLVM.
Other
801 stars 137 forks source link

Compiling Flang for LLVM 11 #958

Open dnoan opened 3 years ago

dnoan commented 3 years ago

I am trying to build Flang on the new Apple M1 architecture, however it doesn't work since LLVM 10 doesn't support Apple Silicon. I see that classic-flang-llvm-project has an LLVM 11 tag and I am trying to build Flang for it (LLVM 11 does support Apple Silicon), however it doesn't work. Any suggestions on how to get Flang work with LLVM 11 (or LLVM 10 on Apple Silicon)?

bryanpkc commented 3 years ago

The current supported branch in classic-flang-llvm-project is release_100 (LLVM 10). Supporting another release on top of LLVM 9 and LLVM 10 requires stakeholders to invest more resources on an on-going basis, and we haven't made that decision yet. We can discuss this at the next Classic Flang call.

kiranchandramohan commented 3 years ago

@dnoan in case you have missed this, classic-flang-llvm-project now has a release_11x branch for supporting llvm 11.

dnoan commented 3 years ago

@kiranchandramohan, thanks! This is great news.

watersb commented 3 years ago

A "Release Candidate" flang-classic 12:

https://lists.llvm.org/pipermail/flang-dev/2021-March/000655.html

I am totally new to this project and do not know the status of this RC. But my Apple M1 is encouraged.

kiranchandramohan commented 3 years ago

If you have patches for M1 we will be happy to accept. There is an x86 macOS PR (https://github.com/flang-compiler/flang/pull/592)