Makrennel/hyprland-void

Build failed on musl (Hyprland 0.36.0_1)

Closed this issue · 3 comments

[21/94] Building CXX object CMakeFiles/Hyprland.dir/src/debug/CrashReporter.cpp.o
FAILED: CMakeFiles/Hyprland.dir/src/debug/CrashReporter.cpp.o 
/usr/bin/g++ -DHAS_EXECINFO -DHyprland_EXPORTS -DWLR_USE_UNSTABLE -I/builddir/hyprland-0.36.0/. -I/builddir/hyprland-0.36.0/src -I/builddir/hyprland-0.36.0/subprojects/wlroots/include -I/builddir/hyprland-0.36.0/subprojects/wlroots/build/include -I/builddir/hyprland-0.36.0/subprojects/udis86 -I/builddir/hyprland-0.36.0/protocols -I/builddir/hyprland-0.36.0/subprojects/udis86/libudis86 -isystem /usr/include/libdrm -isystem /usr/include/pango-1.0 -isystem /usr/include/harfbuzz -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/cairo -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/pixman-1 -lexecinfo -O3 -DNDEBUG -std=gnu++23 -O3 -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -pthread -Winvalid-pch -include /builddir/hyprland-0.36.0/build/CMakeFiles/Hyprland.dir/cmake_pch.hxx -MD -MT CMakeFiles/Hyprland.dir/src/debug/CrashReporter.cpp.o -MF CMakeFiles/Hyprland.dir/src/debug/CrashReporter.cpp.o.d -o CMakeFiles/Hyprland.dir/src/debug/CrashReporter.cpp.o -c /builddir/hyprland-0.36.0/src/debug/CrashReporter.cpp
/builddir/hyprland-0.36.0/src/debug/CrashReporter.cpp: In function 'void CrashReporter::createAndSaveCrash(int)':
/builddir/hyprland-0.36.0/src/debug/CrashReporter.cpp:112:9: error: 'Dl_info' was not declared in this scope
  112 |         Dl_info          info;
      |         ^~~~~~~
/builddir/hyprland-0.36.0/src/debug/CrashReporter.cpp:114:43: error: 'info' was not declared in this scope
  114 |         dladdr1((void*)CALLSTACK[i].adr, &info, (void**)&linkMap, RTLD_DL_LINKMAP);
      |                                           ^~~~
/builddir/hyprland-0.36.0/src/debug/CrashReporter.cpp:114:67: error: 'RTLD_DL_LINKMAP' was not declared in this scope
  114 |         dladdr1((void*)CALLSTACK[i].adr, &info, (void**)&linkMap, RTLD_DL_LINKMAP);
      |                                                                   ^~~~~~~~~~~~~~~
/builddir/hyprland-0.36.0/src/debug/CrashReporter.cpp:114:9: error: 'dladdr1' was not declared in this scope; did you mean 'addrs'?
  114 |         dladdr1((void*)CALLSTACK[i].adr, &info, (void**)&linkMap, RTLD_DL_LINKMAP);
      |         ^~~~~~~
      |         addrs
[22/94] Building CXX object CMakeFiles/Hyprland.dir/src/Window.cpp.o
[23/94] Building CXX object CMakeFiles/Hyprland.dir/src/Compositor.cpp.o
[24/94] Building CXX object CMakeFiles/Hyprland.dir/src/config/ConfigManager.cpp.o
ninja: build stopped: subcommand failed.
=> ERROR: hyprland-0.36.0_1: do_build: 'cmake --build ./build --config Release --target all -j${XBPS_MAKEJOBS}' exited with 1
=> ERROR:   in do_build() at srcpkgs/hyprland/template:65
=> ERROR: xbps-src: failed to build hyprland-0.36.0_1 pkg!

v0.35 worked

Build should be fixed now. Cross compilation fails, but it builds when I use a musl image in distrobox.