From 6084a2bea7799776f36869f2d611e07501e5022d Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 5 Jan 2024 17:54:14 +0100 Subject: [PATCH] Installation: drop GCC dependency on FreeBSD System tomlplusplus is built against libc++ which conflicts with libstdc++ used by GCC. While tomlplusplus can be bundled it's only easy to do via Meson (--force-fallback-for). /usr/local/bin/ld: hyprpm/CMakeFiles/hyprpm.dir/src/core/DataState.cpp.o: in function `DataState::addNewPluginRepo(SPluginRepository const&)': DataState.cpp:(.text+0x16b4): undefined reference to `toml::v3::table::get_lower_bound(std::basic_string_view >)' /usr/local/bin/ld: DataState.cpp:(.text+0x1793): undefined reference to `toml::v3::table::insert_with_hint(toml::v3::impl::table_iterator, toml::v3::key&&, std::unique_ptr >&&)' /usr/local/bin/ld: DataState.cpp:(.text+0x2c59): undefined reference to `toml::v3::impl::print_to_stream(std::ostream&, toml::v3::table const&)' /usr/local/bin/ld: hyprpm/CMakeFiles/hyprpm.dir/src/core/DataState.cpp.o: in function `DataState::pluginRepoExists(std::__cxx11::basic_string, std::allocator > const&)': DataState.cpp:(.text+0x3739): undefined reference to `toml::v3::ex::parse_file(std::basic_string_view >)' /usr/local/bin/ld: DataState.cpp:(.text+0x3783): undefined reference to `toml::v3::table::get(std::basic_string_view >)' /usr/local/bin/ld: DataState.cpp:(.text+0x37ab): undefined reference to `toml::v3::table::get(std::basic_string_view >)' [...] --- pages/Getting Started/Installation.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/Getting Started/Installation.md b/pages/Getting Started/Installation.md index 2ae9be4..633d1f4 100644 --- a/pages/Getting Started/Installation.md +++ b/pages/Getting Started/Installation.md @@ -326,9 +326,8 @@ zypper in gcc-c++ git meson cmake "pkgconfig(cairo)" "pkgconfig(egl)" "pkgconfig {{% details title="FreeBSD" closed="true" %}} ```plain -pkg install git pkgconf gmake gcc14 evdev-proto cmake wayland-protocols wayland libglvnd libxkbcommon libinput cairo pango pixman tomlplusplus libxcb +pkg install git pkgconf gmake evdev-proto cmake wayland-protocols wayland libglvnd libxkbcommon libinput cairo pango pixman tomlplusplus libxcb pkg install meson jq hwdata -export CC=gcc14 CXX=g++14 LDFLAGS="-static-libstdc++ -static-libgcc" ``` {{% /details %}}