Skip to content

core: include string header - #31

Merged
vaxerski merged 1 commit into
hyprwm:mainfrom
LinuxUserGD:patch-1
Oct 15, 2026
Merged

vaxerski merged 1 commit into
hyprwm:mainfrom
LinuxUserGD:patch-1

Conversation

@LinuxUserGD

Copy link
Copy Markdown
Contributor

Fixes the following compilation errors on Gentoo Linux amd64 (musl/llvm) when compiling hyprland after installing hyprwire:

[75/1101] /usr/lib/llvm/24/bin/clang++ -DHAS_EXECINFO -DHYPRLAND_VERSION=\"0.56.0\" -Dhyprctl_EXPORTS -I/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/. -I/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/src -I/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/protocols -I/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols  -Werror=odr -Werror=conditional-type-mismatch -Werror=pointer-type-mismatch -Werror=selector-type-mismatch -Werror=strict-aliasing  -march=native -O3 -g0 -D_FORTIFY_SOURCE=2 -DNDEBUG -flto -stdlib=libc++ -DHYPRPM_GENTOO_LUA_PCFILE=\"/usr/lib/pkgconfig/lua5.4.pc\" -DHYPRPM_EXTRA_CFLAGS=\"-I/usr/include/lua5.4\" -DHYPRPM_EXTRA_CXXFLAGS=\"-I/usr/include/lua5.4\" -std=gnu++26 -fvisibility=hidden -O3 -Wall -Wextra -Wpedantic -Wno-keyword-macro -Wno-unused-result -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -frtti -fmacro-prefix-map=/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/= -fno-lto -pthread -Wno-float-conversion -Wno-implicit-float-conversion -Wno-implicit-int-float-conversion -Wno-unknown-warning-option -Wno-unused-command-line-argument -D_BSD_SOURCE -MD -MT hyprctl/CMakeFiles/hyprctl.dir/hw-protocols/hyprpaper_core-client.cpp.o -MF hyprctl/CMakeFiles/hyprctl.dir/hw-protocols/hyprpaper_core-client.cpp.o.d -o hyprctl/CMakeFiles/hyprctl.dir/hw-protocols/hyprpaper_core-client.cpp.o -c /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-client.cpp
FAILED: [code=1] hyprctl/CMakeFiles/hyprctl.dir/hw-protocols/hyprpaper_core-client.cpp.o
/usr/lib/llvm/24/bin/clang++ -DHAS_EXECINFO -DHYPRLAND_VERSION=\"0.56.0\" -Dhyprctl_EXPORTS -I/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/. -I/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/src -I/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/protocols -I/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols  -Werror=odr -Werror=conditional-type-mismatch -Werror=pointer-type-mismatch -Werror=selector-type-mismatch -Werror=strict-aliasing  -march=native -O3 -g0 -D_FORTIFY_SOURCE=2 -DNDEBUG -flto -stdlib=libc++ -DHYPRPM_GENTOO_LUA_PCFILE=\"/usr/lib/pkgconfig/lua5.4.pc\" -DHYPRPM_EXTRA_CFLAGS=\"-I/usr/include/lua5.4\" -DHYPRPM_EXTRA_CXXFLAGS=\"-I/usr/include/lua5.4\" -std=gnu++26 -fvisibility=hidden -O3 -Wall -Wextra -Wpedantic -Wno-keyword-macro -Wno-unused-result -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -frtti -fmacro-prefix-map=/var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/= -fno-lto -pthread -Wno-float-conversion -Wno-implicit-float-conversion -Wno-implicit-int-float-conversion -Wno-unknown-warning-option -Wno-unused-command-line-argument -D_BSD_SOURCE -MD -MT hyprctl/CMakeFiles/hyprctl.dir/hw-protocols/hyprpaper_core-client.cpp.o -MF hyprctl/CMakeFiles/hyprctl.dir/hw-protocols/hyprpaper_core-client.cpp.o.d -o hyprctl/CMakeFiles/hyprctl.dir/hw-protocols/hyprpaper_core-client.cpp.o -c /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-client.cpp
In file included from /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-client.cpp:41:
In file included from /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-client.hpp:43:
In file included from /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-spec.hpp:43:
In file included from /usr/include/hyprwire/hyprwire.hpp:5:
In file included from /usr/include/hyprwire/./core/implementation/Spec.hpp:7:
/usr/include/hyprwire/./core/implementation/Types.hpp:12:30: error: implicit instantiation of undefined template 'std::basic_string<char>'
   12 |         std::string          returnsType  = "";
      |                              ^
/usr/include/c++/v1/__fwd/string.h:43:7: note: template is declared here
   43 | class basic_string;
      |       ^
In file included from /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-client.cpp:41:
In file included from /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-client.hpp:43:
In file included from /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-spec.hpp:43:
In file included from /usr/include/hyprwire/hyprwire.hpp:6:
/usr/include/hyprwire/./core/implementation/ServerImpl.hpp:13:73: error: implicit instantiation of undefined template 'std::basic_string<char>'
   13 |         std::string                                                     objectName = "";
      |                                                                         ^
/usr/include/c++/v1/__fwd/string.h:43:7: note: template is declared here
   43 | class basic_string;
      |       ^
In file included from /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-client.cpp:41:
In file included from /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-client.hpp:43:
In file included from /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999/hyprctl/hw-protocols/hyprpaper_core-spec.hpp:43:
In file included from /usr/include/hyprwire/hyprwire.hpp:7:
/usr/include/hyprwire/./core/implementation/ClientImpl.hpp:11:21: error: implicit instantiation of undefined template 'std::basic_string<char>'
   11 |         std::string objectName = "";
      |                     ^
/usr/include/c++/v1/__fwd/string.h:43:7: note: template is declared here
   43 | class basic_string;
      |       ^
3 errors generated.

Fixes error `implicit instantiation of undefined template 'std::basic_string<char>'` on llvm/musl
@vaxerski
vaxerski merged commit a546e42 into hyprwm:main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants