Page MenuHomePhabricator

Add support for FreeBSD's LD_32_LIBRARY_PATH

Authored by dim on Aug 5 2019, 1:16 PM.



Because the dynamic linker for 32-bit executables on 64-bit FreeBSD uses
the environment variable LD_32_LIBRARY_PATH instead of
LD_LIBRARY_PATH to find needed dynamic libraries, running the 32-bit
parts of the dynamic ASan tests will fail with errors similar to: Shared object "" not found, required by "Asan-i386-inline-Dynamic-Test"

This adds support for setting up LD_32_LIBRARY_PATH for the unit and
regression tests. It will likely also require a minor change to the
TestingConfig class in llvm/utils/lit/lit.

Diff Detail


Event Timeline

dim created this revision.Aug 5 2019, 1:16 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 5 2019, 1:16 PM
Herald added subscribers: Restricted Project, delcypher, fedor.sergeev and 2 others. · View Herald Transcript
arichardson accepted this revision.Aug 9 2019, 9:05 AM

LGTM. This reduces the check-asan-dynamic test failures from 209 to 50 if I also apply the -pthread patch.

This revision is now accepted and ready to land.Aug 9 2019, 9:05 AM
This revision was automatically updated to reflect the committed changes.