buildworld fails with bhyverun.c:1270:6 unused variable???

From: Mathias Picker <>
Date: Sat, 21 Jan 2023 18:55:05 UTC
I have this for some time, had no time to look into this, but 
today I deleted /usr/src, fetched source again, switched to 
stable/13, did a su -l root, removed /etc/make.conf and rebuild, 
same error.

Searching through this list I found nothing. So… I really have no 
idea where to look???

bhyverun.o is build like this:
--- bhyverun.o ---
cc -target x86_64-unknown-freebsd13.1 
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -
pipe -fno-common -march=native 
-I/usr/src/usr.sbin/bhyve/../../contrib/lib9p -I/usr/src/sys 
sys/dev/e1000 -I/usr/src/sys/dev/mii 
-I/usr/src/contrib/libucl/include -DWITHOUT_CAPSICUM -DBHYV
E_SNAPSHOT -fPIE -g -MD  -MF.depend.bhyverun.o -MTbhyverun.o 
-std=gnu99 -Wno-format-zero-length -fstack-protector-strong 
headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
variable -Wno-error=unused-but-set-variable 
-Wno-tautological-compare -Wno-unused-value 
-Wno-parentheses-equality -Wno-unused-func
tion -Wno-enum-conversion -Wno-unused-local-typedef 
-Wno-address-of-packed-member -Wno-switch -Wno-switch-enum 
arameter  -Qunused-arguments    -c 
/usr/src/usr.sbin/bhyve/bhyverun.c -o bhyverun.o

Error looks like this:
--- all_subdir_usr.sbin/bhyve ---
/usr/src/usr.sbin/bhyve/bhyverun.c:1270:6: error: unused variable 
'vcpu' [-Werror,-Wunused-variable]
        int vcpu;
1 error generated.
*** [bhyverun.o] Error code 1

make[4]: stopped in /usr/src/usr.sbin/bhyve
--- all_subdir_secure ---

make[2]: stopped in /usr/src
--- all_subdir_usr.sbin ---

make[2]: stopped in /usr/src
--- all_subdir_tests ---

make[3]: stopped in /usr/src/tests

make[2]: stopped in /usr/src
--- all_subdir_usr.bin ---

make[2]: stopped in /usr/src
--- all_subdir_lib ---

make[3]: stopped in /usr/src/lib

make[2]: stopped in /usr/src

make[1]: stopped in /usr/src

make: stopped in /usr/src

Any tips or hints where to look welcome!



P.S. Will now build without -j 8 over night.

$ git remote -v
origin (fetch)
origin (push)
$ git status
On branch stable/13
Your branch is up to date with 'origin/stable/13'.

nothing to commit, working tree clean
$ git rev-parse HEAD

Mathias Picker                        

virtual earth Gesellschaft für Wissens re/prä sentation mbH           HRB126870               Westendstr. 142
089 / 1250 3943