f3d icon indicating copy to clipboard operation
f3d copied to clipboard

CI: USD cache fails to build correctly in static-analysis CI

Open mwestphal opened this issue 1 year ago • 0 comments

When building USD cache for the first time, the one created by static analysis is not valid and fails with:

[ 54%] Building CXX object vtkext/private/module/CMakeFiles/vtkextPrivate.dir/vtkF3DRenderPass.cxx.o
/usr/bin/ld: ../../../../lib/libvtkextUSD.a(vtkF3DUSDImporter.cxx.o): in function `vtkF3DUSDImporter::GetNumberOfAnimations()':
vtkF3DUSDImporter.cxx:(.text+0x1b1): undefined reference to `pxrInternal_v0_23__pxrReserved__::UsdStage::HasAuthoredTimeCodeRange() const'
/usr/bin/ld: ../../../../lib/libvtkextUSD.a(vtkF3DUSDImporter.cxx.o): in function `vtkF3DUSDImporter::vtkInternals::vtkInternals(vtkF3DUSDImporter*)':
vtkF3DUSDImporter.cxx:(.text._ZN17vtkF3DUSDImporter12vtkInternalsC2EPS_[_ZN17vtkF3DUSDImporter12vtkInternalsC2EPS_]+0xf6): undefined reference to `pxrInternal_v0_23__pxrReserved__::TfSingleton<pxrInternal_v0_23__pxrReserved__::TfDiagnosticMgr>::_instance'
/usr/bin/ld: vtkF3DUSDImporter.cxx:(.text._ZN17vtkF3DUSDImporter12vtkInternalsC2EPS_[_ZN17vtkF3DUSDImporter12vtkInternalsC2EPS_]+0x105): undefined reference to `pxrInternal_v0_23__pxrReserved__::TfSingleton<pxrInternal_v0_23__pxrReserved__::TfDiagnosticMgr>::_instance'
/usr/bin/ld: vtkF3DUSDImporter.cxx:(.text._ZN17vtkF3DUSDImporter12vtkInternalsC2EPS_[_ZN17vtkF3DUSDImporter12vtkInternalsC2EPS_]+0x10a): undefined reference to `pxrInternal_v0_23__pxrReserved__::TfSingleton<pxrInternal_v0_23__pxrReserved__::TfDiagnosticMgr>::_CreateInstance(std::atomic<pxrInternal_v0_23__pxrReserved__::TfDiagnosticMgr*>&)'

Steps to repro:

  • modify USD cache number to force a rebuild
  • Create a PR

mwestphal avatar Apr 26 '24 06:04 mwestphal