Re: [vpp-dev] make install-dep on Ubuntu 18.04 fails
Just saw this reply, thanks Matt. Ok, well I got it working either way, just need to do a `make build` and skip `make install-dep` -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21633): https://lists.fd.io/g/vpp-dev/message/21633 Mute This Topic: https://lists.fd.io/mt/92250876/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] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] make install-dep on Ubuntu 18.04 fails
Figured it out. I had clang-11 installed, but the build was using "clang" which was linked to clang v6 still on my system. ``` mv /usr/bin/clang /usr/bin/clang-6-old ln -s /usr/bin/clang-11 /usr/bin/clang ``` Still in the end, make-build-dep fails because of the following on Ubuntu 18.04 ``` E: Unable to locate package enchant-2 E: Unable to locate package libffi7 ``` -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21632): https://lists.fd.io/g/vpp-dev/message/21632 Mute This Topic: https://lists.fd.io/mt/92250876/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] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] make install-dep on Ubuntu 18.04 fails
Hi Dave, I think make pkg-deb and make install-dep are the correct thing to use. I haven't seen much maintenance of the vagrant build pieces over the past couple of years so I don't know if they can be assumed to be working anymore. The instructions on the wiki page you linked probably need to be updated. I don't think Ubuntu 18.04 is tested by the CI anymore, so it may require some tinkering to make it work correctly. If you're able to build on Ubuntu 20.04 instead, I think you should not have any problems because that version does get tested by CI. -Matt On Fri, Jul 8, 2022 at 9:08 AM Dave Houser wrote: > It seems I need to run `./extras/vagrant/build.sh` instead of running > `make install-dep`. I can see earlier in the process that the same errors > happen but are ignored and compiling continues. However I ran into a new > error with clang, how do I get past this? > > ``` > > -- Configuring done > > -- Generating done > > -- Build files have been written to: > /home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp > > Building vpp in /home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp > > > [766/2348] Building C object > CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o > > FAILED: CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o > > /usr/bin/clang --target=x86_64-linux-gnu -D_FORTIFY_SOURCE=2 > -I/home/ubuntu/vpp/vpp/src > -I/home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles > -I/home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles/vnet > -fPIC -g -Werror -Wall -Wno-address-of-packed-member -O3 -fstack-protector > -fno-common -march=corei7 -mtune=corei7-avx -MD -MT > CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o -MF > CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o.d -o > CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o -c > /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c > > /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: > suggest braces around initialization of subobject [-Werror,-Wmissing-braces] > > ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; > > ^ > > {} > > /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: > suggest braces around initialization of subobject [-Werror,-Wmissing-braces] > > ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; > > ^ > > {} > > /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: > suggest braces around initialization of subobject [-Werror,-Wmissing-braces] > > ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; > > ^ > > {} > > /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: > suggest braces around initialization of subobject [-Werror,-Wmissing-braces] > > ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; > > ^ > > {} > > /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: > suggest braces around initialization of subobject [-Werror,-Wmissing-braces] > > ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; > > ^ > > {} > > /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: > suggest braces around initialization of subobject [-Werror,-Wmissing-braces] > > ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; > > ^ > > {} > > /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: > suggest braces around initialization of subobject [-Werror,-Wmissing-braces] > > ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; > > ^ > > {} > > /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: > suggest braces around initialization of subobject [-Werror,-Wmissing-braces] > > ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; > > ^ > > {} > > 8 errors generated. > > [861/2348] Building C object > CMakeFiles/vnet/CMakeFiles/vnet_objs.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 '/home/ubuntu/vpp/vpp/build-root' > > Makefile:604: recipe for target 'pkg-deb' failed > > make: *** [pkg-deb] Error 2 > ``` > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21631): https://lists.fd.io/g/vpp-dev/message/21631 Mute This Topic: https://lists.fd.io/mt/92250876/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] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] make install-dep on Ubuntu 18.04 fails
It seems I need to run `./extras/vagrant/build.sh` instead of running `make install-dep`. I can see earlier in the process that the same errors happen but are ignored and compiling continues. However I ran into a new error with clang, how do I get past this? ``` -- Configuring done -- Generating done -- Build files have been written to: /home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp Building vpp in /home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp [766/2348] Building C object CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o FAILED: CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o /usr/bin/clang --target=x86_64-linux-gnu -D_FORTIFY_SOURCE=2 -I/home/ubuntu/vpp/vpp/src -I/home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles -I/home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles/vnet -fPIC -g -Werror -Wall -Wno-address-of-packed-member -O3 -fstack-protector -fno-common -march=corei7 -mtune=corei7-avx -MD -MT CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o -MF CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o.d -o CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o -c /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; ^ {} /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; ^ {} /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; ^ {} /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; ^ {} /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; ^ {} /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; ^ {} /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; ^ {} /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple; ^ {} 8 errors generated. [861/2348] Building C object CMakeFiles/vnet/CMakeFiles/vnet_objs.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 '/home/ubuntu/vpp/vpp/build-root' Makefile:604: recipe for target 'pkg-deb' failed make: *** [pkg-deb] Error 2 ``` -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21630): https://lists.fd.io/g/vpp-dev/message/21630 Mute This Topic: https://lists.fd.io/mt/92250876/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] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] make install-dep on Ubuntu 18.04 fails
Trying to make a Mellanox supported DPDK package for VPP, I tried running `make install-dep` with the latest code from github but I get these errors: ``` $ make install-dep Hit:2 https://download.docker.com/linux/ubuntu bionic InRelease Hit:1 https://apt.llvm.org/bionic llvm-toolchain-bionic-11 InRelease Hit:3 http://repo.zabbix.com/zabbix/5.0/ubuntu bionic InRelease Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease Hit:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:7 http://archive.ubuntu.com/ubuntu bionic-security InRelease Hit:8 https://packagecloud.io/fdio/release/ubuntu bionic InRelease Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package enchant-2 E: Unable to locate package libffi7 Makefile:319: recipe for target 'install-dep' failed make: *** [install-dep] Error 100 ``` I manually compiled and installed enchant-2 and libff7 but that did not seem to change anything. Seems the above command is trying to download the packages with apt source.list but cant find it. Not sure there is a libff7 or enchant-2 package for Ubuntu 18.04, how should I proceed? Following instructions here ( https://wiki.fd.io/view/VPP/Build,_install,_and_test_images#Build_A_VPP_Package ) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21629): https://lists.fd.io/g/vpp-dev/message/21629 Mute This Topic: https://lists.fd.io/mt/92250876/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] -=-=-=-=-=-=-=-=-=-=-=-