Hi,

I am trying to compile vpp on the SiFive HiFive Unmatched board.
Following is my build environment

==========================================================================


ubuntu@ubuntu:~/work/vpp$ uname -a
Linux ubuntu 5.13.0-1008-generic #8-Ubuntu SMP Fri Jan 7 18:50:29 UTC 2022
riscv64 riscv64 riscv64 GNU/Linux

ubuntu@ubuntu:~/work/vpp$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish

==========================================================================
I am using the latest master branch for VPP.
I am getting the following compilation error. I have changed the
default-clang format to 11.

==========================================================================
ubuntu@ubuntu:~/work/vpp$ make pkg-deb
make[1]: Entering directory '/home/ubuntu/work/vpp/build-root'
@@@@ Arch for platform 'vpp' is native @@@@
@@@@ Finding source for external @@@@
@@@@ Makefile fragment found in /home/ubuntu/work/vpp/build-data/packages/
external.mk @@@@
@@@@ Source found in /home/ubuntu/work/vpp/build @@@@
@@@@ Arch for platform 'vpp' is native @@@@
@@@@ Finding source for vpp @@@@
@@@@ Makefile fragment found in /home/ubuntu/work/vpp/build-data/packages/
vpp.mk @@@@
@@@@ Source found in /home/ubuntu/work/vpp/src @@@@
find: ‘/home/ubuntu/work/vpp/build-root/config.site’: No such file or
directory
@@@@ Configuring external: nothing to do @@@@
@@@@ Building external in
/home/ubuntu/work/vpp/build-root/build-vpp-native/external @@@@

@@@@ Installing external: nothing to do @@@@
find: ‘/home/ubuntu/work/vpp/build-root/config.site’: No such file or
directory
@@@@ Configuring vpp: nothing to do @@@@
@@@@ Building vpp in /home/ubuntu/work/vpp/build-root/build-vpp-native/vpp
@@@@
[2/1501] Building C object
CMakeFiles/vppinfra/CMakeFiles/vppinfra_objs.dir/cpu.c.o
FAILED: CMakeFiles/vppinfra/CMakeFiles/vppinfra_objs.dir/cpu.c.o
ccache /usr/lib/ccache/clang-13 --target=riscv64-linux-gnu -DHAVE_FCNTL64
-D_FORTIFY_SOURCE=2 -I/home/ubuntu/work/vpp/src -ICMakeFiles -fPIC
-fvisibility=hidden -g -Werror -Wall -Wno-address-of-packed-member -O3
-fstack-protector -fno-common -MD -MT
CMakeFiles/vppinfra/CMakeFiles/vppinfra_objs.dir/cpu.c.o -MF
CMakeFiles/vppinfra/CMakeFiles/vppinfra_objs.dir/cpu.c.o.d -o
CMakeFiles/vppinfra/CMakeFiles/vppinfra_objs.dir/cpu.c.o -c
/home/ubuntu/work/vpp/src/vppinfra/cpu.c
/home/ubuntu/work/vpp/src/vppinfra/cpu.c:203:1: error: unused function
'flag_skip_prefix' [-Werror,-Wunused-function]
flag_skip_prefix (char const *flag, const char *pfx, int len)
^
1 error generated.
[5/1501] Building C object
CMakeFiles/vppinfra/CMakeFiles/vppinfra_objs.dir/format.c.o
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:693: vpp-build] Error 1
make[1]: Leaving directory '/home/ubuntu/work/vpp/build-root'
make: *** [Makefile:593: pkg-deb] Error 2

==========================================================================


-- 

Regards,
Hrishikesh Karanjikar
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20753): https://lists.fd.io/g/vpp-dev/message/20753
Mute This Topic: https://lists.fd.io/mt/88531162/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to