9.0.1-rc1 build panics on Fedora armv7
Summary
I haven't been able to investigate yet but on Fedora armv7hl ghc is panicking in the middle of building 9.0.1-rc1, for Fedora 32, 33, and Rawhide.
Steps to reproduce
The srpm is temporarily available from https://kojipkgs.fedoraproject.org//work/tasks/4616/58904616/ghc-9.0.0.20201227-97.module_f33%2B10901%2B88a8c7b4.src.rpm or can be generated from https://src.fedoraproject.org/rpms/ghc/tree/9.0 (commit 2e7b080e)
Gives https://kojipkgs.fedoraproject.org//work/tasks/4887/58904887/build.log [3.6MB,temporary link]:
"inplace/bin/ghc-stage1" -static -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Iincludes/dist-install/build -Irts -Irts/dist/build -DCOMPILING_RTS -DFS_NAMESPACE=rts -this-unit-id rts -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/Apply.cmm -o rts/dist/build/Apply.o
ghc-stage1: panic! (the 'impossible' happened)
(GHC version 9.0.0.20201227:
Failed to lookup LLVM data layout
Target: armv7l-unknown-linux
Available targets:
i386-unknown-windows
i686-unknown-windows
x86_64-unknown-windows
arm-unknown-linux-gnueabi
arm-unknown-linux-gnueabihf
arm-unknown-linux-musleabihf
armv6-unknown-linux-gnueabihf
armv6-unknown-linux-musleabihf
armv6l-unknown-linux-gnueabihf
armv6l-unknown-linux-musleabihf
armv7-unknown-linux-gnueabihf
armv7-unknown-linux-musleabihf
armv7a-unknown-linux-gnueabi
armv7a-unknown-linux-musleabi
armv7a-unknown-linux-gnueabihf
armv7a-unknown-linux-musleabihf
armv7l-unknown-linux-gnueabi
armv7l-unknown-linux-musleabi
armv7l-unknown-linux-gnueabihf
armv7l-unknown-linux-musleabihf
aarch64-unknown-linux-gnu
aarch64-unknown-linux-musl
aarch64-unknown-linux
i386-unknown-linux-gnu
i386-unknown-linux-musl
i386-unknown-linux
i686-unknown-linux-gnu
i686-unknown-linux-musl
i686-unknown-linux
x86_64-unknown-linux-gnu
x86_64-unknown-linux-musl
x86_64-unknown-linux
x86_64-unknown-linux-android
armv7-unknown-linux-androideabi
aarch64-unknown-linux-android
armv7a-unknown-linux-androideabi
powerpc64le-unknown-linux-gnu
powerpc64le-unknown-linux-musl
powerpc64le-unknown-linux
s390x-ibm-linux
i386-apple-darwin
x86_64-apple-darwin
arm64-apple-darwin
armv7-apple-ios
aarch64-apple-ios
i386-apple-ios
x86_64-apple-ios
amd64-portbld-freebsd
x86_64-unknown-freebsd
aarch64-unknown-freebsd
armv6-unknown-freebsd-gnueabihf
armv7-unknown-freebsd-gnueabihf
arm-unknown-nto-qnx-eabi
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/GHC/Utils/Outputable.hs:1230:37 in ghc:GHC.Utils.Outputable
pprPanic, called at compiler/GHC/CmmToLlvm.hs:113:20 in ghc:GHC.CmmToLlvm
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
make[1]: *** [rts/ghc.mk:322: rts/dist/build/Apply.o] Error 1
Expected behavior
Build to complete successfully like it did for 9.0.1-alpha1
Environment
- GHC version used: 8.8.4
Optional:
- Operating System: Fedora
- System Architecture: armv7hl
Recent Fedora ghc build results can be found at https://koji.fedoraproject.org/koji/packageinfo?packageID=ghc