Hi,

How do I set the wxneeded flag for Haskell? I tried the following in my
cabal file, but to no avail:

  ghc-options: -optl -Wl,-z,wxneeded
  ld-options: -optl -Wl,-z,wxneeded

I have also tried the ld-options flag without the '-optl'. When I try
to compile my yesod app I get the following:

  ghc: mmap 630784 bytes at 0x40000000: Not supported
  ghc: Try specifying an address with +RTS -xm<addr> -RTS
  ghc: panic! (the 'impossible' happened)
    (GHC version 7.10.3 for x86_64-unknown-openbsd):
loadObj "/usr/local/lib/ghc/ghcpr_8TmvWUcS1U1IKHT0levwg3/HSghc-prim-0.4.0.0-8TmvWUcS1U1IKHT0levwg3.o": failed


For the record, my partition is mounted wxallowed.

$ sysctl kern.version
kern.version=OpenBSD 6.0-current (GENERIC.MP) #2335: Sun Aug 7 20:50:41 MDT 2016
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP


Kind regards,


Martijn Rijkeboer

Reply via email to