hyprland-0.29.1-1 compile errors
Closed this issue · 0 comments
tuxx commented
Getting compile errors on the latest hyprland release (0.29.1).
Tried with the arch AUR hyprland and hyprland-git packages, both fail.
AUR Hyprland:
[ 14%] Building CXX object CMakeFiles/hy3.dir/src/main.cpp.o
[ 28%] Building CXX object CMakeFiles/hy3.dir/src/dispatchers.cpp.o
[ 42%] Building CXX object CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp: In member function ‘virtual bool Hy3Layout::isWindowReachable(CWindow*)’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:719:75: error: ‘isWindowReachable’ is not a member of ‘IHyprLayout’
719 | turn this->getNodeFromWindow(window) != nullptr || IHyprLayout::isWindowReachable(window);
| ^~~~~~~~~~~~~~~~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp: In member function ‘void Hy3Layout::expand(int, ExpandOption, ExpandFullscreenOption)’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:1240:1: warning: label ‘unfullscreen’ defined but not used [-Wunused-label]
1240 | unfullscreen:
| ^~~~~~~~~~~~
In file included from /home/tuxx/.cache/yay/hy3-git/src/hy3/src/globals.hpp:4,
from /home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:4:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp: In instantiation of ‘void hy3_log(LogLevel, const std::string&, Args&& ...) [with Args = {long unsigned int, bool&}; std::string = std::__cxx11::basic_string<char>]’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:71:9: required from here
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp:7:19: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’
7 | Debug::log(level, "[hy3] " + fmt, args...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
In file included from /usr/include/hyprland/src/defines.hpp:2,
from /usr/include/hyprland/src/Compositor.hpp:7,
from /home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:1:
/usr/include/hyprland/src/debug/Log.hpp:19:56: note: initializing argument 2 of ‘void Debug::log(LogLevel, const char*, ...)’
19 | void log(LogLevel level, const char* fmt, ...);
| ~~~~~~~~~~~~^~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp: In instantiation of ‘void hy3_log(LogLevel, const std::string&, Args&& ...) [with Args = {long unsigned int, long unsigned int}; std::string = std::__cxx11::basic_string<char>]’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:81:10: required from here
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp:7:19: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’
7 | Debug::log(level, "[hy3] " + fmt, args...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
/usr/include/hyprland/src/debug/Log.hpp:19:56: note: initializing argument 2 of ‘void Debug::log(LogLevel, const char*, ...)’
19 | void log(LogLevel level, const char* fmt, ...);
| ~~~~~~~~~~~~^~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp: In instantiation of ‘void hy3_log(LogLevel, const std::string&, Args&& ...) [with Args = {long unsigned int}; std::string = std::__cxx11::basic_string<char>]’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:144:10: required from here
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp:7:19: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’
7 | Debug::log(level, "[hy3] " + fmt, args...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
/usr/include/hyprland/src/debug/Log.hpp:19:56: note: initializing argument 2 of ‘void Debug::log(LogLevel, const char*, ...)’
19 | void log(LogLevel level, const char* fmt, ...);
| ~~~~~~~~~~~~^~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp: In instantiation of ‘void hy3_log(LogLevel, const std::string&, Args&& ...) [with Args = {long unsigned int, int&, int&}; std::string = std::__cxx11::basic_string<char>]’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:150:10: required from here
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp:7:19: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’
7 | Debug::log(level, "[hy3] " + fmt, args...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
/usr/include/hyprland/src/debug/Log.hpp:19:56: note: initializing argument 2 of ‘void Debug::log(LogLevel, const char*, ...)’
19 | void log(LogLevel level, const char* fmt, ...);
| ~~~~~~~~~~~~^~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp: In instantiation of ‘void hy3_log(LogLevel, const std::string&, Args&& ...) [with Args = {long unsigned int, long unsigned int, long unsigned int, long unsigned int}; std::string = std::__cxx11::basic_string<char>]’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:206:9: required from here
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp:7:19: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’
7 | Debug::log(level, "[hy3] " + fmt, args...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
/usr/include/hyprland/src/debug/Log.hpp:19:56: note: initializing argument 2 of ‘void Debug::log(LogLevel, const char*, ...)’
19 | void log(LogLevel level, const char* fmt, ...);
| ~~~~~~~~~~~~^~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp: In instantiation of ‘void hy3_log(LogLevel, const std::string&, Args&& ...) [with Args = {long unsigned int, long unsigned int, long unsigned int}; std::string = std::__cxx11::basic_string<char>]’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:227:9: required from here
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp:7:19: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’
7 | Debug::log(level, "[hy3] " + fmt, args...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
/usr/include/hyprland/src/debug/Log.hpp:19:56: note: initializing argument 2 of ‘void Debug::log(LogLevel, const char*, ...)’
19 | void log(LogLevel level, const char* fmt, ...);
| ~~~~~~~~~~~~^~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp: In instantiation of ‘void hy3_log(LogLevel, const std::string&, Args&& ...) [with Args = {const int&}; std::string = std::__cxx11::basic_string<char>]’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:296:9: required from here
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/log.hpp:7:19: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’
7 | Debug::log(level, "[hy3] " + fmt, args...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
/usr/include/hyprland/src/debug/Log.hpp:19:56: note: initializing argument 2 of ‘void Debug::log(LogLevel, const char*, ...)’
19 | void log(LogLevel level, const char* fmt, ...);
| ~~~~~~~~~~~~^~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp: In member function ‘virtual CWindow* Hy3Layout::getNextWindowCandidate(CWindow*)’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:708:1: warning: control reaches end of non-void function [-Wreturn-type]
708 | }
| ^
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp: In member function ‘void Hy3Layout::setNodeSwallow(int, SetSwallowOption)’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:1145:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
1145 | case SetSwallowOption::NoSwallow: *containment = false;
| ~~~~~~~~~~~~~^~~~~~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:1146:9: note: here
1146 | case SetSwallowOption::Swallow: *containment = true;
| ^~~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:1146:54: warning: this statement may fall through [-Wimplicit-fallthrough=]
1146 | case SetSwallowOption::Swallow: *containment = true;
| ~~~~~~~~~~~~~^~~~~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:1147:9: note: here
1147 | case SetSwallowOption::Toggle: *containment = !*containment;
| ^~~~
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp: In member function ‘bool Hy3Layout::shouldRenderSelected(CWindow*)’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.cpp:1270:1: warning: control reaches end of non-void function [-Wreturn-type]
1270 | }
| ^
make[2]: *** [CMakeFiles/hy3.dir/build.make:104: CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/hy3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
-> error making: hy3-git-exit status 4
-> Failed to install the following packages. Manual intervention is required:
hy3-git - exit status 4
Aur hyprland-git:
[ 14%] Building CXX object CMakeFiles/hy3.dir/src/main.cpp.o
In file included from /usr/include/c++/13.2.1/memory:78,
from /usr/include/hyprland/src/Compositor.hpp:3,
from /home/tuxx/.cache/yay/hy3-git/src/hy3/src/main.cpp:3:
/usr/include/c++/13.2.1/bits/unique_ptr.h: In instantiation of ‘constexpr std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...) [with _Tp = Hy3Layout; _Args = {}; __detail::__unique_ptr_t<_Tp> = __detail::__unique_ptr_t<Hy3Layout>]’:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/main.cpp:55:1: required from here
/usr/include/c++/13.2.1/bits/unique_ptr.h:1070:30: error: invalid new-expression of abstract class type ‘Hy3Layout’
1070 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tuxx/.cache/yay/hy3-git/src/hy3/src/globals.hpp:3,
from /home/tuxx/.cache/yay/hy3-git/src/hy3/src/main.cpp:7:
/home/tuxx/.cache/yay/hy3-git/src/hy3/src/Hy3Layout.hpp:67:7: note: because the following virtual functions are pure within ‘Hy3Layout’:
67 | class Hy3Layout: public IHyprLayout {
| ^~~~~~~~~
In file included from /usr/include/hyprland/src/layout/DwindleLayout.hpp:3,
from /usr/include/hyprland/src/managers/LayoutManager.hpp:3,
from /usr/include/hyprland/src/Compositor.hpp:14:
/usr/include/hyprland/src/layout/IHyprLayout.hpp:46:18: note: ‘virtual void IHyprLayout::onWindowCreatedTiling(CWindow*, eDirection)’
46 | virtual void onWindowCreatedTiling(CWindow*, eDirection direction = DIRECTION_DEFAULT) = 0;
| ^~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/hy3.dir/build.make:76: CMakeFiles/hy3.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/hy3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
-> error making: hy3-git-exit status 4
-> Failed to install the following packages. Manual intervention is required:
hy3-git - exit status 4