DF-5375 / build.log
# targsim kld build (in-guest, root): # cd /root/targpwn # make KERNBUILDDIR=/usr/obj/usr/src/sys/X86_64_GENERIC # (three -Werror iterations during bring-up: targ_descr is # periph_priv.entries[1].ptr in struct ccb_hdr; cam_periph.h provides # xpt_periph; drop unused statics. Final build: clean, no warnings.) root@dfbsd# make KERNBUILDDIR=/usr/obj/usr/src/sys/X86_64_GENERIC Warning: Object directory not changed from original /root/targpwn cc -O2 -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wold-style-definition -Wmissing-include-dirs -Wno-pointer-sign -Winit-self -Wundef -Wno-unused-but-set-variable -std=gnu11 -Werror -DKLD_MODULE -nostdinc -I. -Idragonfly -I/usr/obj/usr/src/sys/X86_64_GENERIC -I/usr/obj/usr/src/sys/X86_64_GENERIC/include -Idragonfly/../include -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/X86_64_GENERIC/opt_global.h -Wold-style-declaration -fno-common -ffreestanding -fno-stack-protector -fno-strict-aliasing -fno-strict-overflow -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -mno-fp-ret-in-387 -mindirect-branch=thunk-inline -c targsim.c cc -Wl,--build-id=sha1 -Wl,--hash-style=sysv -r -Wl,-d -o targsim.ko targsim.o -rw-r--r-- 1 root wheel 15520 Oct 3 17:32 targsim.ko # PoC userland builds: cc -O0 -g -o pocNNNN pocNNNN.c (base system cc 8.3)