On 2015-04-12 11:22, Mark Montague wrote:
It is possible to build and run MoarVM on systems that prohibit executable stacks? [...] Here's what happens when I try to build Rakudo Star:

$ perl Configure.pl --backend=moar --gen-moar
[... lots of output ...]
Building NQP ...
/usr/bin/perl Configure.pl --prefix=/home/markmont/rakudo/rakudo-star-2015.03/install --backends=moar --make-install /home/markmont/rakudo/rakudo-star-2015.03/install/bin/moar: error while loading shared libraries: libmoar.so: cannot enable executable stack as shared object requires: Permission denied

It looks like executable stacks are not needed. If MoarVM is built with LDFLAGS="-Wl,-z,noexecstack" then even with JIT enabled everything seems fine. The SELinux execmem permission is still needed, regardless of whether JIT is enabled, but this seems reasonable to me (unlike execstack).

Linking with -Wl,-z,noexecstack is an inelegant solution -- the cause of the problem and better solutions are discussed at


I'm going to do some more testing and investigation before considering whether submitting a patch is a reasonable thing to do. "make rakudo-spectest" passes except for S26-documentation/why-trailing.t although that test succeeds when run manually, and I'd also like to look into this issue before proposing any changes. I'll move this to the perl6-compiler list at that point.

Sorry for the noise.

  Mark Montague

Reply via email to