error when compiling with ghc 9.12.3-rc2 and new unsupported version of llvm
Summary
error when compiling with new unsupported version of llvm
Steps to reproduce
% ghc -O2 -fllvm <anyHaskellFile>.hs
Loaded package environment from /Users/gcolpitts/.ghc/aarch64-darwin-9.12.2.20251110/environments/default
[1 of 2] Compiling Main ( prob214ff.hs, prob214ff.o ) [Missing object file]
<no location info>: warning: [GHC-66599]
GHC was not configured with a supported LLVM toolchain
Make sure you have installed LLVM between [13 and 20) and reinstall GHC to ensure -fllvm works
<no location info>: error:
Warning: Couldn't figure out LLVM version!
Make sure you have installed LLVM between [13 and 20)
Failed to detect LLVM version!
Make sure LLVM is installed correctly.
We will try though...
<no location info>: error: LLVM Optimiser: could not execute:
Expected behavior
I expect it to detect the llvm version since configure did:
% ./configure
...
checking for llc... llc
checking llc version (21.1.5) is between 13 and 20... no
configure: We only support llvm 13 upto 20 (non-inclusive) (found 21.1.5).
...
checking opt version (21.1.5) is between 13 and 20... no
configure: We only support llvm 13 upto 20 (non-inclusive)
checking for llc... llc
checking llc version (21.1.5) is between 13 and 20... no
configure: We only support llvm 13 upto 20 (non-inclusive) (found 21.1.5).
Environment
- GHC version used: 9.12.3-rc2
Optional:
- Operating System: macOS 26.1
- System Architecture: AArch64