Files
Ramon Roche f01b375512 build(setup): install the clang sanitizer runtime in ubuntu.sh
ubuntu.sh installs clang with --no-install-recommends. Since Ubuntu
24.04 the sanitizer runtimes (libclang_rt.asan and friends) are a
separate package that clang only recommends, so a host or px4-dev image
set up by this script cannot link anything built with -fsanitize.

The fuzz tests build that way. With clang, fuzzing mode turns on ASan,
the abseil configure checks fail to link, and CMake reports a misleading
"Could NOT find Threads". clang-tidy.yml installs the runtime by hand
for this reason, and the nightly fuzzing job needs the same workaround
to move off its old image.

Install libclang-rt-dev, the unversioned package that follows the
default clang, on both amd64 and arm64. Skip it on 22.04, where clang 14
still carries the runtimes and the package does not exist.

Assisted-by: Claude:claude-fable-5-2
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-11-24 09:45:32 -08:00
..
…
…