ananace / overlay

My own collection of Gentoo ebuilds
9 stars 6 forks source link

games-util/mangohud-0.7.2 fails during configure #34

Closed st3iny closed 5 months ago

st3iny commented 5 months ago

Emerging games-util/mangohud-0.7.2 fails during the configure phase. The dependency that is supposedly missing is installed.

Build log snippet

>>> Configuring source in /var/tmp/portage/games-util/mangohud-0.7.2/work/MangoHud-0.7.2 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
meson setup -Db_lto=false --libdir lib --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig:/usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/games-util/mangohud-0.7.2/temp/meson.i686-pc-linux-gnu.x86.ini -Db_pch=false -Dwerror=false -Dbuildtype=plain -Dappend_libdir_mangohud=false -Dinclude_doc=false -Dwith_nvml=enabled -Dwith_xnvctrl=disabled -Dwith_x11=enabled -Dwith_wayland=enabled -Dwith_dbus=enabled /var/tmp/portage/games-util/mangohud-0.7.2/work/MangoHud-0.7.2 /var/tmp/portage/games-util/mangohud-0.7.2/work/MangoHud-0.7.2-abi_x86_32.x86
The Meson build system
Version: 1.4.0
Source dir: /var/tmp/portage/games-util/mangohud-0.7.2/work/MangoHud-0.7.2
Build dir: /var/tmp/portage/games-util/mangohud-0.7.2/work/MangoHud-0.7.2-abi_x86_32.x86
Build type: native build
Project name: MangoHud
Project version: v0.7.1
C compiler for the host machine: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse (gcc 13.2.1 "x86_64-pc-linux-gnu-gcc (Gentoo 13.2.1_p20240210 p14) 13.2.1 20240210")
C linker for the host machine: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse ld.bfd 2.42
C++ compiler for the host machine: x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse (gcc 13.2.1 "x86_64-pc-linux-gnu-g++ (Gentoo 13.2.1_p20240210 p14) 13.2.1 20240210")
C++ linker for the host machine: x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse ld.bfd 2.42
Host machine cpu family: x86
Host machine cpu: i686
Program python3 (mako) found: YES (/usr/bin/python3) modules: mako
Checking if "GCC atomic builtins" compiles: YES
Checking if "Supports timespec_get" compiles: YES
Checking for function "bswap32" : YES
Checking for function "bswap64" : YES
Checking for function "clz" : YES
Checking for function "clzll" : YES
Checking for function "ctz" : YES
Checking for function "expect" : YES
Checking for function "ffs" : YES
Checking for function "ffsll" : YES
Checking for function "popcount" : YES
Checking for function "popcountll" : YES
Checking for function "unreachable" : YES
Found pkg-config: YES (/usr/bin/x86_64-pc-linux-gnu-pkg-config) 2.2.0
Run-time dependency x11 found: YES 1.8.9
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency dbus-1 found: YES 1.15.8
Found CMake: /usr/bin/cmake (3.28.5)
Run-time dependency xkbcommon found: NO (tried pkgconfig and cmake)

../MangoHud-0.7.2/meson.build:92:12: ERROR: Dependency "xkbcommon" not found, tried pkgconfig and cmake
# qlist -Iv xkbcommon
x11-libs/libxkbcommon-1.7.0

Please let me know if you need more info.

ananace commented 5 months ago

I think I have a suspicion of what might be going on, which USE-flags do you have set for libxkbcommon?

st3iny commented 5 months ago
$ qlist -Uv libxkbcommon
x11-libs/libxkbcommon-1.7.0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -static-libs -test -test -tools wayland
st3iny commented 5 months ago

Ahhh ok, I see the problem now too. Seems like abi_x86_32 is disabled for libxkbcommon.

Enabling it and re-emerging world fixes the problem. Could you perhaps add it to the required use flags for libxkbcommon?

ananace commented 5 months ago

Added a proper depends entry for it, should hopefully work better now.