[GHC] #10464: ghc 7.8.4 on arm

GHC ghc-devs at haskell.org
Fri Jul 24 17:50:53 UTC 2015


#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


More information about the ghc-tickets mailing list