-
Notifications
You must be signed in to change notification settings - Fork 13
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
LLVM errors when building on macOS-latest
with ghc-{8.10,9.0}
.
#77
Comments
macOS
with ghc-{8.10,9.0}
.macOS-latest
with ghc-{8.10,9.0}
.
E.g. I looked at Last successful run: macos-12 20240418.1 https://github.com/jonathanknowles/monoidmap/actions/runs/8837441351/job/24266315402#step:1:9 Maybe it is the switch from amd64 to arm64 that breaks things. You could fix the runner to @jonathanknowles Have you tried patching your workflows with an explicit LLVM installation step? I would be curious if that fixed the problem. |
In the case of Cabal, we did see some failures due to missing LLVM on the new MacOS runners and that was one of several reasons we rolled back to |
Many thanks for commenting so quickly @andreasabel!
My apologies -- here's a more direct link to the actual failure: https://github.com/jonathanknowles/monoidmap/actions/runs/8861721580/job/24341958036#step:7:277 (I've also updated all the links in the "example action failures" section to link to the precise parts that failed.) |
@andreasabel wrote:
@ulysses4ever wrote:
Thanks! I can confirm that rolling back to
According to the table below (source) (I did try to build with |
@andreasabel wrote:
I did very briefly experiment with this, but didn't succeed yet. (https://github.com/jonathanknowles/haskell-example/actions/runs/8905557298/job/24456432075?pr=40) |
@jonathanknowles : I noticed in your experiment some non-idiomatic ways to handle the environment, see my comments at jonathanknowles/haskell-example@ce66f88. |
I am reproducing the failure now on the local CI here: https://github.com/haskell-actions/setup/actions/runs/8941784591/job/24562918002 |
Installing LLVM 12 on macos-14 did not help, or I did not do it correctly: https://github.com/andreasabel/gha-test/actions/runs/8942210516/job/24564290977 |
As a temporary workaround for: haskell-actions/setup#77
As a temporary workaround for: haskell-actions/setup#77
As a temporary workaround for: haskell-actions/setup#77
As a temporary workaround for: haskell-actions/setup#77
As a temporary workaround for: haskell-actions/setup#77
As a temporary workaround for: haskell-actions/setup#77
As a temporary workaround for: haskell-actions/setup#77
As a temporary workaround for: haskell-actions/setup#77
For what it's worth, I've tried similar approaches and it didn't work either |
Work around haskell-actions/setup#77
This has been failing since 2024-05-03: https://github.com/haskell/directory/actions/runs/9152501865/job/25160038949 Error: [S-9443] No setup information found for ghc-8.4.4 on your platform. This probably means a GHC binary distribution has not yet been added for OS key macosx-aarch64. Supported versions: ghc-8.10.5, ghc-8.10.6, ghc-8.10.7, ghc-9.0.2, ghc-9.2.1, ghc-9.2.2, ghc-9.2.3, ghc-9.2.4, ... haskell-actions/setup#77
Signed-off-by: Mihai Maruseac <[email protected]>
Signed-off-by: Mihai Maruseac <[email protected]>
Signed-off-by: Mihai Maruseac <[email protected]>
Signed-off-by: Mihai Maruseac <[email protected]>
Signed-off-by: Mihai Maruseac <[email protected]>
Signed-off-by: Mihai Maruseac <[email protected]>
I have gotten this to work on the mono-traversable repo snoyberg/mono-traversable#226 |
Here is my attempt to run actions with GHC 8.10.7 and 9.0.2 on macos-14: minoki/haskell-floating-point@8566b63 - name: Install LLVM
run: |
brew install llvm@12
echo "OPT=$(brew --prefix llvm@12)/bin/opt" >> "${GITHUB_ENV}"
echo "LLC=$(brew --prefix llvm@12)/bin/llc" >> "${GITHUB_ENV}"
if: ${{ matrix.os == 'macos-14' && (matrix.ghc == '8.10.7' || matrix.ghc == '9.0.2') }}
- name: Workaround for a problem with GHC 9.0.2 on Arm Mac
run: echo "C_INCLUDE_PATH=`xcrun --show-sdk-path`/usr/include/ffi" >> "${GITHUB_ENV}"
if: ${{ matrix.os == 'macos-14' && matrix.ghc == '9.0.2' }}
- uses: haskell-actions/setup@v2
... The points are:
|
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
ghc-9.0
ghc-9.2
ghc-9.4
ghc-9.6
ghc-9.8
Building with
cabal-3.10.3.0
.Known workarounds
macOS-13
instead ofmacOS-latest
.Issue
On affected OS platform and GHC versions, there are LLVM-related build failures similar to the following:
Note that the LLVM error appears for whatever dependency
cabal
is attempting to build first. (It's not specific toStateVar
.)Example action failures
The text was updated successfully, but these errors were encountered: