You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(opencv): wire xim:glibc lib into install() LINK env (host-free crt/libm)
Ground truth from CI (via the temp diagnostic): xim:cmake installs fine; the real
failure is cmake's compiler check cannot LINK a test exe —
ld: cannot find crt1.o / crti.o / -lm
All three live in <xim:glibc>/lib. xim:gcc's specs wire xim:glibc only for RUNTIME
(rpath/dynamic-linker), not the link-time startfile/library search — mcpp's build
supplies that via LIBRARY_PATH, which an install() subprocess doesn't inherit. On a
dev host gcc silently fell back to /usr/lib crt/libc (works but NOT host-free); the
minimal CI runner has no libc-dev so it hard-fails. openblas dodged it (archives a
.a, never links an exe).
Fix: resolve xim:glibc (+ xim:gcc) install dirs via pkginfo and export
LIBRARY_PATH=<glibc>/lib:<gcc>/lib64 for the cmake configure/build/install steps —
truly host-free. Declare xim:glibc@2.39 explicitly so pkginfo can resolve it.
0 commit comments