You need this: https://gerrit.fd.io/r/c/vpp/+/29084, and merged in stable/2009 
already.

Regards,
Yichen

From: <vpp-dev@lists.fd.io> on behalf of "Heckman, Steve" 
<steve.heck...@commscope.com>
Date: Friday, September 25, 2020 at 1:04 PM
To: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
Subject: [vpp-dev] wireguard_handoff.c:112:12: error: 'peeri' may be used 
uninitialized

I had been building in the master branch fine for a while. We need 20.09, so I 
saw that the branch was available and checked it out.

I ran onto this building on Ubuntu Focal (20.04):

$ git fetch
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 30 (delta 26), reused 6 (delta 2), pack-reused 0
Unpacking objects: 100% (30/30), 3.05 KiB | 283.00 KiB/s, done.
From https://github.com/FDio/vpp
   561ae5d17..277d402be  master      -> origin/master
   df143bf70..a26b40af9  stable/2009 -> origin/stable/2009

$ make pkg-deb
make[1]: Entering directory '/home/labuser/Development/git/vpp/build-root'
@@@@ Arch for platform 'vpp' is native @@@@
@@@@ Finding source for external @@@@
@@@@ Makefile fragment found in 
/home/labuser/Development/git/vpp/build-data/packages/external.mk @@@@
@@@@ Source found in /home/labuser/Development/git/vpp/build @@@@
@@@@ Arch for platform 'vpp' is native @@@@
@@@@ Finding source for vpp @@@@
@@@@ Makefile fragment found in 
/home/labuser/Development/git/vpp/build-data/packages/vpp.mk @@@@
@@@@ Source found in /home/labuser/Development/git/vpp/src @@@@
@@@@ Configuring external: nothing to do @@@@
@@@@ Building external: nothing to do @@@@
@@@@ Installing external: nothing to do @@@@
@@@@ Configuring vpp: nothing to do @@@@
@@@@ Building vpp in 
/home/labuser/Development/git/vpp/build-root/build-vpp-native/vpp @@@@
[11/18] Building C object 
plugins/wireguard/CMakeFiles/wireguard_plugin.dir/wireguard_handoff.c.o
FAILED: plugins/wireguard/CMakeFiles/wireguard_plugin.dir/wireguard_handoff.c.o
ccache /usr/lib/ccache/gcc-9 -DHAVE_FCNTL64 -DHAVE_GETCPU -DHAVE_MEMFD_CREATE 
-Dwireguard_plugin_EXPORTS -I/home/labuser/Development/git/vpp/src -I. 
-Iinclude -I/home/labuser/Development/git/vpp/src/plugins -Iplugins 
-Wno-address-of-packed-member -g -fPIC -Werror -Wall -march=corei7 
-mtune=corei7-avx  -O2 -fstack-protector -DFORTIFY_SOURCE=2 -fno-common  -fPIC 
-MD -MT plugins/wireguard/CMakeFiles/wireguard_plugin.dir/wireguard_handoff.c.o 
-MF plugins/wireguard/CMakeFiles/wireguard_plugin.dir/wireguard_handoff.c.o.d 
-o plugins/wireguard/CMakeFiles/wireguard_plugin.dir/wireguard_handoff.c.o   -c 
/home/labuser/Development/git/vpp/src/plugins/wireguard/wireguard_handoff.c
/home/labuser/Development/git/vpp/src/plugins/wireguard/wireguard_handoff.c: In 
function 'wg_handshake_handoff_fn':
/home/labuser/Development/git/vpp/src/plugins/wireguard/wireguard_handoff.c:112:12:
 error: 'peeri' may be used uninitialized in this function 
[-Werror=maybe-uninitialized]
  112 |    t->peer = peeri;
      |    ~~~~~~~~^~~~~~~
/home/labuser/Development/git/vpp/src/plugins/wireguard/wireguard_handoff.c:82:15:
 note: 'peeri' was declared here
   82 |       index_t peeri;
      |               ^~~~~
cc1: all warnings being treated as errors
[12/18] Linking C shared library lib/libvnet.so.20.09
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:693: vpp-build] Error 1
make[1]: Leaving directory '/home/labuser/Development/git/vpp/build-root'
make: *** [Makefile:560: pkg-deb] Error 2

Anyone else see that?

Thanks,
Steve Heckman
Distinguished Software Engineer
Commscope, Inc.
Lowell, Ma



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17531): https://lists.fd.io/g/vpp-dev/message/17531
Mute This Topic: https://lists.fd.io/mt/77124338/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to