[GHC] #10376: arm/linux linking failure

GHC ghc-devs at haskell.org
Wed Sep 9 11:40:03 UTC 2015


#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


More information about the ghc-tickets mailing list