Which compiler do you use? Try upgrading to a newer toolchain or switch between GCC and LLVM.
Best ben > -----Original Message----- > From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of > 2201kamalj...@gmail.com > Sent: Tuesday, January 3, 2023 8:09 > To: vpp-dev@lists.fd.io > Subject: [vpp-dev] Unable to run make pkg-rpm with Sanitizer enable. > > Hi All, > > > I want to build and make pkg-rpm with Address sanitizer=ON on CentOS > Stream release 8 > > While compiling it is working fine with this command : make build > VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON, and also showing that > address sanitizer(flag) is enabled. > But, when while doing make pkg-rpm with the command : make pkg-rpm > VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON > It is producing the below error: > > > home/usr/vpp/build-root/rpmbuild/vpp-23.02/src/vppinfra/vec_bootstrap.h: > In function 'vec_header': > /home/usr/vpp/build-root/rpmbuild/vpp- > 23.02/src/vppinfra/vec_bootstrap.h:90:1: error: inlining failed in call to > always_inline 'vec_get_header_size': function attribute mismatch > vec_get_header_size (void *v) > ^~~~~~~~~~~~~~~~~~~ > /home/usr/vpp/build-root/rpmbuild/vpp- > 23.02/src/vppinfra/vec_bootstrap.h:105:18: note: called from here > return v ? v - vec_get_header_size (v) : 0; > ^~~~~~~~~~~~~~~~~~~~~~~ > Regards, > Kamaljeet
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22402): https://lists.fd.io/g/vpp-dev/message/22402 Mute This Topic: https://lists.fd.io/mt/96024389/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] -=-=-=-=-=-=-=-=-=-=-=-