Anyone else come across this weirdness in the FD.io VPP Clang Debug Build

: && ccache /usr/lib64/ccache/clang --target=x86_64-linux-gnu 
-Wno-address-of-packed-member -march=corei7 -mtune=corei7-avx -g -O0 
-DCLIB_DEBUG -DFORTIFY_SOURCE=2 -fstack-protector-all -fPIC -Werror 
-flax-vector-conversions -Wno-sometimes-uninitialized   
vcl/CMakeFiles/sock_test_server.dir/sock_test_server.c.o  -o 
bin/sock_test_server  
-Wl,-rpath,/root/src/vpp/build-root/build-vpp_debug-native/vpp/lib 
lib/libvppcom.so.19.04.3 -lpthread lib/libvlibmemoryclient.so.19.04.3 
lib/libsvm.so.19.04.3 lib/libvppinfra.so.19.04.3 -lm -lrt -lpthread && :
/usr/bin/ld: lib/libvppcom.so.19.04.3: undefined reference to 
`vnet_incremental_checksum_fp'
clang-9: error: linker command failed with exit code 1 (use -v to see 
invocation)

Basically what happens is that for anything that includes ip_packet.h but is 
not linked to vnet, CLang tries unsuccessfully to resolve symbol 
vnet_incremental_checksum_fp. It doesn't happen with the release build, I am 
assuming (always dangerous) because some optimization figures out that 
vnet_incremental_checksum_fp is never called and removes the dependency.

Ray K
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15059): https://lists.fd.io/g/vpp-dev/message/15059
Mute This Topic: https://lists.fd.io/mt/69463637/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