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

#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

#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 Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by ezyang): Could you paste both (1) the invocation of GHC with all the flags being given, and (2) the command line flags passed to ld which are causing it to break? (1) should be possible by passing `-v` to Cabal/Stack, and (2) should be possible by passing `-v` to GHC (you might need a higher level of verbosity than this.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12539#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 Resolution: | 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: | -------------------------------------+------------------------------------- Changes (by ConorIA): * Attachment "stackerror.log" added. log of the stack error -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12539 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by ConorIA): I think that this issue may have been a porting error. I hadn't realized that https://github.com/thriqon/pandoc-docker was using an older port (7.10), which the porter has deprecated. In fact, if I use cabal install on https://github.com/mitchty/alpine-ghc (which uses 8.1), then the install works perfectly. The stack commands are failing on the latter (I've attached a log of the errors). I consider the issue resolved insofar as I was able to install pandoc on an alpine docker image. If nothing stands out in the attached log, I'll go ahead and mark this as resolved or invalid. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12539#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12539: Possible typo causes Stack and Cabal installs to fail -------------------------------------+------------------------------------- Reporter: ConorIA | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: invalid | 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: | -------------------------------------+------------------------------------- Changes (by ezyang): * status: new => closed * resolution: => invalid Comment: In GHC's source code, we pass no_pie, not nopie. So yeah, let's mark this invalid. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12539#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12539: Possible typo causes Stack and Cabal installs to fail -------------------------------------+------------------------------------- Reporter: ConorIA | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: invalid | 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: | -------------------------------------+------------------------------------- Comment (by mitchty): As a note to any future people from google, this was a typo on my part in how I had been getting ghc 7.10 ported to alpine linux and is correct as being invalid as a ghc bug. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12539#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC