hyprwm/hyprcursor

build fails when installing aur package

Closed this issue · 2 comments

yay -S hyprcursor-git                                                                                                               1 ✘  20s  
AUR Dependency (1): hyprcursor-git-0.1.8.r0.gcab47461-1
:: PKGBUILD up to date, skipping download: hyprcursor-git
  1 hyprcursor-git                           (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> N
  1 hyprcursor-git                           (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> N
==> Making package: hyprcursor-git 0.1.8.r0.gcab47461-1 (Wed 31 Jul 2024 16:18:52 CEST)
==> Retrieving sources...
  -> Updating hyprcursor git repo...
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    hyprcursor ... Skipped
:: (1/1) Parsing SRCINFO: hyprcursor-git
==> Making package: hyprcursor-git 0.1.8.r0.gcab47461-1 (Wed 31 Jul 2024 16:18:53 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating hyprcursor git repo...
==> Validating source files with sha256sums...
    hyprcursor ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of hyprcursor git repo...
Cloning into 'hyprcursor'...
done.
==> Starting pkgver()...
==> Updated version: hyprcursor-git 0.1.9.r10.g5a95d851-1
==> Sources are ready.
==> Making package: hyprcursor-git 0.1.9.r10.g5a95d851-1 (Wed 31 Jul 2024 16:18:55 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
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
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Checking for modules 'hyprlang>=0.4.2;libzip;cairo;librsvg-2.0;tomlplusplus'
--   Found hyprlang, version 0.5.2
--   Found libzip, version 1.10.1
--   Found cairo, version 1.18.0
--   Found librsvg-2.0, version 2.58.2
--   Found tomlplusplus, version 3.4.0
-- Configuring hyprcursor in Release
-- Configuring done (0.5s)
-- Generating done (0.0s)
-- Build files have been written to: /home/loeken/.cache/yay/hyprcursor-git/src/hyprcursor/build
[  7%] Building CXX object CMakeFiles/hyprcursor.dir/libhyprcursor/VarList.cpp.o
[ 14%] Building CXX object CMakeFiles/hyprcursor.dir/libhyprcursor/hyprcursor.cpp.o
[ 21%] Building CXX object CMakeFiles/hyprcursor.dir/libhyprcursor/hyprcursor_c.cpp.o
[ 28%] Building CXX object CMakeFiles/hyprcursor.dir/libhyprcursor/manifest.cpp.o
[ 35%] Building CXX object CMakeFiles/hyprcursor.dir/libhyprcursor/meta.cpp.o
[ 42%] Linking CXX shared library libhyprcursor.so
[ 42%] Built target hyprcursor
[ 57%] Building CXX object CMakeFiles/hyprcursor-util.dir/hyprcursor-util/src/main.cpp.o
[ 57%] Building CXX object CMakeFiles/hyprcursor_test1.dir/tests/full_rendering.cpp.o
[ 64%] Linking CXX executable hyprcursor_test1
/home/loeken/.cache/yay/hyprcursor-git/src/hyprcursor/hyprcursor-util/src/main.cpp: In function ‘std::string spawnSync(const std::string&)’:
/home/loeken/.cache/yay/hyprcursor-git/src/hyprcursor/hyprcursor-util/src/main.cpp:228:50: warning: ignoring attributes on template argument ‘int (*)(FILE*)’ [-Wignored-attributes]
  228 |     const std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose);
      |                                                  ^
/usr/bin/ld: warning: libhyprutils.so.0, needed by /usr/lib/libhyprlang.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::CVarList::CVarList(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, char, bool)'
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::isNumber(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::replaceInString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/hyprcursor_test1.dir/build.make:108: hyprcursor_test1] Error 1
make[1]: *** [CMakeFiles/Makefile2:928: CMakeFiles/hyprcursor_test1.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 71%] Linking CXX executable hyprcursor-util
/usr/bin/ld: warning: libhyprutils.so.0, needed by /usr/lib/libhyprlang.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::CVarList::CVarList(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, char, bool)'
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::isNumber(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::replaceInString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/hyprcursor-util.dir/build.make:108: hyprcursor-util] Error 1
make[1]: *** [CMakeFiles/Makefile2:874: CMakeFiles/hyprcursor-util.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: hyprcursor-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
hyprcursor-git - exit status 4

this is not a problem with hyprcursor

that's a really bad idea, please do not report crashes you'll encounter after doing this