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]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to