Opened 2 years ago

Closed 2 years ago

#10882 closed bug (fixed)

Fix target triple for Arm

Reported by: erikd Owned by:
Priority: normal Milestone: 7.10.3
Component: Compiler Version: 7.10.2
Keywords: Cc: bgamari
Operating System: Linux Architecture: arm
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: #7608 Differential Rev(s):
Wiki Page:

Description

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.

Change History (3)

comment:1 Changed 2 years ago by erikd

Summary: Fix target tripe for ArmFix target triple for Arm

comment:2 Changed 2 years ago by thomie

#7608 is related.

comment:3 Changed 2 years ago by erikd

Resolution: fixed
Status: newclosed

This was fixed as part of #10375 with commit 933adc0f/ghc.

Note: See TracTickets for help on using tickets.