Hello,
I feel pretty silly having to post this + I guess there are some things I still could try towards resolving this... but, I find it odd that I can't find any other reference to this error anywhere. During the make buildkernel stage of compiling 14-CURRENT, I keep getting this error:
One annoying thing about this is that, grepping the entire source code, this is the only instance I come up with of 'MAP_WXORX' (so, yes, it is definitely undeclared but ... why is it in there at all + why doesn't anyone else seem to have this difficulty?).
I should also note that I am compiling the HardenedBSD version of 14-CURRENT although I'm fairly certain I tried FreeBSD 14-CURRENT before, too, and got stuck on the same error.
I must be missing something so obvious. Who wants to make me feel stupid? :>
Full error transcript:
I feel pretty silly having to post this + I guess there are some things I still could try towards resolving this... but, I find it odd that I can't find any other reference to this error anywhere. During the make buildkernel stage of compiling 14-CURRENT, I keep getting this error:
Code:
/usr/src2/sys/kern/kern_procctl.c:852:19: error: use of undeclared identifier 'MAP_WXORX'
map->flags &= ~MAP_WXORX;
^
/usr/src2/sys/kern/kern_procctl.c:890:27: error: use of undeclared identifier 'MAP_WXORX'
if ((vm->vm_map.flags & MAP_WXORX) != 0)
One annoying thing about this is that, grepping the entire source code, this is the only instance I come up with of 'MAP_WXORX' (so, yes, it is definitely undeclared but ... why is it in there at all + why doesn't anyone else seem to have this difficulty?).
I should also note that I am compiling the HardenedBSD version of 14-CURRENT although I'm fairly certain I tried FreeBSD 14-CURRENT before, too, and got stuck on the same error.
I must be missing something so obvious. Who wants to make me feel stupid? :>
Full error transcript:
Code:
Building /usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME/kern_resource.o
Building /usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME/kern_rmlock.o
Building /usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME/kern_rwlock.o
--- kern_procctl.o ---
/usr/src2/sys/kern/kern_procctl.c:852:19: error: use of undeclared identifier 'MAP_WXORX'
map->flags &= ~MAP_WXORX;
^
/usr/src2/sys/kern/kern_procctl.c:890:27: error: use of undeclared identifier 'MAP_WXORX'
if ((vm->vm_map.flags & MAP_WXORX) != 0)
^
2 errors generated.
*** [kern_procctl.o] Error code 1
make[2]: stopped in /usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME
.ERROR_TARGET='kern_procctl.o'
.ERROR_META_FILE='/usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME/kern_procctl.o.meta'
.MAKE.LEVEL='2'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose curdirOk=yes'
_ERROR_CMD='/usr/local/bin/ccache cc -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src2/amd64.amd64/tmp -B/usr/obj/usr/src2/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. -I/usr/src2/sys -I/usr/src2/sys/contrib/ck/include -I/usr/src2/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src2/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src2/sys/x86/include -fdebug-prefix-map=./i386=/usr/src2/sys/i386/include -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector-strong -mretpoline -ftrivial-auto-var-init=uninitialized -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -mno-aes -mno-avx -std=iso9899:1999 -Werror /usr/src2/sys/kern/kern_procctl.c; ctfconvert -L VERSION -g kern_procctl.o;'
.CURDIR='/usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME'
.MAKE='make'
.OBJDIR='/usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME'
.TARGETS='all'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='amd64'
MACHINE_ARCH='amd64'
MAKEOBJDIRPREFIX=''
MAKESYSPATH='/usr/src2/share/mk'
MAKE_VERSION='20220726'
PATH='/usr/obj/usr/src2/amd64.amd64/tmp/bin:/usr/obj/usr/src2/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src2/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src2/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src2/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src2/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src2/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/usr/src2'
OBJTOP='/usr/src2'
.MAKE.MAKEFILES='/usr/src2/share/mk/sys.mk /usr/src2/share/mk/local.sys.env.mk /usr/src2/share/mk/src.sys.env.mk /etc/src-env.conf /usr/src2/share/mk/bsd.mkopt.mk /usr/src2/share/mk/src.sys.obj.mk /usr/src2/share/mk/auto.obj.mk /usr/src2/share/mk/bsd.suffixes.mk /etc/make.conf /usr/src2/share/mk/local.sys.mk /usr/src2/share/mk/src.sys.mk /etc/src.conf /usr/src2/share/mk/bsd.hardenedbsd.mk Makefile /usr/src2/sys/conf/kern.pre.mk /usr/src2/share/mk/bsd.own.mk /usr/src2/share/mk/bsd.opts.mk /usr/src2/share/mk/bsd.cpu.mk /usr/src2/share/mk/bsd.compiler.mk /usr/src2/share/mk/bsd.endian.mk /usr/src2/share/mk/bsd.linker.mk /usr/src2/sys/conf/kern.opts.mk /usr/src2/sys/conf/kern.post.mk /usr/src2/sys/conf/kern.mk /dev/null'
.PATH='. /usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME'
1 error
make[2]: stopped in /usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME
.ERROR_TARGET='kern_procctl.o'
.ERROR_META_FILE='/usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME/kern_procctl.o.meta'
.MAKE.LEVEL='2'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose curdirOk=yes'
_ERROR_CMD='/usr/local/bin/ccache cc -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src2/amd64.amd64/tmp -B/usr/obj/usr/src2/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. -I/usr/src2/sys -I/usr/src2/sys/contrib/ck/include -I/usr/src2/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src2/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src2/sys/x86/include -fdebug-prefix-map=./i386=/usr/src2/sys/i386/include -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector-strong -mretpoline -ftrivial-auto-var-init=uninitialized -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -mno-aes -mno-avx -std=iso9899:1999 -Werror /usr/src2/sys/kern/kern_procctl.c; ctfconvert -L VERSION -g kern_procctl.o;'
.CURDIR='/usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME'
.MAKE='make'
.OBJDIR='/usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME'
.TARGETS='all'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='amd64'
MACHINE_ARCH='amd64'
MAKEOBJDIRPREFIX=''
MAKESYSPATH='/usr/src2/share/mk'
MAKE_VERSION='20220726'
PATH='/usr/obj/usr/src2/amd64.amd64/tmp/bin:/usr/obj/usr/src2/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src2/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src2/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src2/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src2/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src2/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/usr/src2'
OBJTOP='/usr/src2'
.MAKE.MAKEFILES='/usr/src2/share/mk/sys.mk /usr/src2/share/mk/local.sys.env.mk /usr/src2/share/mk/src.sys.env.mk /etc/src-env.conf /usr/src2/share/mk/bsd.mkopt.mk /usr/src2/share/mk/src.sys.obj.mk /usr/src2/share/mk/auto.obj.mk /usr/src2/share/mk/bsd.suffixes.mk /etc/make.conf /usr/src2/share/mk/local.sys.mk /usr/src2/share/mk/src.sys.mk /etc/src.conf /usr/src2/share/mk/bsd.hardenedbsd.mk Makefile /usr/src2/sys/conf/kern.pre.mk /usr/src2/share/mk/bsd.own.mk /usr/src2/share/mk/bsd.opts.mk /usr/src2/share/mk/bsd.cpu.mk /usr/src2/share/mk/bsd.compiler.mk /usr/src2/share/mk/bsd.endian.mk /usr/src2/share/mk/bsd.linker.mk /usr/src2/sys/conf/kern.opts.mk /usr/src2/sys/conf/kern.post.mk /usr/src2/sys/conf/kern.mk /dev/null'
.PATH='. /usr/obj/usr/src2/amd64.amd64/sys/FBSD14-CRIME'
6445.30 real 7580.08 user 1816.20 sys
make[1]: stopped in /usr/src2
make: stopped in /usr/src2