[GHC] #13771: ghc fails to build on openSUSE
GHC
ghc-devs at haskell.org
Tue May 30 19:07:22 UTC 2017
#13771: ghc fails to build on openSUSE
--------------------------------------+---------------------------------
Reporter: msuchanek | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.2
Keywords: | Operating System: Linux
Architecture: x86_64 (amd64) | Type of failure: None/Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
--------------------------------------+---------------------------------
The gcc on openSUSE defaults to -pie and reverting that fixes the build.
The gcc does not set any define with -pie or -no-pie.
The -no-pie flag is detected but the build fails nonetheless.
Adding the PIC flag does not help:
{{{
@@ -3650,6 +3650,7 @@ default_PIC :: Platform -> [GeneralFlag]
default_PIC platform =
case (platformOS platform, platformArch platform) of
(OSDarwin, ArchX86_64) -> [Opt_PIC]
+ (OSLinux, ArchX86_64) -> [Opt_PIC]
(OSOpenBSD, ArchX86_64) -> [Opt_PIC] -- Due to PIE support in
-- OpenBSD since 5.3 release
-- (1 May 2013) we need to
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13771>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list