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

GHC ghc-devs at haskell.org
Thu Jul 2 13:21:36 UTC 2015


#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


More information about the ghc-tickets mailing list