[GHC] #10464: ghc 7.8.4 on arm

#10464: ghc 7.8.4 on arm -------------------------------------+------------------------------------- Reporter: | Owner: andrewufrank | Status: new Type: bug | Milestone: Priority: normal | Version: 7.8.4 Component: Compiler | Operating System: Linux Keywords: | Type of failure: Compile-time Architecture: arm | performance bug Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------------- when compiling i get the warning /usr/bin/d.gold: warning: cannot scan executable section 1 of ..... transformers-04.3.0a... for Cortex-A8 erratum because it has no mapping symbols. there are some informations on the web on the cortex-a8 erratum, but i cannot see how i could apply them. should the compiler be recompiled? i installed from the debian distribution. the hardware is a cubietruck. i observe that compilation, especially the phase of preparing the configuration in cabal takes very long - perhaps this is related to this problem. the resulting code is ok and runs with expected speed. thank you for producing a full ghc for arm! andrew -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10464 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10464: ghc 7.8.4 on arm ---------------------------------+-------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ---------------------------------+-------------------------------- Changes (by thomie): * cc: nomeata (added) * failure: Compile-time performance bug => None/Unknown * component: Compiler => Build System Comment: From reading this [http://stackoverflow.com/questions/15247569/warning- cannot-scan-executable-section-for-cortex-a8-erratum-because-it-has-no question] on stackoverflow, I think GHC should be built with the option `STRIP_CMD = :` for your platform. The `debian/rules` file in http://http.debian.net/debian/pool/main/g/ghc/ghc_7.8.4-9.debian.tar.xz contains: {{{ ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) # echo "GhcStage1HcOpts += -DDEBUG" >> mk/build.mk # echo "GhcStage2HcOpts += -DDEBUG" >> mk/build.mk echo "SRC_HC_OPTS += -H32m -O0" >> mk/build.mk echo "GhcHcOpts += -Rghc-timing -DDEBUG" >> mk/build.mk # echo "GhcLibHcOpts += -O -dcore-lint -keep-hc-files " >> mk/build.mk echo "SplitObjs = NO" >> mk/build.mk echo "STRIP = :" >> mk/build.mk endif }}} Notice `STRIP` on the last line. That should at least be `STRIP_CMD`, ever since the following commit: commit 0481fe092fd9e274096fff1fd9885fd68805202a {{{ Author: Ian Lynagh <> Date: Wed Jun 16 16:11:08 2010 +0000 Rename some variables from FOO to FOO_CMD This fixes a problem with commands like gzip, where if $GZIP is exported in the environment, then when make runs a command it'll put the Makefile variable's value in the environment. But gzip treats $GZIP as arguments for itself, so when we run gzip it thinks we're giving it "gzip" as an argument. }}} Please open a bug with Debian, linking back to this question. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10464#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10464: ghc 7.8.4 on arm ---------------------------------+-------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ---------------------------------+-------------------------------- Comment (by nomeata): Thanks. Note that the code from `debian/rules` above is only executed when `nostrip` is enabled, which is not the default. And by default, neither `STRIP` nor `STRIP_CMD` is touched. So I wonder if there is not something that the upstream build system needs to do different. But then, the Debian build script later runs `dh_strip`, which is basically run for every package, and which removes debugging symbols, which should be safe. Other places online indicate that this might be a linker bug. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10464#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10464: ghc 7.8.4 on arm ---------------------------------+-------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ---------------------------------+-------------------------------- Comment (by nomeata): This seems to affect packages that want to use doctests, as can be seen in this build log: https://buildd.debian.org/status/fetch.php?pkg=haskell- bytes&arch=armhf&ver=0.15.0.1-2&stamp=1440503305 See also #10376. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10464#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10464: ghc 7.8.4 on arm ---------------------------------+----------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+----------------------------- Description changed by bgamari: Old description:
when compiling i get the warning /usr/bin/d.gold: warning: cannot scan executable section 1 of ..... transformers-04.3.0a... for Cortex-A8 erratum because it has no mapping symbols.
there are some informations on the web on the cortex-a8 erratum, but i cannot see how i could apply them. should the compiler be recompiled? i installed from the debian distribution. the hardware is a cubietruck. i observe that compilation, especially the phase of preparing the configuration in cabal takes very long - perhaps this is related to this problem. the resulting code is ok and runs with expected speed.
thank you for producing a full ghc for arm! andrew
New description: when compiling i get the warning {{{ /usr/bin/d.gold: warning: cannot scan executable section 1 of ..... transformers-04.3.0a... for Cortex-A8 erratum because it has no mapping symbols. }}} there are some informations on the web on the cortex-a8 erratum, but i cannot see how i could apply them. should the compiler be recompiled? i installed from the debian distribution. the hardware is a cubietruck. i observe that compilation, especially the phase of preparing the configuration in cabal takes very long - perhaps this is related to this problem. the resulting code is ok and runs with expected speed. thank you for producing a full ghc for arm! andrew -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10464#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10464: ghc 7.8.4 on arm ---------------------------------+----------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10376 | Differential Rev(s): Wiki Page: | ---------------------------------+----------------------------- Changes (by bgamari): * related: => #10376 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10464#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10464: ghc 7.8.4 on arm ---------------------------------+----------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10376 | Differential Rev(s): Wiki Page: | ---------------------------------+----------------------------- Description changed by bgamari: Old description:
when compiling i get the warning {{{ /usr/bin/d.gold: warning: cannot scan executable section 1 of ..... transformers-04.3.0a... for Cortex-A8 erratum because it has no mapping symbols. }}} there are some informations on the web on the cortex-a8 erratum, but i cannot see how i could apply them. should the compiler be recompiled? i installed from the debian distribution. the hardware is a cubietruck. i observe that compilation, especially the phase of preparing the configuration in cabal takes very long - perhaps this is related to this problem. the resulting code is ok and runs with expected speed.
thank you for producing a full ghc for arm! andrew
New description: when compiling i get the warning {{{ /usr/bin/ld.gold: warning: cannot scan executable section 1 of ..... transformers-04.3.0a... for Cortex-A8 erratum because it has no mapping symbols. }}} there are some informations on the web on the cortex-a8 erratum, but i cannot see how i could apply them. should the compiler be recompiled? i installed from the debian distribution. the hardware is a cubietruck. i observe that compilation, especially the phase of preparing the configuration in cabal takes very long - perhaps this is related to this problem. the resulting code is ok and runs with expected speed. thank you for producing a full ghc for arm! andrew -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10464#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10464: ghc 7.8.4 on arm
---------------------------------+-----------------------------
Reporter: andrewufrank | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 7.8.4
Resolution: | Keywords:
Operating System: Linux | Architecture: arm
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #10376 | Differential Rev(s):
Wiki Page: |
---------------------------------+-----------------------------
Comment (by Ben Gamari

#10464: ghc 7.8.4 on arm ---------------------------------+------------------------------ Reporter: andrewufrank | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Build System | Version: 7.8.4 Resolution: fixed | Keywords: Operating System: Linux | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10376 | Differential Rev(s): Wiki Page: | ---------------------------------+------------------------------ Changes (by bgamari): * status: new => closed * resolution: => fixed Comment: I believe this has been fixed in the resolution for #11205, Phab:D1599. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10464#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10464: ghc 7.8.4 on arm ---------------------------------+------------------------------ Reporter: andrewufrank | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.8.4 Resolution: fixed | Keywords: Operating System: Linux | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10376 | Differential Rev(s): Wiki Page: | ---------------------------------+------------------------------ Changes (by bgamari): * milestone: => 8.0.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10464#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC