Bug 277983

Summary: clang-17 fails to build www/wabt on FreeBSD 15: ld: error: undefined symbol: __elf_aux_vector
Product: Base System Reporter: Yuri Victorovich <yuri>
Component: miscAssignee: freebsd-toolchain (Nobody) <toolchain>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: dim, marklmi26-fbsd
Priority: ---    
Version: 15.0-CURRENT   
Hardware: amd64   
OS: Any   
URL: https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p2b1d5eb07273_s619e6f1f928/logs/wabt-1.0.34.log
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277393

Description Yuri Victorovich freebsd_committer freebsd_triage 2024-03-27 06:09:57 UTC
FAILED: wasm2wat-fuzz 
: && /usr/bin/c++ -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -Wold-style-cast -fno-exceptions -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -DNDEBUG -fstack-protector-strong -L/usr/local/lib    -fsanitize=fuzzer,address CMakeFiles/wasm2wat-fuzz.dir/src/tools/wasm2wat-fuzz.cc.o -o wasm2wat-fuzz  -Wl,-rpath,/wrkdirs/usr/ports/www/wabt/work/.build:  libwabt-fuzz.so  libwabt.so  /usr/lib/libcrypto.so && :
ld: error: undefined symbol: __elf_aux_vector
>>> referenced by sanitizer_linux_libcdep.cpp:950 (/usr/local/poudriere/jails/main-amd64/usr/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp:950)
>>>               sanitizer_linux_libcdep.o:(__sanitizer::ReExec()) in archive /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a
c++: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Mark Millard 2024-03-27 06:24:16 UTC
The error message text with "undefined symbol: _elf_aux_vector" and
"sanitizer_linux_libcdep" looks to be a duplicate of that reported in:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277393

for a trivial example program and link. I expect this report and
others for other programs with the same messages are duplicates
of 277393 .

So far as I know, the final decision on the general handling of the
issue is still pending for all examples.
Comment 2 Dimitry Andric freebsd_committer freebsd_triage 2024-04-14 17:42:09 UTC

*** This bug has been marked as a duplicate of bug 277393 ***