Bug#1101027: clang-19: clang -fsanitize=safe-stack causes link error
Ryutaroh Matsumoto
ryutaroh at ict.e.titech.ac.jp
Sat Mar 22 08:34:51 GMT 2025
Package: clang-19
Version: 1:19.1.7-3
Severity: normal
Dear Maintainer,
The compiler option -fsanitize=safe-stack seems supported (or not?),
but we have the following linker error:
root at raspi4b-router2:~# cat hello.c
#include <stdio.h>
int main(void) { printf("hello\n"); return 0; }
root at raspi4b-router2:~# clang -fsanitize=safe-stack hello.c
/bin/ld: cannot find /usr/lib/llvm-19/lib/clang/19/lib/aarch64-unknown-linux-gnu/libclang_rt.safestack.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Best regards, Ryutaroh Matsumoto
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: arm64 (aarch64)
Kernel: Linux 6.12.17-rt-arm64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CRAP
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages clang-19 depends on:
ii binutils 2.44-3
ii libc6 2.41-6
ii libc6-dev 2.41-6
ii libclang-common-19-dev 1:19.1.7-3
ii libclang-cpp19 1:19.1.7-3
ii libclang1-19 1:19.1.7-3
ii libgcc-14-dev 14.2.0-17
ii libgcc-s1 14.2.0-17
ii libllvm19 1:19.1.7-3
ii libobjc-14-dev 14.2.0-17
ii libstdc++-14-dev 14.2.0-17
ii libstdc++6 14.2.0-17
ii llvm-19-linker-tools 1:19.1.7-3
Versions of packages clang-19 recommends:
pn clang-tools-19 <none>
pn llvm-19-dev <none>
ii python3 3.13.2-2
Versions of packages clang-19 suggests:
pn clang-19-doc <none>
pn wasi-libc <none>
-- no debconf information
More information about the Pkg-llvm-team
mailing list