Bug 277983 - clang-17 fails to build www/wabt on FreeBSD 15: ld: error: undefined symbol: __elf_aux_vector
Summary: clang-17 fails to build www/wabt on FreeBSD 15: ld: error: undefined symbol: ...
Status: Closed DUPLICATE of bug 277393
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 15.0-CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-toolchain (Nobody)
URL: https://pkg-status.freebsd.org/beefy1...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 06:09 UTC by Yuri Victorovich
Modified: 2024-04-14 17:42 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***