Re: darcs w^x trouble
Hi, On Thu, Sep 01, 2016 at 10:27:24AM +0200, Karel Gardas wrote: > I'm not sure if USE_WXNEEDED is also applicable to Haskell-based > ports. Please forget my previous mail ;-) Actually it is applicable, because at least haskell programs using Setup.l?hs (i.e. cabal) are linked with the ld-wrapper script. And for darcs, the W^X violations comes from the ghc runtime, but via some c bits in devel/hs-mmap, which is only used by darcs, so I hope darcs is the only haskell program which this problem. Ciao, Kili
Re: darcs w^x trouble
Hi, On Thu, Sep 01, 2016 at 10:27:24AM +0200, Karel Gardas wrote: > I'm not sure if USE_WXNEEDED is also applicable to Haskell-based > ports. Looking at /usr/local/lib/ghc/settings, it isn't. My latest changed to lang/ghc (rev. 1.141 of lang/ghc/Makefile) added USE_WXNEEDED = Yes and removed the explicit -Wl,-z,wxneeded from CONF_GCC_LINKER_OPTS_STAGE{1,2}. The latter was probably wrong. I'll check this tomorrow and revert the removal of the explicit -Wl,-z,wxneeded if necessary. Sorry for the inconvenience. Ciao, Kili
Re: darcs w^x trouble
I'm not sure if USE_WXNEEDED is also applicable to Haskell-based ports. Anyway, this is more generally GHC's issue than darcs one, as the issue arise from the GHC's runtime library probably. I would recommend to read "Haskell wxneeded" thread on this mailing list for more information about the issue. On Thu, Sep 1, 2016 at 8:36 AM, Francisco de Borja Lopez Riowrote: > Hi everybody. > > Installed a fresh snapshot: > > kern.version=OpenBSD 6.0-current (GENERIC) #2210: Mon Aug 22 09:14:34 MDT 2016 > > Installed darcs from packages: > > pkg_add -i darcs > > Every time I try to run "darcs record" (to record some changes in a local > repo): > > darcs: internal error: setExecutable: failed to protect 0x0x2242c5000 > > (GHC version 7.10.3 for x86_64_unknown_openbsd) > Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug > > Abort trap (core dumped) > > And in the logs I can see: > > darcs(11893): mprotect W^X violation > > Some other commands seem to work just fine (darcs init/add/clone/pull...) > > This is a testing env, just a single / partition, marked with wxallowed: > > /dev/wd0a on / type ffs (local, wxallowed) > > Afterwards, I added "USE_WXNEEDED = yes" to /usr/ports/devel/darcs/Makefile > and I built darcs from ports. Same result. > > There is no MAINTAINER set for this port, anybody that can help a bit with > this? > > Regards. > > -- > > "Do nothing which is of no use." - Miyamoto Musashi > - > Francisco de Borja Lopez Rio (bo...@codigo23.net) > Soluciones Informaticas Codigo23 S.L.U. > http://www.codigo23.net >
darcs w^x trouble
Hi everybody. Installed a fresh snapshot: kern.version=OpenBSD 6.0-current (GENERIC) #2210: Mon Aug 22 09:14:34 MDT 2016 Installed darcs from packages: pkg_add -i darcs Every time I try to run "darcs record" (to record some changes in a local repo): darcs: internal error: setExecutable: failed to protect 0x0x2242c5000 (GHC version 7.10.3 for x86_64_unknown_openbsd) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Abort trap (core dumped) And in the logs I can see: darcs(11893): mprotect W^X violation Some other commands seem to work just fine (darcs init/add/clone/pull...) This is a testing env, just a single / partition, marked with wxallowed: /dev/wd0a on / type ffs (local, wxallowed) Afterwards, I added "USE_WXNEEDED = yes" to /usr/ports/devel/darcs/Makefile and I built darcs from ports. Same result. There is no MAINTAINER set for this port, anybody that can help a bit with this? Regards. -- "Do nothing which is of no use." - Miyamoto Musashi - Francisco de Borja Lopez Rio (bo...@codigo23.net) Soluciones Informaticas Codigo23 S.L.U. http://www.codigo23.net