
#11834: GHC master, not compiling on Archlinux -------------------------------------+------------------------------------- Reporter: nitrix | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: (Linking) | Resolution: | 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: | -------------------------------------+------------------------------------- Description changed by nitrix: @@ -15,0 +15,3 @@ + This has bitten Go developers recently as well: + https://go-review.googlesource.com/#/c/18359/ + New description: /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 the compiler supports -no-pie, then conditionally add that to flags that are used. I tried and got somewhere lost in compiler/main/DynFlags.hs. (Completely new to GHC) This has bitten Go developers recently as well: https://go-review.googlesource.com/#/c/18359/ 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#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler