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

Support LLVM >=14 #251

Closed
starmonger999 opened this issue Feb 16, 2023 · 1 comment
Closed

Support LLVM >=14 #251

starmonger999 opened this issue Feb 16, 2023 · 1 comment

Comments

@starmonger999
Copy link

Hi, I'm trying to install a library that depends on this package on a device with LLVM version 15.0.7
but I run into this LLVM error:

cabal install haskell-src-exts
Resolving dependencies...
Build profile: -w ghc-8.10.7 -O1
In order, the following will be built (use -v for more details):
 - happy-1.20.1.1 (exe:happy) (requires download & build)
 - haskell-src-exts-1.23.1 (lib) (requires download & build)
Downloading  happy-1.20.1.1
Downloaded   happy-1.20.1.1
Downloading  haskell-src-exts-1.23.1
Starting     happy-1.20.1.1 (exe:happy)
Downloaded   haskell-src-exts-1.23.1
Building     happy-1.20.1.1 (exe:happy)

Failed to build exe:happy from happy-1.20.1.1.
Build log (
/data/data/com.termux/files/home/.cabal/logs/ghc-8.10.7/happy-1.20.1.1-e-happy-e3835f5a8bc4cfed8b05a516b79a9ed3bc57fcb3b120fdca9731d68be8c1ee25.log
):
Configuring executable 'happy' for happy-1.20.1.1..
Preprocessing executable 'happy' for happy-1.20.1.1..
Building executable 'happy' for happy-1.20.1.1..
[ 1 of 19] Compiling AbsSyn           ( src/AbsSyn.lhs, dist/build/happy/happy-tmp/AbsSyn.o )
You are using an unsupported version of LLVM!
Currently only 9 to 14 is supported. System LLVM version: 15.0.7
We will try though...
Cannot specify -O# and --passes=/--foo-pass, use -passes='default<O#>,other-pass'
`opt' failed in phase `LLVM Optimiser'. (Exit code: 1)
cabal: Failed to build exe:happy from happy-1.20.1.1 (which is required by
haskell-src-exts-1.23.1). See the build log above for details.

which seems to imply that newer llvm versions aren't supported.

@andreasabel
Copy link
Member

@starmonger999 wrote:

Build profile: -w ghc-8.10.7 -O1

I'd try a newer GHC, which is more likely to support recent LLVM versions.

@andreasabel andreasabel reopened this Feb 22, 2023
@andreasabel andreasabel closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants