Repository navigation
Commit 3851dd5
committed
fix(eui-neo): explicit -L for the staged glib + pcre2 version coherence
CI (pinned mcpp 2026.8.10.3, GNU ld) failed every eui-neo member with
'unable to find library -lglib-2.0' — on artifacts as unrelated as
bin/libXdmcp.so, because package ldflags are unioned into every link.
Root cause: with only runtime.library_dirs, the staged dir reaches link
lines as -Wl,-rpath; ld.lld (mcpp 2026.8.21.3) happens to search rpath
for -l, so local runs passed, but GNU ld does not — its SEARCH_DIRs are
absolute host paths, so -lglib fell through to /lib64 (missing on a
clean runner, or worse: the host's glib where it exists).
Two fixes, both verified against the CI-pinned mcpp downloaded locally:
* ldflags gains '-Lmcpp_generated/glib/lib' — payload-relative, resolved
by mcpp against the install dir, the same convention compat.openblas
and compat.mysql-connector-cpp use ('-Llib'). Now -lglib resolves to
the staged copies on both linkers.
* When libselinux is host-staged, libpcre2-8.so.0 is overwritten with
the host's copy too: the host libselinux references pcre2 symbols
WITH version tags (PCRE2_10.xx), which cannot bind to the xim pcre2's
unversioned definitions — GNU ld hard-errors, lld only warns at
runtime. The host pcre2 carries both versioned and unversioned defs,
satisfying host libselinux and xim glib alike.
Verified: mcpp 2026.8.10.3 (CI pin) — eui-neo and eui-neo-window pass
cold; mcpp 2026.8.21.3 (latest) — eui-neo still passes.1 parent 598562b commit 3851dd5
1 file changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
478 | 485 | | |
479 | | - | |
| 486 | + | |
| 487 | + | |
480 | 488 | | |
481 | 489 | | |
482 | 490 | | |
| |||
724 | 732 | | |
725 | 733 | | |
726 | 734 | | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
727 | 769 | | |
728 | 770 | | |
729 | 771 | | |
| |||
0 commit comments