[GHC] #10376: arm/linux linking failure

#10376: arm/linux linking failure -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.11 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Other Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Tests `sigcabal01` and `sigcabal02` both fail with an error like: {{{ /usr/bin/ld.gold: warning: cannot scan executable section 1 of \ /home/erikd/ghc-upstream/testsuite/tests/cabal/sigcabal01/inst-p/lib/\ arm-linux-ghc-7.11.20150501/p_F3lh2Js8iHV9qItpHBsq0d/\ libHSp-1.0-F3lh2Js8iHV9qItpHBsq0d.a(P.o) for Cortex-A8 erratum because it has no mapping symbols. }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10376 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10376: arm/linux linking failure -------------------------------------+--------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: #10464 | Differential Revisions: -------------------------------------+--------------------------------- Changes (by thomie): * architecture: Unknown/Multiple => arm * related: => #10464 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10376#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10376: arm/linux linking failure -------------------------------------+--------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: #10464 | Differential Revisions: -------------------------------------+--------------------------------- Comment (by k-bx): Steps to reproduce in case you don't have an access to an ARM machine: 1. Get a $3.40/month [http://techcrunch.com/2015/09/02/scaleway-now- provides-crazy-cheap-virtual-private-servers-starting-at-3-40-per-month/ dedicated ARM server] (sorry if it sounds like an ad) 2. Install [https://packages.debian.org/experimental/armhf/ghc/download GHC from debian experimental] 3. {{{ # uname -a Linux arm 4.1.6-249 #1 SMP Mon Aug 31 12:34:47 UTC 2015 armv7l armv7l armv7l GNU/Linux # cabal install text # cat Main.hs {-# LANGUAGE OverloadedStrings #-} module Main where import qualified Data.Text.IO as T main :: IO () main = do T.putStrLn "hello world" # ghc -fforce-recomp Main.hs [1 of 1] Compiling Main ( Main.hs, Main.o ) Linking Main ... /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Text.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Array.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Encoding.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Error.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(IO.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Internal.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Fusion.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(CaseMapping.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Common.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Size.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Types.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(IO.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Unsafe.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Show.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Text.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Array.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Encoding.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Error.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(IO.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Internal.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Fusion.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(CaseMapping.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Common.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Size.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Types.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(IO.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Unsafe.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Show.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Text.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Array.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Encoding.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Error.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(IO.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Internal.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Fusion.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(CaseMapping.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Common.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Size.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Types.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(IO.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Unsafe.o) for Cortex-A8 erratum because it has no mapping symbols. /usr/bin/ld.gold: warning: cannot scan executable section 1 of /root/.cabal/lib/arm-linux- ghc-7.10.2/text-1.2.1.3/libHStext-1.2.1.3-1l1AN4I48k37RaQ6fm6CEh.a(Show.o) for Cortex-A8 erratum because it has no mapping symbols. }}} It compiles, just these warnings are quite painful, especially on real- world projects like the ones using yesod, there's just too much output like this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10376#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10376: arm/linux linking failure -------------------------------------+-------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: #10464 | Differential Revisions: -------------------------------------+-------------------------------- Comment (by thomie): I'm stuck at `cabal install text` {{{ # Get a $3.40/month dedicated ARM server (thanks for the tip) $ sudo add-apt-repository 'deb http://ftp.fr.debian.org/debian experimental main' # add keys from https://ftp-master.debian.org/keys.html $ sudo apt-get update $ sudo apt-get install ghc/experimental cabal-install/experimental $ cabal install text Resolving dependencies... Configuring text-1.2.1.3... Failed to install text-1.2.1.3 Build log ( /home/thomas/.cabal/logs/text-1.2.1.3.log ): cabal: Error: some packages failed to install: text-1.2.1.3 failed during the configure step. The exception was: ExitFailure (-4) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10376#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10376: arm/linux linking failure -------------------------------------+-------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: #10464 | Differential Revisions: -------------------------------------+-------------------------------- Comment (by k-bx): That's weird. Posting more-precise instructions I've just replicated (they're not very precise, but rather "almost", as I did few errors and fixes in them): {{{ ssh new-server, Ubuntu Vivid $ sudo apt-get update $ sudo apt-get dist-upgrade $ sudo apt-get install cabal-install zlib1g-dev $ wget http://ftp.de.debian.org/debian/pool/main/g/ghc/ghc_7.10.2-2_armhf.deb $ sudo dpkg -i ./ghc* $ cabal update $ cabal install cabal-install --ghc-options="-j" (crunch-crunch-crunch, including text installation) $ sudo apt-get install libghc-zlib-dev libghc-zlib-bindings-dev $ echo 'PATH=/root/.cabal/bin:$PATH' >> ~/.profile $ source ~/.profile root@arm2:~# cat TextTest.hs {-# LANGUAGE OverloadedStrings #-} import qualified Data.Text.IO as T main = T.putStrLn "Hell" $ ghc TextTest.hs (warnings here) }}} @thomie please send me your public key so that I could add it to this machine -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10376#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10376: arm/linux linking failure -------------------------------------+----------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: #10464 | Differential Rev(s): -------------------------------------+----------------------------- Comment (by thomie): @k-bx: ok, I can reproduce it now. I was using Ubuntu-14.04, which comes with llvm-3.5.0, whereas llvm-3.5.2 is needed. Starting over with a new machine and Ubuntu-15.04 solved the problem. Here's a workaround: set `library-stripping: False` in your `.cabal/config` file, and reinstall `text`. The warnings disappear. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10376#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10376: arm/linux linking failure -------------------------------------+----------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: #10464 | Differential Rev(s): -------------------------------------+----------------------------- Comment (by k-bx): @thomie thank you! It helped. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10376#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10376: arm/linux linking failure
-------------------------------------+-----------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: arm
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: #10464 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-----------------------------
Comment (by erikd):
I've just compiled GHC 7.10.2 with the
[changeset:"933adc0f31164cb651d11ecfcfe612ac429f714f/ghc" 933adc0f/ghc]:
{{{
commit 933adc0f31164cb651d11ecfcfe612ac429f714f
Author: Erik de Castro Lopo

#10376: arm/linux linking failure
-------------------------------------+-----------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: arm
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: #10464 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-----------------------------
Comment (by Ben Gamari

#10376: arm/linux linking failure
-------------------------------------+-----------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: arm
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: #10464 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-----------------------------
Comment (by Ben Gamari

#10376: arm/linux linking failure -------------------------------------+------------------------------ Reporter: erikd | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: #10464 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------ Changes (by bgamari): * status: new => closed * resolution: => fixed Comment: I believe this has been fixed with the resolution of #11205, Phab:D1599. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10376#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC