[GHC] #11578: Fix GHC on AArch64/Arm64
GHC
ghc-devs at haskell.org
Tue Feb 16 10:22:29 UTC 2016
#11578: Fix GHC on AArch64/Arm64
-------------------------------------+-------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: aarch64
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------
Comment (by mfox):
@erikd I think you asked the right question and that the answer will
surprise you; It doesn't work work with LLVM-3.7. It works without it:
{{{
$ ghc-7.10.3 hello.hs -v
Glasgow Haskell Compiler, Version 7.10.3, stage 2 booted by GHC version
7.6.3
Using binary package database:
/usr/local/lib/ghc-7.10.3/package.conf.d/package.cache
wired-in package ghc-prim mapped to ghc-
prim-0.4.0.0-6cdc86811872333585fa98756aa7c51e
wired-in package integer-gmp mapped to integer-
gmp-1.0.0.0-3c8c40657a9870f5c33be17496806d8d
wired-in package base mapped to
base-4.8.2.0-5d0e263086c09cf3ebc7a9920d2d76e9
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-
haskell-2.10.0.0-62d3bceb439078a9e90ea2eeb7044dd9
wired-in package ghc mapped to ghc-7.10.3-2084d337d2d83783183750b0af41d317
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags:
wired-in package ghc-prim mapped to ghc-
prim-0.4.0.0-6cdc86811872333585fa98756aa7c51e
wired-in package integer-gmp mapped to integer-
gmp-1.0.0.0-3c8c40657a9870f5c33be17496806d8d
wired-in package base mapped to
base-4.8.2.0-5d0e263086c09cf3ebc7a9920d2d76e9
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-
haskell-2.10.0.0-62d3bceb439078a9e90ea2eeb7044dd9
wired-in package ghc mapped to ghc-7.10.3-2084d337d2d83783183750b0af41d317
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Chasing dependencies:
Chasing modules from: *hello.hs
Stable obj: []
Stable BCO: []
Ready for upsweep
[NONREC
ModSummary {
ms_hs_date = 2016-02-14 17:59:53.924557751 UTC
ms_mod = Main,
ms_textual_imps = [import (implicit) Prelude]
ms_srcimps = []
}]
*** Deleting temp files:
Deleting:
compile: input file hello.hs
Created temporary directory: /tmp/ghc22305_0
*** Checking old interface for Main:
[1 of 1] Compiling Main ( hello.hs, hello.o )
*** Parser:
*** Renamer/typechecker:
*** Desugar:
Result size of Desugar (after optimization)
= {terms: 7, types: 5, coercions: 0}
*** Simplifier:
Result size of Simplifier = {terms: 7, types: 5, coercions: 0}
*** Tidy Core:
Result size of Tidy Core = {terms: 7, types: 5, coercions: 0}
writeBinIface: 1 Names
writeBinIface: 14 dict entries
*** CorePrep:
Result size of CorePrep = {terms: 9, types: 6, coercions: 0}
*** Stg2Stg:
*** CodeGen:
*** C Compiler:
/usr/bin/gcc -fno-stack-protector -DNO_REGS -DUSE_MINIINTERPRETER -x c
/tmp/ghc22305_0/ghc_2.hc -o /tmp/ghc22305_0/ghc_4.s -Wimplicit -fwrapv
-fno-strict-aliasing -S '-D__GLASGOW_HASKELL__=710' -include
/usr/local/lib/ghc-7.10.3/include/ghcversion.h -I.
-I/usr/local/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM/include
-I/usr/local/lib/ghc-7.10.3/integ_2aU3IZNMF9a7mQ0OzsZ0dS/include
-I/usr/local/lib/ghc-7.10.3/include
*** Assembler:
/usr/bin/gcc -fno-stack-protector -DNO_REGS -DUSE_MINIINTERPRETER -I. -x
assembler -c /tmp/ghc22305_0/ghc_4.s -o hello.o
Upsweep completely successful.
*** Deleting temp files:
Deleting: /tmp/ghc22305_0/ghc_5.rsp /tmp/ghc22305_0/ghc_4.s
/tmp/ghc22305_0/ghc_3.c /tmp/ghc22305_0/ghc_2.hc /tmp/ghc22305_0/ghc_1.hc
Warning: deleting non-existent /tmp/ghc22305_0/ghc_3.c
Warning: deleting non-existent /tmp/ghc22305_0/ghc_1.hc
link: linkables are ...
LinkableM (2016-02-16 10:21:57.144557751 UTC) Main
[DotO hello.o]
Linking hello ...
*** C Compiler:
/usr/bin/gcc -fno-stack-protector -DNO_REGS -DUSE_MINIINTERPRETER -c
/tmp/ghc22305_0/ghc_6.c -o /tmp/ghc22305_0/ghc_7.o
-I/usr/local/lib/ghc-7.10.3/include
*** C Compiler:
/usr/bin/gcc -fno-stack-protector -DNO_REGS -DUSE_MINIINTERPRETER -c
/tmp/ghc22305_0/ghc_9.s -o /tmp/ghc22305_0/ghc_10.o
-I/usr/local/lib/ghc-7.10.3/include
*** Linker:
/usr/bin/gcc -fno-stack-protector -DNO_REGS -DUSE_MINIINTERPRETER '-fuse-
ld=gold' -Wl,-z,noexecstack -Wl,--no-as-needed -o hello hello.o
-L/usr/local/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM
-L/usr/local/lib/ghc-7.10.3/integ_2aU3IZNMF9a7mQ0OzsZ0dS
-L/usr/local/lib/ghc-7.10.3/ghcpr_8TmvWUcS1U1IKHT0levwg3
-L/usr/local/lib/ghc-7.10.3/rts /tmp/ghc22305_0/ghc_7.o
/tmp/ghc22305_0/ghc_10.o -Wl,-u,ghczmprim_GHCziTypes_Izh_static_info
-Wl,-u,ghczmprim_GHCziTypes_Czh_static_info
-Wl,-u,ghczmprim_GHCziTypes_Fzh_static_info
-Wl,-u,ghczmprim_GHCziTypes_Dzh_static_info
-Wl,-u,base_GHCziPtr_Ptr_static_info
-Wl,-u,ghczmprim_GHCziTypes_Wzh_static_info
-Wl,-u,base_GHCziInt_I8zh_static_info
-Wl,-u,base_GHCziInt_I16zh_static_info
-Wl,-u,base_GHCziInt_I32zh_static_info
-Wl,-u,base_GHCziInt_I64zh_static_info
-Wl,-u,base_GHCziWord_W8zh_static_info
-Wl,-u,base_GHCziWord_W16zh_static_info
-Wl,-u,base_GHCziWord_W32zh_static_info
-Wl,-u,base_GHCziWord_W64zh_static_info
-Wl,-u,base_GHCziStable_StablePtr_static_info
-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info
-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info
-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info
-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info -Wl,-u,base_GHCziPtr_Ptr_con_info
-Wl,-u,base_GHCziPtr_FunPtr_con_info
-Wl,-u,base_GHCziStable_StablePtr_con_info
-Wl,-u,ghczmprim_GHCziTypes_False_closure
-Wl,-u,ghczmprim_GHCziTypes_True_closure
-Wl,-u,base_GHCziPack_unpackCString_closure
-Wl,-u,base_GHCziIOziException_stackOverflow_closure
-Wl,-u,base_GHCziIOziException_heapOverflow_closure
-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure
-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnMVar_closure
-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnSTM_closure
-Wl,-u,base_GHCziIOziException_allocationLimitExceeded_closure
-Wl,-u,base_ControlziExceptionziBase_nestedAtomically_closure
-Wl,-u,base_GHCziEventziThread_blockedOnBadFD_closure
-Wl,-u,base_GHCziWeak_runFinalizzerBatch_closure
-Wl,-u,base_GHCziTopHandler_flushStdHandles_closure
-Wl,-u,base_GHCziTopHandler_runIO_closure
-Wl,-u,base_GHCziTopHandler_runNonIO_closure
-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure
-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure
-Wl,-u,base_GHCziConcziSync_runSparks_closure
-Wl,-u,base_GHCziConcziSignal_runHandlersPtr_closure
-lHSbase-4.8.2.0-HQfYBxpPvuw8OunzQu6JGM -lHSinteger-
gmp-1.0.0.0-2aU3IZNMF9a7mQ0OzsZ0dS -lHSghc-
prim-0.4.0.0-8TmvWUcS1U1IKHT0levwg3 -lHSrts -lCffi -lgmp -lm -lrt -ldl
link: done
*** Deleting temp files:
Deleting: /tmp/ghc22305_0/ghc_12.rsp /tmp/ghc22305_0/ghc_11.rsp
/tmp/ghc22305_0/ghc_10.o /tmp/ghc22305_0/ghc_9.s /tmp/ghc22305_0/ghc_8.rsp
/tmp/ghc22305_0/ghc_7.o /tmp/ghc22305_0/ghc_6.c
*** Deleting temp dirs:
Deleting: /tmp/ghc22305_0
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11578#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list