Re: [vpp-dev] make install-dep on Ubuntu 18.04 fails

2022-07-08 Thread Dave Houser
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

2022-07-08 Thread Dave Houser
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

2022-07-08 Thread Matthew Smith via lists.fd.io
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

2022-07-08 Thread Dave Houser
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]
-=-=-=-=-=-=-=-=-=-=-=-