Skip to content

Fix target triple for Arm

LLVM IR code generated by GHC on Arm (Debian) uses a target triple of "arm-linux-gnueabi" which according the LLVM people is something like ARMv4 with software float.

Clang on the other hand generates IR code with a target triple of "armv6-linux-gnueablhf" which is ARMv6 and hardware float so it works on the original Raspberry Pi.

GHC should either use the same target triple as Clang or at least make it configurable.

Trac metadata
Trac field Value
Version 7.10.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC bgamari
Operating system
Architecture
Edited by erikd
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information