Dear All, vpp master branch can not build with ubuntu 16.04, anyone can kindly help on the fix ?
error info as below, VPP version : 20.09-rc0~28-g53b8dc8 VPP library version : 20.09 GIT toplevel dir : /root/download_vpp/vpp Build type : release C flags : -Wno-address-of-packed-member -g -fPIC -Werror -Wall -march=corei7 -mtune=corei7-avx -O2 -fstack-protector -DFORTIFY_SOURCE=2 -fno-common Linker flags (apps) : -pie Linker flags (libs) : Host processor : x86_64 Target processor : x86_64 Prefix path : /opt/vpp/external/x86_64;/root/download_vpp/vpp/build-root/install-vpp-native/external Install prefix : /root/download_vpp/vpp/build-root/install-vpp-native/vpp -- Configuring done -- Generating done -- Build files have been written to: /root/download_vpp/vpp/build-root/build-vpp-native/vpp @@@@ Building vpp in /root/download_vpp/vpp/build-root/build-vpp-native/vpp @@@@ [796/2008] Building C object vat/CMakeFiles/vpp_api_test.dir/types.c.o FAILED: ccache /usr/lib/ccache/gcc-9 -Dvpp_api_test_EXPORTS -I/root/download_vpp/vpp/src -I. -Iinclude -Wno-address-of-packed-member -g -fPIC -Werror -Wall -march=corei7 -mtune=corei7-avx -O2 -fstack-protector -DFORTIFY_SOURCE=2 -fno-common -pthread -MMD -MT vat/CMakeFiles/vpp_api_test.dir/types.c.o -MF vat/CMakeFiles/vpp_api_test.dir/types.c.o.d -o vat/CMakeFiles/vpp_api_test.dir/types.c.o -c /root/download_vpp/vpp/src/vat/types.c /root/download_vpp/vpp/src/vat/types.c: In function 'format_vl_api_address_family': /root/download_vpp/vpp/src/vat/types.c:28:31: error: 'vl_api_address_family_t' {aka 'enum <anonymous>'} is promoted to 'int' when passed through '...' [-Werror] 28 | vl_api_address_family_t af = va_arg (*args, vl_api_address_family_t); /root/download_vpp/vpp/src/vat/types.c:28:31: note: (so you should pass 'int' not 'vl_api_address_family_t' {aka 'enum <anonymous>'} to 'va_arg') /root/download_vpp/vpp/src/vat/types.c:28:31: note: if this code is reached, the program will abort /root/download_vpp/vpp/src/vat/types.c: In function 'format_vl_api_address_union': /root/download_vpp/vpp/src/vat/types.c:56:31: error: 'vl_api_address_family_t' {aka 'enum <anonymous>'} is promoted to 'int' when passed through '...' [-Werror] 56 | vl_api_address_family_t af = va_arg (*args, vl_api_address_family_t); /root/download_vpp/vpp/src/vat/types.c:56:31: note: if this code is reached, the program will abort cc1: all warnings being treated as errors [796/2008] Building C object vnet/CMakeFiles/vnet_icl.dir/ipsec/esp_decrypt.c.o ninja: build stopped: subcommand failed. Makefile:693: recipe for target 'vpp-build' failed make[1]: *** [vpp-build] Error 1 make[1]: Leaving directory '/root/download_vpp/vpp/build-root' Makefile:403: recipe for target 'build-release' failed make: *** [build-release] Error 2 root@fdio-vpp:~/download_vpp/vpp# cat /etc/issue Ubuntu 16.04.4 LTS \n \l root@fdio-vpp:~/download_vpp/vpp# uname -r 4.13.0-36-generic root@fdio-vpp:~/download_vpp/vpp# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:hsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-10ubuntu2~16.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2~16.04)
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16447): https://lists.fd.io/g/vpp-dev/message/16447 Mute This Topic: https://lists.fd.io/mt/74318066/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-