armv7l-unknown-linux-gnueabihf is missing from llvm-targets
While trying to build GHC 8.4.2, we face the following error:
[15143s] ghc-stage1: panic! (the 'impossible' happened)
[15143s] (GHC version 8.4.2 for arm-unknown-linux):
[15143s] Failed to lookup the datalayout for armv7l-unknown-linux-gnueabihf; available targets: ["i386-unknown-windows","i686-unknown-windows","x86_64-unknown-windows","arm-unknown-linux-gnueabihf","armv6-unknown-linux-gnueabihf","armv7-unknown-linux-gnueabihf","aarch64-unknown-linux-gnu","aarch64-unknown-linux","armv7a-unknown-linux-gnueabi","i386-unknown-linux-gnu","i386-unknown-linux","x86_64-unknown-linux-gnu","x86_64-unknown-linux","armv7-unknown-linux-androideabi","aarch64-unknown-linux-android","arm-unknown-nto-qnx-eabi","i386-apple-darwin","x86_64-apple-darwin","armv7-apple-ios","aarch64-apple-ios","i386-apple-ios","x86_64-apple-ios"]
So, we should add armv7l-unknown-linux-gnueabihf to ./utils/llvm-targets/gen-data-layout.sh and regenerate llvm-targets file.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.4.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |