Status: Untriaged
Owner: ----
Labels: Type-Bug Pri-2
Components: libvpx
New issue 1801 by brigh...@
gmail.com: Build failure with `--enable-shared` and ASan
https://bugs.chromium.org/p/webm/issues/detail?id=1801Reproduce:
cd build
source ../tools/set_analyzer_env.sh address
../configure --enable-shared
make -j10
What is the expected behavior? What do you see instead?
There should be a libvpx.so linked with AddressSanitizer.
But i saw undefined reference error.
/usr/bin/ld: pickinter.c:(.text+0x5e5f): undefined reference to `__asan_report_load4'
/usr/bin/ld: ^Cmake[1]: *** Deleting file 'libvpx.so.8.0.0'
What version are you using? On what operating system?
version: git main
os: centos 7
clang: 15.0.0
Please provide any additional information below.
I guess this problem might be libvpx built with conflict flags with Asan.
Asan usage:
The AddressSanitizer run-time library should be linked to the final executable, so make sure to use clang (not ld) for the final link step. When linking shared libraries, the AddressSanitizer run-time is not linked, so -Wl,-z,defs may cause link errors (don’t use it with AddressSanitizer).
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings