[GHC] #10801: ghc returns ExitFailure (-4) when compiling some projects on ARM
GHC
ghc-devs at haskell.org
Fri Aug 28 17:52:45 UTC 2015
#10801: ghc returns ExitFailure (-4) when compiling some projects on ARM
-------------------------------------+-------------------------------------
Reporter: Ansible | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: arm
Type of failure: Compile-time | Test Case: compile a
crash | big web project
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by Ansible):
The build with gold was going ok but it got stuck on this:
{{{
[bburdette at alarmpi epicmeatbars]$ cabal -j1 install stm-chans-3.0.0.4
Resolving dependencies...
[1 of 1] Compiling Main ( /home/bburdette/code/stm-
chans-3.0.0.4/dist/dist-sandbox-491b648e/setup/setup.hs,
/home/bburdette/code/stm-chans-3.0.0.4/dist/dist-sandbox-
491b648e/setup/Main.o )
Linking /home/bburdette/code/stm-chans-3.0.0.4/dist/dist-sandbox-
491b648e/setup/setup ...
/usr/local/bin/ld: error:
/usr/lib/ghc-7.8.2/process-1.2.0.0/libHSprocess-1.2.0.0.a(runProcess.o):
requires unsupported dynamic reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
/usr/local/bin/ld: error:
/usr/lib/ghc-7.8.2/rts-1.0/libHSrts_thr.a(GetTime.thr_o): requires
unsupported dynamic reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
collect2: error: ld returned 1 exit status
Failed to install stm-chans-3.0.0.4
}}}
I tried adding -fPIC to the stm-chan cabal, but I think it wants me to do
that with process and rts. I found process-1.2.0 so I can add-source that
to my sandbox with -fPIC enabled, but I don't know where rts is. I didn't
see it on hackage. Maybe its part of ghc?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10801#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list