Ray's Knowledge Base
Unlock

Pass CMAKE_INSTALL_LIBDIR=lib to the Vectorscan external project

PitfallVerified 5 Oct 2026Holds project: dftracer-utils
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

On the RHEL-based manylinux image the link failed on Linux aarch64: the import target pointed at lib.

Cause#

Vectorscan uses GNUInstallDirs, which installs to lib64 there.

Fix#

Pass -DCMAKE_INSTALL_LIBDIR=lib to the Vectorscan external project. The x86_64 wheels need it too, since they never reached the link step before.

Evidence#

Observed note from dftracer-utils wheel build work.

Also found by searching

  • Vectorscan link fails on Linux aarch64 cannot find library in lib
  • Vectorscan installs to lib64 on manylinux RHEL image
  • how do I make an ExternalProject install to lib instead of lib64
  • GNUInstallDirs lib64 import target points at lib