Created attachment 766202 [details] Build log I already have game-music-emu installed 64-bit, and most likely I already had zlib (which is very widely used) installed at the time so I never noticed an issue... until I had to build a bunch of packages 32-bit for Wine support. The build failed, here is the relevant snippet (full log attached): FAILED: gme/libgme.so.0.6.3 ... cannot find -lz collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed ... Indeed, the build order from emerge pretend output shows it was planning to install zlib after game-music-emu: ... [ebuild R ] media-libs/game-music-emu-0.6.3::gentoo ABI_X86="32* (64) (-x32)" 0 KiB [ebuild R ] virtual/jpeg-100::gentoo USE="-static-libs" ABI_X86="32* (64) (-x32)" 0 KiB [ebuild R ] media-libs/xvid-1.3.7::gentoo USE="threads -examples -pic" ABI_X86="32* (64) (-x32)" 0 KiB [ebuild R ] sys-libs/libxcrypt-4.4.27:0/1::gentoo USE="(compat) (split-usr) (system) -static-libs -test" ABI_X86="32* (64) (-x32)" 0 KiB [ebuild R ] virtual/libcrypt-2:0/2::gentoo USE="-static-libs" ABI_X86="32* (64) (-x32)" 0 KiB [ebuild R ] sys-libs/zlib-1.2.11-r4:0/1::gentoo USE="minizip (split-usr) -static-libs" ABI_X86="32* (64) (-x32)" 0 KiB ... And I checked the ebuild, it makes no mention of zlib. As expected, if I `emerge -1 sys-libs/zlib` first, then reattempt emerging game-music-emu, it builds just fine.
Created attachment 766205 [details] emerge info output