https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100096
--- Comment #8 from David Malcolm <dmalcolm at gcc dot gnu.org> --- (In reply to Sascha Wilde from comment #6) > However, please note that > "Cannot write-enable text segment: Permission denied" > is the more pressing problem, as it prevents libgccjit to be used > on NetBSD with default security settings. It would be good to know exactly where that error message is being emitted. If you add: gcc_jit_context_set_logfile (ctxt, stderr, 0, 0); to the test code (e.g. immediately after the call to gcc_jit_context_acquire), libgccjit ought to spew out a copious amount of logging (see https://gcc.gnu.org/onlinedocs/jit/internals/index.html#example-of-log-file) Can you attach the log you get please?