[GHC] #11834: GHC master, not compiling on Archlinux

GHC ghc-devs at haskell.org
Thu Apr 14 02:20:51 UTC 2016


#11834: GHC master, not compiling on Archlinux
-------------------------------------+-------------------------------------
           Reporter:  nitrix         |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:
  (Linking)                          |
           Keywords:                 |  Operating System:  Linux
       Architecture:  x86_64         |   Type of failure:  Building GHC
  (amd64)                            |  failed
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 /usr/bin/ld: -r and -pie may not be used together

 http://lpaste.net/159726

 It appears on Archlinux, with GCC version 5.3.0, there's an implicit -pie
 flag passed to `ld`. I looked into compiler/main/DriverPipeline.hs at
 joinObjectFiles, it is unconditionally doing "-Wl,-r", thus the error
 above.

 One suggested fix on IRC is to modify getCompilerInfo to know if it
 supports -no-pie, then add it to the flags that are used. I tried and got
 somewhere lost in compiler/main/DynFlags.hs. (Completely new to GHC)

 Hopefully someone can figure it out, it seems important for development
 and I really want to get involved :)

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


More information about the ghc-tickets mailing list