Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Feb 2023 10:17:27 +0100
From:      Mathias Picker <Mathias.Picker@virtual-earth.de>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: buildworld fails with bhyverun.c:1270:6 unused variable???
Message-ID:  <86zg9tbx6m.fsf@virtual-earth.de>
In-Reply-To: <B3005CE1-D31B-45B1-A1B9-1650F292229C@FreeBSD.org>
References:  <86a62bd7sf.fsf@virtual-earth.de> <B3005CE1-D31B-45B1-A1B9-1650F292229C@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
iTurns out I had somethng in /etc/src.conf that I didn=E2=80=99t think of=20
(never actually used it):

WITH_BHYVE_SNAPSHOT=3D"YES"

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

Looking at my current bhyverun.c I also no longer see that =E2=80=99int=20
vcpu=E2=80=99 on line 1270.

I=E2=80=99ll recompile everything with WITH_BHYVE_SNAPSHOT=3D"YES" again=20
this weekend and report if it=E2=80=99s still there.

Thanks for looking into this,

Mathias


Dimitry Andric <dim@FreeBSD.org> writes:

> [[PGP Signed Part:Undecided]]
> On 21 Jan 2023, at 19:55, Mathias Picker=20
> <Mathias.Picker@virtual-earth.de> wrote:
>>=20
>> I have this for some time, had no time to look into this, but=20
>> today I deleted /usr/src, fetched source again, switched to=20
>> stable/13, did a su -l root, removed /etc/make.conf and=20
>> rebuild, same error.
> ...
>> --- all_subdir_usr.sbin/bhyve ---
>> /usr/src/usr.sbin/bhyve/bhyverun.c:1270:6: error: unused=20
>> variable 'vcpu' [-Werror,-Wunused-variable]
>>       int vcpu;
>>           ^
>
> I've looked at both the stable/13 and main branches, but in=20
> neither of
> them is line 1270 a line with the contents 'int vcpu;'. So I=20
> think
> something is wrong with your checkout.
>
> How exactly did you "switch to stable/13"? And what does "git=20
> status"
> report?
>
> -Dimitry
>
> [[End of PGP Signed Part]]


--=20
Mathias Picker=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
Gesch=C3=A4ftsf=C3=BChrer
Mathias.Picker@virtual-earth.de

virtual earth Gesellschaft f=C3=BCr Wissens re/pr=C3=A4 sentation mbH
http://www.virtual-earth.de/           HRB126870
support@virtual-earth.de               Westendstr. 142
089 / 1250 3943=20=20=20=20=20=20=20=20=20=20=20=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86zg9tbx6m.fsf>