Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building upg-vpp fails #214

Open
raoufkh opened this issue Jan 31, 2022 · 1 comment
Open

Building upg-vpp fails #214

raoufkh opened this issue Jan 31, 2022 · 1 comment

Comments

@raoufkh
Copy link

raoufkh commented Jan 31, 2022

Hello

UPG version ==> I tried v2.2.0 and v2.2.2

Steps:

git clone -b v1.2.2 https://github.com/travelping/upg-vpp.git
cd /upg-vpp
make update-vpp
cd vpp
make install-dep
make install-ext-deps
make build-release

error:

Install prefix      : /upg-vpp/vpp/build-root/install-vpp_debug-native/vpp
-- Configuring done
-- Generating done
-- Build files have been written to: /upg-vpp/vpp/build-root/build-vpp_debug-native/vpp
@@@@ Building vpp in /upg-vpp/vpp/build-root/build-vpp_debug-native/vpp @@@@
[356/2498] Building C object plugins/nat/CMakeFiles/nat_plugin_skx.dir/in2out_ed.c.o
FAILED: plugins/nat/CMakeFiles/nat_plugin_skx.dir/in2out_ed.c.o 
ccache /usr/lib/ccache/gcc-9 -DHAVE_FCNTL64 -DHAVE_GETCPU -DHAVE_MEMFD_CREATE -I/upg-vpp/vpp/src -I. -Iinclude -I/upg-vpp/vpp/src/plugins -Iplugins -Iplugins/nat -Wno-address-of-packed-member -g -fPIC -Werror -Wall -march=corei7 -mtune=corei7-avx  -O0 -DCLIB_DEBUG -fstack-protector -DFORTIFY_SOURCE=2 -fno-common  -fPIC   -DCLIB_MARCH_VARIANT=skx -march=skylake-avx512 -mtune=skylake-avx512 -mprefer-vector-width=256 -MD -MT plugins/nat/CMakeFiles/nat_plugin_skx.dir/in2out_ed.c.o -MF plugins/nat/CMakeFiles/nat_plugin_skx.dir/in2out_ed.c.o.d -o plugins/nat/CMakeFiles/nat_plugin_skx.dir/in2out_ed.c.o   -c /upg-vpp/vpp/src/plugins/nat/in2out_ed.c
/upg-vpp/vpp/src/plugins/nat/in2out_ed.c: In function 'nat_controlled_alloc_addr_and_port':
/upg-vpp/vpp/src/plugins/nat/in2out_ed.c:213:7: error: variable 'block_size' set but not used [-Werror=unused-but-set-variable]
  213 |   u16 block_size;
      |       ^~~~~~~~~~
cc1: all warnings being treated as errors
[365/2498] Building C object plugins/nat/CMakeFiles/nat_plugin_icl.dir/in2out.c.o
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:693: vpp-build] Error 1
make[1]: Leaving directory '/upg-vpp/vpp/build-root'
make: *** [Makefile:354: build] Error 2

Please, can someone help?

Bests
Abderaouf

@prasenjitpdas
Copy link

prasenjitpdas commented Mar 28, 2023

very late .. but I hope you can make use of it...
you can comment vpp/src/ cmake...txt
if (CMAKE_BUILD_TYPE)

set(CMAKE_C_FLAGS "-g -fPIC -Werror -Wall ${CMAKE_C_FLAGS}") - comment this line to remove -WError

set(CMAKE_C_FLAGS "-g -fPIC -Wall ${CMAKE_C_FLAGS}")
endif()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants