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
{{ message }}
Repository navigation
--linkage shared: two packages with one short name (compat.sdl3, mcpplibs.mwrap.sdl3) both make bin/libsdl3.so #975
A program whose closure has two packages with the same short name, here compat.sdl3 (SDL's C sources) and mcpplibs.mwrap.sdl3 (its module wrap), packed with shared dependency linkage:
build.ninja has two cxx_shared rules with that output, one with obj/compat_sdl3/... inputs and one with obj/mcpplibs_mwrap_sdl3/... inputs. The object directories are already told apart by namespace; the shared library's file name (and so its SONAME) is not.
Expected: each package's shared library has a name unique in the closure, e.g. one that carries the namespace, as the object directories do. #896 fixed the same collision for static links.
Workaround used here: the program declares one of the two itself with linkage = "static" (compat.sdl3 = { version = "3.4.18", linkage = "static" }), so only one libsdl3.so is made.
Tried the workaround in the issue on the same program: with compat.sdl3 declared static by the program, the plan gets past libsdl3.so and stops at the next pair:
It also warns that compat.sdl3, omui.host.sdl3 and mcpplibs.mwrap.sdl3 are static packages reached from more than one image, a graph refused on Mach-O, PE and Android. So declaring one package of each pair static is not a usable workaround. Every pair of a C library's compat.* package and its mcpplibs.mwrap.* wrap has this collision. The shared form needs names unique in the closure.
Activity
Sunrisepeak commentedon Nov 19, 2026
Tried the workaround in the issue on the same program: with
compat.sdl3declared static by the program, the plan gets pastlibsdl3.soand stops at the next pair:It also warns that
compat.sdl3,omui.host.sdl3andmcpplibs.mwrap.sdl3are static packages reached from more than one image, a graph refused on Mach-O, PE and Android. So declaring one package of each pair static is not a usable workaround. Every pair of a C library'scompat.*package and itsmcpplibs.mwrap.*wrap has this collision. The shared form needs names unique in the closure.