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

From: Mathias Picker <>
Date: Sat, 04 Feb 2023 09:17:27 UTC
iTurns out I had somethng in /etc/src.conf that I didn’t think of 
(never actually used it):


commenting this out resulted in a sucessful make run with the 
exact same src checkout.

Looking at my current bhyverun.c I also no longer see that ’int 
vcpu’ on line 1270.

I’ll recompile everything with WITH_BHYVE_SNAPSHOT="YES" again 
this weekend and report if it’s still there.

Thanks for looking into this,


Dimitry Andric <> writes:

> [[PGP Signed Part:Undecided]]
> On 21 Jan 2023, at 19:55, Mathias Picker 
> <> wrote:
>> 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.
> ...
>> --- all_subdir_usr.sbin/bhyve ---
>> /usr/src/usr.sbin/bhyve/bhyverun.c:1270:6: error: unused 
>> variable 'vcpu' [-Werror,-Wunused-variable]
>>       int vcpu;
>>           ^
> I've looked at both the stable/13 and main branches, but in 
> neither of
> them is line 1270 a line with the contents 'int vcpu;'. So I 
> think
> something is wrong with your checkout.
> How exactly did you "switch to stable/13"? And what does "git 
> status"
> report?
> -Dimitry
> [[End of PGP Signed Part]]

Mathias Picker                        

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