Page MenuHomeFreeBSD

libc/tests: Fix installation without MK_TOOLCHAIN
ClosedPublic

Authored by markj on May 1 2024, 1:44 AM.
Tags
None
Referenced Files
F163637360: D45035.id139171.diff
Sat, Jul 25, 1:52 AM
Unknown Object (File)
Wed, Jul 22, 5:38 PM
Unknown Object (File)
Tue, Jul 21, 4:31 PM
Unknown Object (File)
Tue, Jul 21, 12:04 PM
Unknown Object (File)
Sun, Jul 5, 8:50 AM
Unknown Object (File)
Sat, Jun 27, 7:56 PM
Unknown Object (File)
Jun 22 2026, 11:41 PM
Unknown Object (File)
Jun 21 2026, 1:12 PM
Subscribers

Details

Summary

There is some strange conditional logic here to avoid building a
particular test if a certain UBSAN library isn't present. This causes
build failures for me when doing an "installworld WITHOUT_TOOLCHAIN=",
which I do frequently during tests. (This failure appeared for me only
very recently, I'm not quite sure why.)

I presume the problem is that SYSROOT is unset during installworld, so
the build sees the host's copy of libclang_rt.ubsan_standalone.a and
then tries to install a binary that wasn't built during buildworld.
Assuming that this is correct, try to make the check a bit less fragile.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable