Skip to content

LLVM errors when building on macOS-latest with ghc-{8.10,9.0}. #77

@jonathanknowles

Description

@jonathanknowles

Hi there!

I'm not sure whether this is an issue with haskell-actions per se, but I thought it worth recording in case others are also running into the same issue.

Affected OS, GHC, and cabal version combinations

macOS-latest windows-latest ubuntu-latest
ghc-8.10 🔴 affected 🟢 unaffected 🟢 unaffected
ghc-9.0 🔴 affected 🟢 unaffected 🟢 unaffected
ghc-9.2 🟢 unaffected 🟢 unaffected 🟢 unaffected
ghc-9.4 🟢 unaffected 🟢 unaffected 🟢 unaffected
ghc-9.6 🟢 unaffected 🟢 unaffected 🟢 unaffected
ghc-9.8 🟢 unaffected 🟢 unaffected 🟢 unaffected

Building with cabal-3.10.3.0.

Known workarounds

  • Use macOS-13 instead of macOS-latest.

Issue

On affected OS platform and GHC versions, there are LLVM-related build failures similar to the following:

> cabal build all --builddir=b --only-dependencies
Building     StateVar-1.2.2 (lib)
Configuring library for StateVar-1.2.2..
Preprocessing library for StateVar-1.2.2..
Building library for StateVar-1.2.2..

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM between [9 and 13)
[1 of 1] Compiling Data.StateVar    ( src/Data/StateVar.hs, dist/build/Data/StateVar.o, dist/build/Data/StateVar.dyn_o )

<no location info>: error:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM between [9 and 13)
ghc: could not execute: opt 

Note that the LLVM error appears for whatever dependency cabal is attempting to build first. (It's not specific to StateVar.)

Example action failures

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR welcomePlease submit a PR on this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions