[Bug 297510] Base system LLVM "extras" are installed in the wrong directory/naming convention
| Newsgroups | gmane.os.freebsd.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297510
Bug ID: 297510
Summary: Base system LLVM "extras" are installed in the wrong
directory/naming convention
Product: Base System
Version: 15.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Tried using --coverage with the base system compiler when building freebsd/pkg
and it failed like so:
% sudo pkg install -y FreeBSD-clang-dbg
...
cc -o pkg add.o alias.o annotate.o audit.o autoremove.o check.o checksum.o
clean.o config.o create.o delete.o event.o fetch.o globals.o info.o install.o
key.o lock.o main.o plugins.o query.o register.o repo.o repositories.o rquery.o
rwhich.o search.o set.o shell.o shlib.o ssh.o stats.o triggers.o unregister.o
update.o updating.o upgrade.o utils.o version.o which.o -fsanitize=leak
-Wl,-Bstatic -Wl,-whole-archive
-L/home/ngie/git/atf/externals/freebsd/pkg/libpkg -lpkg_flat
-Wl,-no-whole-archive -Wl,-Bdynamic -Wl,--as-needed -lelf -ljail -lm
-pthread -larchive -lutil -lssl -lcrypto -lmd -Wl,--export-dynamic
ld: error: cannot open
/usr/lib/clang/19/lib/x86_64-unknown-freebsd15.1/libclang_rt.lsan.a: No such
file or directory
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
...
Turns out the libraries exist, but they have a different path than clang thinks
they should:
```
✗ find /usr/lib/clang/19/lib/freebsd/libclang_rt.*san*
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan_cxx-i386.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan_cxx-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan_static-i386.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan_static-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan-i386.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan-i386.so
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan-preinit-i386.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan-preinit-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan-x86_64.so
/usr/lib/clang/19/lib/freebsd/libclang_rt.msan_cxx-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.msan-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.tsan_cxx-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.tsan-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.ubsan_minimal-i386.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.ubsan_minimal-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.ubsan_standalone_cxx-i386.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.ubsan_standalone_cxx-x86_64.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.ubsan_standalone-i386.a
/usr/lib/clang/19/lib/freebsd/libclang_rt.ubsan_standalone-x86_64.a
```
Also, sadly we don't seem to build/install LSAN with the base system version of
llvm :/...
So, 2 bugs:
- LLVM is looking for compiler_rt libraries in the wrong directory.
- LSAN is not actually built as part of the build.
--
You are receiving this mail because:
You are the assignee for the bug.