[Bug jit/100096] libgccjit.so.0: Cannot write-enable text segment: Permission denied on NetBSD 9.1

swilde@sha-bang.de gcc-bugzilla@gcc.gnu.org
Mon Jun 27 08:28:25 GMT 2022


Sascha Wilde <swilde@sha-bang.de> changed:

           What    |Removed                     |Added
         Resolution|FIXED                       |---
             Status|RESOLVED                    |UNCONFIRMED
            Version|10.2.0                      |12.1.0

--- Comment #29 from Sascha Wilde <swilde@sha-bang.de> ---
Unfortunately the problem is still not fully resolved.
When bootstrapping the compiler (tested with 12.1 on NetBSD 9.2) libintl is
still build without -fPIC, however, when manually rebuilding libintl it is
correctly without any changes to the Makefile:

gmake BOOT_CFLAGS='-O' -j2 bootstrap   # wrong result, due to libintl w/o -fPIC
cd intl
gmake -j2 clean
gmake -j2  # builds a sane libintl with -fPIC
cd ..
gmake BOOT_CFLAGS='-O' -j2  # now results in a woring compiler and libgccjit.so

No idea why that is, but it's fully reproachable...

More information about the Gcc-bugs mailing list