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.97k stars 913 forks source link

Debian 12 Build error #7890

Closed Xdavius closed 2 months ago

Xdavius commented 2 months ago

Already reported ? *

Regression?

No

System Info and Version

davius@distrobox-davius-debian ~/PACSCRIPTS-DEV $ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Description

Hi dev.

Error building :

-- Found cairo, version 1.16.0 -- Found pango, version 1.50.12 -- Found pangocairo, version 1.50.12

[176/249] Building CXX object CMakeFiles/Hyprland.dir/src/render/OpenGL.cpp.o
FAILED: CMakeFiles/Hyprland.dir/src/render/OpenGL.cpp.o 
/opt/gcc-latest/bin/g++ -DDATAROOTDIR=\"/usr/src/pacstall/hyprland/usr/share\" -DHAS_EXECINFO -DHyprland_EXPORTS -DUSES_SYSTEMD -I"/tmp/pacstall/hyprland~0.43.0/hyprland-source/." -I"/tmp/pacstall/hyprland~0.43.0/hyprland-source/src" -I"/tmp/pacstall/hyprland~0.43.0/hyprland-source/subprojects/udis86" -I"/tmp/pacstall/hyprland~0.43.0/hyprland-source/protocols" -I"/tmp/pacstall/hyprland~0.43.0/hyprland-source/subprojects/udis86/libudis86" -isystem /usr/include/uuid -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -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/libdrm -O3 -DNDEBUG -std=gnu++26 -O3 -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith "-fmacro-prefix-map=/tmp/pacstall/hyprland~0.43.0/hyprland-source/=" -pthread -Winvalid-pch -include "/tmp/pacstall/hyprland~0.43.0/hyprland-source/build/CMakeFiles/Hyprland.dir/cmake_pch.hxx" -MD -MT CMakeFiles/Hyprland.dir/src/render/OpenGL.cpp.o -MF CMakeFiles/Hyprland.dir/src/render/OpenGL.cpp.o.d -o CMakeFiles/Hyprland.dir/src/render/OpenGL.cpp.o -c '/tmp/pacstall/hyprland~0.43.0/hyprland-source/src/render/OpenGL.cpp'
/tmp/pacstall/hyprland~0.43.0/hyprland-source/src/render/OpenGL.cpp: In member function ‘Hyprutils::Memory::CSharedPointer<CTexture> CHyprOpenGLImpl::loadAsset(const std::string&)’:
/tmp/pacstall/hyprland~0.43.0/hyprland-source/src/render/OpenGL.cpp:2630:44: error: ‘CAIRO_FORMAT_RGB96F’ was not declared in this scope; did you mean ‘CAIRO_FORMAT_RGB30’?
 2630 |     const GLint glIFormat = CAIROFORMAT == CAIRO_FORMAT_RGB96F ?
      |                                            ^~~~~~~~~~~~~~~~~~~
      |                                            CAIRO_FORMAT_RGB30

Cairo version issue ? EDIT : Yes. Upgrading to latest solve the issue

How to reproduce

build() {
  export CC=/opt/gcc-latest/bin/gcc
  export CXX=/opt/gcc-latest/bin/g++
  export LD_LIBRARY_PATH=/opt/gcc-latest/lib64:$LD_LIBRARY_PATH
  cd "${_archive}"
  make LDFLAGS="-static-libstdc++" all -j"${NCPU}" PREFIX="${pkgdir}/usr"
}

Crash reports, logs, images, videos

No response

Xdavius commented 2 months ago

EDIT : Yes. Upgrading to latest solve the issue