I'm trying to compile vpp on Ubuntu Jammy and master or tag v22.06-rc1
produces the following error (using make pkg-deb):

-- Configuration:
VPP version         : 22.06-rc1~0-g211fa4748
VPP library version : 22.06
GIT toplevel dir    : /root/vpp
Build type          : release
C compiler          : /usr/lib/ccache/gcc (GNU 11.2.0)
C flags             :
Linker flags (apps) :
Linker flags (libs) :
Host processor      : x86_64
Target processor    : x86_64
Prefix path         : /opt/vpp/external/x86_64
/root/vpp/build-root/install-vpp-native/external
Install prefix      : /root/vpp/build-root/install-vpp-native/vpp
Library dir         : lib/x86_64-linux-gnu
Multiarch variants  : hsw skx icl
-- Configuring done
-- Generating done
-- Build files have been written to:
/root/vpp/build-root/build-vpp-native/vpp
@@@@ Building vpp in /root/vpp/build-root/build-vpp-native/vpp @@@@
[1508/2521] Building C object
CMakeFiles/vpp/CMakeFiles/vpp.dir/api/api_format.c.o
FAILED: CMakeFiles/vpp/CMakeFiles/vpp.dir/api/api_format.c.o
ccache /usr/lib/ccache/gcc -DHAVE_FCNTL64 -DVPP_API_TEST_BUILTIN=1
-D_FORTIFY_SOURCE=2 -Dvpp_EXPORTS -I/root/vpp/src
-I/root/vpp/build-root/build-vpp-native/vpp/CMakeFiles
-I/root/vpp/build-root/build-vpp-native/vpp/CMakeFiles/vpp -g -Werror -Wall
-Wno-address-of-packed-member -O3 -fstack-protector -fno-common
-march=corei7 -mtune=corei7-avx -MD -MT
CMakeFiles/vpp/CMakeFiles/vpp.dir/api/api_format.c.o -MF
CMakeFiles/vpp/CMakeFiles/vpp.dir/api/api_format.c.o.d -o
CMakeFiles/vpp/CMakeFiles/vpp.dir/api/api_format.c.o -c
/root/vpp/src/vpp/api/api_format.c
/root/vpp/src/vpp/api/api_format.c: In function ‘set’:
/root/vpp/src/vpp/api/api_format.c:2374:36: error: writing 1 byte into a
region of size 0 [-Werror=stringop-overflow=]
 2374 |         value[vec_len (value) - 1] = 0;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
cc1: all warnings being treated as errors

I can build debug with `make pkg-deb-debug` but not the "non-debug" build...

Any hints ?

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

Reply via email to