[GHC] #10597: Linking of binaries fails on OpenBSD due to PIE support

#10597: Linking of binaries fails on OpenBSD due to PIE support -------------------------------------+------------------------------------- Reporter: kgardas | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Keywords: | Operating System: OpenBSD Architecture: x86_64 | Type of failure: Building GHC (amd64) | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------------- OpenBSD provides since 5.3 version IIRC support for position independent executables (PIE) by default. This means GNU C bundled with OpenBSD by default compiles position independent code. GHC does not count with this and generates normal code and while linking linker complains about wrong relocations in linked object code. Example: {{{ /usr/bin/ld: utils/hsc2hs/dist-install/build/Main.o: relocation R_X86_64_32S against `stg_upd_frame_info' can not be used when making a shared object; recompile with -fPIC }}} This of course means that build of GHC itself fails. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10597 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10597: Linking of binaries fails on OpenBSD due to PIE support -------------------------------------+------------------------------------- Reporter: kgardas | Owner: kgardas Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: OpenBSD | Architecture: x86_64 Type of failure: Building GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by kgardas): * owner: => kgardas -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10597#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10597: Linking of binaries fails on OpenBSD due to PIE support -------------------------------------+------------------------------------- Reporter: kgardas | Owner: kgardas Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: OpenBSD | Architecture: x86_64 Type of failure: Building GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by kgardas): * status: new => patch Comment: Fix provided in Phab:D1027 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10597#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10597: Linking of binaries fails on OpenBSD due to PIE support -------------------------------------+------------------------------------- Reporter: kgardas | Owner: kgardas Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: OpenBSD | Architecture: x86_64 Type of failure: Building GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by rwbarton): This is presumably fine, but the discussion at #9007 is relevant too. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10597#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10597: Linking of binaries fails on OpenBSD due to PIE support
-------------------------------------+-------------------------------------
Reporter: kgardas | Owner: kgardas
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: OpenBSD | Architecture: x86_64
Type of failure: Building GHC | (amd64)
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by Karel Gardas

#10597: Linking of binaries fails on OpenBSD due to PIE support -------------------------------------+------------------------------------- Reporter: kgardas | Owner: kgardas Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: OpenBSD | Architecture: x86_64 Type of failure: Building GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by kgardas): * status: patch => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10597#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10597: Linking of binaries fails on OpenBSD due to PIE support -------------------------------------+------------------------------------- Reporter: kgardas | Owner: kgardas Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: fixed | Keywords: Operating System: OpenBSD | Architecture: x86_64 Type of failure: Building GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-7.10` as 0cfee536e5261af873485e7150be4a4ac26cd0e3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10597#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC