[GHC] #12539: Possible typo causes Stack and Cabal installs to fail

GHC ghc-devs at haskell.org
Thu Aug 25 20:24:03 UTC 2016


#12539: Possible typo causes Stack and Cabal installs to fail
-------------------------------------+-------------------------------------
           Reporter:  ConorIA        |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Linux
       Architecture:                 |   Type of failure:  Compile-time
  Unknown/Multiple                   |  crash
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Hi, I have been trying to use https://github.com/thriqon/pandoc-docker or
 to add pandoc to https://github.com/mitchty/alpine-ghc.

 However, in both cases, install commands are running into an issue with
 the '-nopie' flag passed to GCC.

 The gist of the error thrown when using wither Cabal or Stack is:

 {{{
 <no location info>:
 Warning: Couldn't figure out linker information!
 Make sure you're using GNU ld, GNU gold or the built in OS X linker, etc.
 gcc: error: unrecognized command line option '-nopie'; did you mean '-no-
 pie'?
 )
 }}}

 I am not sure where the error is, as I am really a non-expert. But the gcc
 linking option is "-no-pie", so if there is indeed an option "-nopie"
 being passed, it seems like it is a typo.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12539>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list