hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.41k stars 899 forks source link

hyprland math problem (doesn't start on arch) #6800

Closed nsklaus closed 4 months ago

nsklaus commented 4 months ago

Regression?

Yes

System Info and Version

arcolinux cannot run `hyprctl systeminfo -c` since hyprland refuse to start

Description

i boot directly to tty, login and then run Hyprland. it doesn't start and output this:

$ Hyprland 
Hyprland: symbol lookup error: Hyprland: undefined symbol: _ZNK9Hyprutils4Math4CBox13containsPointERKNS0_8Vector2DE

git version from aur doesn't compile either, so i cannot install that one, i get this:

INFO: calculating backend command to run: /usr/bin/ninja -C /home/klaus/.cache/yay/hyprland-git/src/Hyprland/build
ninja: Entering directory `/home/klaus/.cache/yay/hyprland-git/src/Hyprland/build'
[208/596] Precompiling header ../src/pch/pch.hpp
FAILED: src/Hyprland.p/pch.hpp.gch 
c++ -Isrc/Hyprland.p -Isrc -I../src -Isubprojects/wlroots-hyprland/include -I../subprojects/wlroots-hyprland/include -Isubprojects/udis86 -I../subprojects/udis86 -I../subprojects/udis86/libudis86 -Isubprojects/udis86/__CMake_build -I../subprojects/udis86/__CMake_build -Iprotocols -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/uuid -flto=auto -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -std=c++23 -O3 -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -DHAS_EXECINFO -DUSES_SYSTEMD -w -fPIE -pthread -DWLR_USE_UNSTABLE -MD -MQ src/Hyprland.p/pch.hpp.gch -MF src/Hyprland.p/pch.hpp.gch.d -o src/Hyprland.p/pch.hpp.gch -c ../src/pch/pch.hpp
In file included from ../src/SharedDefs.hpp:3,
                 from ../src/includes.hpp:112,
                 from ../src/defines.hpp:1,
                 from ../src/Compositor.hpp:8,
                 from ../src/pch/pch.hpp:1:
../src/helpers/math/Math.hpp:6:10: fatal error: hyprutils/math/Region.hpp: No such file or directory
    6 | #include <hyprutils/math/Region.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[225/596] Compiling C++ object hyprctl/hyprctl.p/main.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: hyprland-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
hyprland-git - exit status 4

here's what i have installed:

$ pacman -Qs hyprland
local/hyprcursor 0.1.9-1
local/hyprland 0.41.2-1
local/hyprutils 0.1.2-1
local/hyprwayland-scanner-git 0.4.0.r0.gd5fa094c-1

$ uname -r
6.9.4-1-cachyos

How to reproduce

try to start Hyprland on arch or arcolinux

Crash reports, logs, images, videos

No response

davebarrett1959 commented 4 months ago

Same issue here after update. Downgraded to hyprland-git 0.41.2.r20.0a6e8300-1 and working again

nsklaus commented 4 months ago

this worked for me:

$ yay -S --asdeps hyprutils-git hyprlang-git hyprcursor-git
then 
$ yay -S hyprland-git
$ pacman -Qs hyprland
hyprland-git 0.41.2.r22.cc98594c-1

it's probably just aur struggling to cope with hyprland updates pace

fufexan commented 4 months ago

Follow @nsklaus' instructions.

igor-tereshchenko commented 3 months ago

updating just hyprutils to 0.1.5 fixes the issue