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
19.88k stars 848 forks source link

hyprpm update failed to install headers with error code 2 (duplicate of #6909) #7120

Closed pololo300 closed 2 months ago

pololo300 commented 2 months ago

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 918d8340afd652b011b937d29d5eea0be08467f5 (flake.lock: update). Date: Tue Jun 25 12:06:02 2024 Tag: v0.41.2, commits: 4886 flags: (if any) System Information: System name: Linux Node name: thinkpol Release: 6.10.2-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Sat, 27 Jul 2024 16:49:55 +0000 GPU information: 07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1636] (rev d1) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ```

Description

After a fresh hyprdots install i'm not able to update headers. If this isn't the place to post the issue, let me know.

How to reproduce

I don't know how to reproduce the error. I read all the logs and all simillar issues and I can't solve the problem.

Crash reports, logs, images, videos

hyprpm update -v
[v] version returned: Hyprland, built from branch  at commit 918d8340afd652b011b937d29d5eea0be08467f5  (flake.lock: update).
Date: Tue Jun 25 12:06:02 2024
Tag: v0.41.2, commits: 4886

flags: (if any)

[v] parsed commit 918d8340afd652b011b937d29d5eea0be08467f5 at branch  on Tue Jun 25 12:06:02 2024, commits 4886

! Cloning https://github.com/hyprwm/hyprland, this might take a moment.                                                                                                                                          
[v] will shallow since: Tue Jun 18 12:06:02 2024                                                                                                                                                                 

✔ cloned                                                                                                                                                                                                         
[v] git returned (co): Your branch is up to date with 'origin/main'.                                                                                                                                             

[v] git returned (rs): rm 'subprojects/tracy'                                                                                                                                                                    
fatal: not a git repository: ../../.git/modules/subprojects/wlroots-hyprland
fatal: could not reset submodule index

✔ checked out to running ver                                                                                                                                                                                     
! configuring Hyprland                                                                                                                                                                                           
[v] setting PREFIX for cmake to /home/pol/.local/share/hyprpm/headersRoot                                                                                                                                        
[v] cmake returned: CMake Warning (dev) at /usr/share/cmake/Modules/GNUInstallDirs.cmake:253 (message):                                                                                                          
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  CMakeLists.txt:5 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
Not searching for unused variables given on the command line.

-- The C compiler identification is GNU 14.1.1
-- The CXX compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Gathering git info
-- Found Python3: /usr/bin/python3.12 (found version "3.12.4") found components: Interpreter
Building itab.c/itab.h...
-- Setting up wlroots
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Found WaylandScanner at /usr/bin/wayland-scanner
-- Found wayland-protocols at //usr/share/wayland-protocols
-- Configuring Hyprland in Release with CMake
-- Checking deps...
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenGL: /usr/lib/libOpenGL.so  found components: GLES3
-- Checking for modules 'xkbcommon;uuid;wayland-server;wayland-client;wayland-cursor;wayland-protocols;cairo;pango;pangocairo;pixman-1;libdrm;libinput;hwdata;libseat;libdisplay-info;libliftoff;libudev;gbm;hyprlang>=0.3.2;hyprcursor>=0.1.7;hyprutils>=0.1.5'
--   Found xkbcommon, version 1.7.0
--   Found uuid, version 2.40.2
--   Found wayland-server, version 1.23.0
--   Found wayland-client, version 1.23.0
--   Found wayland-cursor, version 1.23.0
--   Found wayland-protocols, version 1.36
--   Found cairo, version 1.18.0
--   Found pango, version 1.54.0
--   Found pangocairo, version 1.54.0
--   Found pixman-1, version 0.43.4
--   Found libdrm, version 2.4.122
--   Found libinput, version 1.26.1
--   Found hwdata, version 0.384
--   Found libseat, version 0.8.0
--   Found libdisplay-info, version 0.2.0
--   Found libliftoff, version 0.5.0
--   Found libudev, version 256
--   Found gbm, version 24.1.4-arch1.2
--   Found hyprlang, version 0.5.2
--   Found hyprcursor, version 0.1.9
--   Found hyprutils, version 0.2.0
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Configuration supports execinfo
-- Looking for backtrace in execinfo
-- Looking for backtrace in execinfo - not found
-- Looking for sys/timerfd.h
-- Looking for sys/timerfd.h - found
-- Checking for module 'epoll-shim'
--   Package 'epoll-shim', required by 'virtual:world', not found
-- XWAYLAND Enabled (NO_XWAYLAND not defined) checking deps...
-- Checking for modules 'xcb;xwayland;xcb-util;xcb-render;xcb-xfixes;xcb-icccm;xcb-composite;xcb-res;xcb-ewmh;xcb-errors'
--   Found xcb, version 1.17.0
--   Found xwayland, version 24.1.1
--   Found xcb-util, version 0.4.1
--   Found xcb-render, version 1.17.0
--   Found xcb-xfixes, version 1.17.0
--   Found xcb-icccm, version 0.4.2
--   Found xcb-composite, version 1.17.0
--   Found xcb-res, version 1.17.0
--   Found xcb-ewmh, version 0.4.2
--   Found xcb-errors, version 1.0.1
-- SYSTEMD support is requested (NO_SYSTEMD not defined)...
-- Setting precompiled headers
-- Setting link libraries
-- Checking for module 'hyprutils>=0.1.1'
--   Found hyprutils, version 0.2.0
-- Checking for modules 'tomlplusplus;hyprutils>=0.1.1'
--   Found tomlplusplus, version 3.4.0
--   Found hyprutils, version 0.2.0
-- Configuring done (2.6s)
-- Generating done (0.1s)
-- Build files have been written to: /tmp/hyprpm/hyprland-pol/build

[v] meson returned:                                                                                                                                                                                              
ERROR: Neither source directory 'build' nor build directory None contain a build file meson.build.

✔ configured Hyprland                                                                                                                                                                                            
[v] installation will run: sed -i -e "s#PREFIX = /usr/local#PREFIX = /home/pol/.local/share/hyprpm/headersRoot#" /tmp/hyprpm/hyprland-pol/Makefile && cd /tmp/hyprpm/hyprland-pol && make installheaders         
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing sources[v] installer returned: # remove previous headers from hyprpm's dir                                                                
rm -fr /home/pol/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/pol/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/pol/.local/share/hyprpm/headersRoot/include/hyprland/protocols
mkdir -p /home/pol/.local/share/hyprpm/headersRoot/include/hyprland/wlr
mkdir -p /home/pol/.local/share/hyprpm/headersRoot/share/pkgconfig
cmake --build ./build --config Release --target generate-protocol-headers
[0/2] Re-checking globbed directories...
[1/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wlr-gamma-control-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/wlr-gamma-control-unstable-v1.hpp
[2/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wlr-foreign-toplevel-management-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/wlr-foreign-toplevel-management-unstable-v1.hpp
[3/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wlr-output-power-management-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/wlr-output-power-management-unstable-v1.hpp
[4/41] Generating /tmp/hyprpm/hyprland-pol/protocols/hyprland-global-shortcuts-v1-protocol.h
[5/41] Generating /tmp/hyprpm/hyprland-pol/protocols/virtual-keyboard-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/virtual-keyboard-unstable-v1.hpp
[6/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wlr-screencopy-unstable-v1-protocol.h
[7/41] Generating /tmp/hyprpm/hyprland-pol/protocols/hyprland-toplevel-export-v1-protocol.h
[8/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wlr-virtual-pointer-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/wlr-virtual-pointer-unstable-v1.hpp
[9/41] Generating /tmp/hyprpm/hyprland-pol/protocols/text-input-unstable-v1-protocol.h
[10/41] Generating /tmp/hyprpm/hyprland-pol/protocols/input-method-unstable-v2.cpp, /tmp/hyprpm/hyprland-pol/protocols/input-method-unstable-v2.hpp
[11/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wlr-output-management-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/wlr-output-management-unstable-v1.hpp
[12/41] Generating /tmp/hyprpm/hyprland-pol/protocols/kde-server-decoration.cpp, /tmp/hyprpm/hyprland-pol/protocols/kde-server-decoration.hpp
[13/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wlr-data-control-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/wlr-data-control-unstable-v1.hpp
[14/41] Generating /tmp/hyprpm/hyprland-pol/protocols/hyprland-focus-grab-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/hyprland-focus-grab-v1.hpp
[15/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wlr-layer-shell-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/wlr-layer-shell-unstable-v1.hpp
[16/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wayland-drm.cpp, /tmp/hyprpm/hyprland-pol/protocols/wayland-drm.hpp
[17/41] Generating /tmp/hyprpm/hyprland-pol/protocols/tearing-control-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/tearing-control-v1.hpp
[18/41] Generating /tmp/hyprpm/hyprland-pol/protocols/xdg-output-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/xdg-output-unstable-v1.hpp
[19/41] Generating /tmp/hyprpm/hyprland-pol/protocols/fractional-scale-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/fractional-scale-v1.hpp
[20/41] Generating /tmp/hyprpm/hyprland-pol/protocols/cursor-shape-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/cursor-shape-v1.hpp
[21/41] Generating /tmp/hyprpm/hyprland-pol/protocols/idle-inhibit-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/idle-inhibit-unstable-v1.hpp
[22/41] Generating /tmp/hyprpm/hyprland-pol/protocols/relative-pointer-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/relative-pointer-unstable-v1.hpp
[23/41] Generating /tmp/hyprpm/hyprland-pol/protocols/xdg-decoration-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/xdg-decoration-unstable-v1.hpp
[24/41] Generating /tmp/hyprpm/hyprland-pol/protocols/alpha-modifier-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/alpha-modifier-v1.hpp
[25/41] Generating /tmp/hyprpm/hyprland-pol/protocols/ext-foreign-toplevel-list-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/ext-foreign-toplevel-list-v1.hpp
[26/41] Generating /tmp/hyprpm/hyprland-pol/protocols/pointer-gestures-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/pointer-gestures-unstable-v1.hpp
[27/41] Generating /tmp/hyprpm/hyprland-pol/protocols/keyboard-shortcuts-inhibit-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/keyboard-shortcuts-inhibit-unstable-v1.hpp
[28/41] Generating /tmp/hyprpm/hyprland-pol/protocols/pointer-constraints-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/pointer-constraints-unstable-v1.hpp
[29/41] Generating /tmp/hyprpm/hyprland-pol/protocols/text-input-unstable-v3.cpp, /tmp/hyprpm/hyprland-pol/protocols/text-input-unstable-v3.hpp
[30/41] Generating /tmp/hyprpm/hyprland-pol/protocols/ext-idle-notify-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/ext-idle-notify-v1.hpp
[31/41] Generating /tmp/hyprpm/hyprland-pol/protocols/xdg-activation-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/xdg-activation-v1.hpp
[32/41] Generating /tmp/hyprpm/hyprland-pol/protocols/presentation-time.cpp, /tmp/hyprpm/hyprland-pol/protocols/presentation-time.hpp
[33/41] Generating /tmp/hyprpm/hyprland-pol/protocols/ext-session-lock-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/ext-session-lock-v1.hpp
[34/41] Generating /tmp/hyprpm/hyprland-pol/protocols/xwayland-shell-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/xwayland-shell-v1.hpp
[35/41] Generating /tmp/hyprpm/hyprland-pol/protocols/tablet-v2.cpp, /tmp/hyprpm/hyprland-pol/protocols/tablet-v2.hpp
[36/41] Generating /tmp/hyprpm/hyprland-pol/protocols/primary-selection-unstable-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/primary-selection-unstable-v1.hpp
[37/41] Generating /tmp/hyprpm/hyprland-pol/protocols/xdg-shell.cpp, /tmp/hyprpm/hyprland-pol/protocols/xdg-shell.hpp
[38/41] Generating /tmp/hyprpm/hyprland-pol/protocols/viewporter.cpp, /tmp/hyprpm/hyprland-pol/protocols/viewporter.hpp
[39/41] Generating /tmp/hyprpm/hyprland-pol/protocols/linux-dmabuf-v1.cpp, /tmp/hyprpm/hyprland-pol/protocols/linux-dmabuf-v1.hpp
[40/41] Generating /tmp/hyprpm/hyprland-pol/protocols/wayland.cpp, /tmp/hyprpm/hyprland-pol/protocols/wayland.hpp
find src -name '*.h*' -print0 | cpio --quiet -0dump /home/pol/.local/share/hyprpm/headersRoot/include/hyprland
cd subprojects/wlroots-hyprland/include/wlr && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/pol/.local/share/hyprpm/headersRoot/include/hyprland/wlr && cd ../../../..
/bin/sh: line 1: cd: subprojects/wlroots-hyprland/include/wlr: No such file or directory
make: *** [Makefile:56: installheaders] Error 1

✖ failed to install headers with error code 2                                                                                                                                                                    
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  5 / 5  Failed                                                                                                                                               

✖ Headers missing. Please run hyprpm update to fix those.
izmyname commented 2 months ago

https://github.com/hyprwm/Hyprland/issues/6909 ?

pololo300 commented 2 months ago

Yes, thanks

izmyname commented 2 months ago

Since the issue is a duplicate, I'd like to ask you to close it and continue in the issue thread I linked. Thank you.

pololo300 commented 2 months ago

Duplicate of #6909