Skip to content

multiple compiler errors since GCC 13 #115

@dangowrt

Description

@dangowrt

Please see https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/packages/rtpmidid/compile.txt

I've tried fixing that by doing this:

diff --git a/include/rtpmidid/iobytes.hpp b/include/rtpmidid/iobytes.hpp
index 8d9d4ad..88fa1eb 100644
--- a/include/rtpmidid/iobytes.hpp
+++ b/include/rtpmidid/iobytes.hpp
@@ -20,6 +20,7 @@
 #pragma once
 #include "./exceptions.hpp"
 #include "logger.hpp"
+#include <cstdio>
 #include <vector>
 
 // NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic,cppcoreguidelines-pro-avoid-magic-numbers)
@@ -120,7 +121,7 @@ public:
         puts("\033[0m");
       }
       if (isprint(*data)) {
-        putc(*data, ::stdout);
+        putc(*data, stdout);
       } else {
         puts(".");
       }
diff --git a/include/rtpmidid/poller.hpp b/include/rtpmidid/poller.hpp
index 9ceac15..fd23828 100644
--- a/include/rtpmidid/poller.hpp
+++ b/include/rtpmidid/poller.hpp
@@ -22,6 +22,7 @@
 #include "utils.hpp"
 #include <chrono>
 #include <functional>
+#include <memory>
 #include <optional>
 
 // #define DEBUG0 DEBUG
diff --git a/include/rtpmidid/signal.hpp b/include/rtpmidid/signal.hpp
index dffb759..a7fe9c6 100644
--- a/include/rtpmidid/signal.hpp
+++ b/include/rtpmidid/signal.hpp
@@ -25,6 +25,7 @@
 #include <cstdint>
 #include <functional>
 #include <map>
+#include <memory>
 
 // #define DEBUG0 DEBUG
 #define DEBUG0(...)

However, now I'm seeing even more problems and it's beyond my (extremely limited) experience level with C++

Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/bin/aarch64-openwrt-linux-musl-gcc - 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/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/bin/aarch64-openwrt-linux-musl-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type Release
-- Precompiled headers enabled
-- Found PkgConfig: /usr/src/openwrt/staging_dir/host/bin/pkg-config (found version "2.2.0")
-- Checking for module 'avahi-client'
--   Found avahi-client, version 0.8
-- Checking for module 'fmt'
--   Found fmt, version 11.0.2
-- Checking for module 'alsa'
--   Found alsa, version 1.2.11
-- Version 23.12~57~g1c14a
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12
touch /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/.built
touch /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/.built_check
MAKEFLAGS="--jobserver-auth=fifo:/tmp/GMfifo824239" /usr/src/openwrt/staging_dir/host/bin/ninja   -C /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12 
ninja: Entering directory `/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12'
[14/71] Building CXX object tests/CMakeFiles/test_rtppeer.dir/test_rtppeer.cpp.o
FAILED: tests/CMakeFiles/test_rtppeer.dir/test_rtppeer.cpp.o 
/usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/bin/aarch64-openwrt-linux-musl-g++ -DRTPMIDID_VERSION="\"23.12~57~g1c14a\"" -I/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/src -I/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include -Os -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12=rtpmidid-23.12 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG   -std=gnu++17 -Wall -Werror -O2 -D_REENTRANT -Winvalid-pch -include /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/tests/CMakeFiles/test_rtppeer.dir/cmake_pch.hxx -MD -MT tests/CMakeFiles/test_rtppeer.dir/test_rtppeer.cpp.o -MF tests/CMakeFiles/test_rtppeer.dir/test_rtppeer.cpp.o.d -o tests/CMakeFiles/test_rtppeer.dir/test_rtppeer.cpp.o -c /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/tests/test_rtppeer.cpp
In file included from /usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/format.h:41,
                 from /usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/core.h:5,
                 from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/precompile.hpp:21,
                 from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/tests/CMakeFiles/test_rtppeer.dir/cmake_pch.hxx:5,
                 from <command-line>:
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = rtpmidid::rtppeer_t::status_e; Formatter = fmt::v11::formatter<rtpmidid::rtppeer_t::status_e>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = rtpmidid::rtppeer_t::status_e; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = rtpmidid::rtppeer_t::status_e; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, rtpmidid::rtppeer_t::status_e}; long unsigned int NUM_ARGS = 2; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 253; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, rtpmidid::rtppeer_t::status_e&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, rtpmidid::rtppeer_t::status_e&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, rtpmidid::rtppeer_t::status_e}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/tests/test_rtppeer.cpp:44:9:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<rtpmidid::rtppeer_t::status_e>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/tests/test_rtppeer.cpp:25:
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/rtppeer.hpp:156:8: note:   in call to 'auto fmt::v11::formatter<rtpmidid::rtppeer_t::status_e>::format(rtpmidid::rtppeer_t::status_e, fmt::v11::format_context&)'
  156 |   auto format(rtpmidid::rtppeer_t::status_e c, format_context &ctx) {
      |        ^~~~~~
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = rtpmidid::rtppeer_t::disconnect_reason_e; Formatter = fmt::v11::formatter<rtpmidid::rtppeer_t::disconnect_reason_e>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = rtpmidid::rtppeer_t::disconnect_reason_e; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = rtpmidid::rtppeer_t::disconnect_reason_e; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {rtpmidid::rtppeer_t::disconnect_reason_e}; long unsigned int NUM_ARGS = 1; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 15; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {rtpmidid::rtppeer_t::disconnect_reason_e&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, rtpmidid::rtppeer_t::disconnect_reason_e&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, rtpmidid::rtppeer_t::disconnect_reason_e}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/tests/test_rtppeer.cpp:49:9:   [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/aarch64-openwrt-linux-musl/include/c++/13.3.0/type_traits:2569:55:   required from 'struct std::__result_of_impl<false, false, test_connect_disconnect()::<lambda(auto:1)>&, rtpmidid::rtppeer_t::disconnect_reason_e>'
/usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/aarch64-openwrt-linux-musl/include/c++/13.3.0/bits/std_function.h:348:9:   recursively required by substitution of 'template<class _Result, class _Ret> struct std::__is_invocable_impl<_Result, _Ret, true, std::__void_t<typename _CTp::type> > [with _Result = std::__invoke_result<test_connect_disconnect()::<lambda(auto:1)>&, rtpmidid::rtppeer_t::disconnect_reason_e>; _Ret = void]'
/usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/aarch64-openwrt-linux-musl/include/c++/13.3.0/bits/std_function.h:348:9:   required from 'struct std::function<void(rtpmidid::rtppeer_t::disconnect_reason_e)>::_Callable<test_connect_disconnect()::<lambda(auto:1)>, test_connect_disconnect()::<lambda(auto:1)>, std::__invoke_result<test_connect_disconnect()::<lambda(auto:1)>&, rtpmidid::rtppeer_t::disconnect_reason_e> >'
/usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/aarch64-openwrt-linux-musl/include/c++/13.3.0/bits/std_function.h:353:8:   required by substitution of 'template<class _Res, class ... _ArgTypes> template<class _Cond, class _Tp> using std::function<_Res(_ArgTypes ...)>::_Requires = std::__enable_if_t<_Cond::value, _Tp> [with _Cond = std::function<void(rtpmidid::rtppeer_t::disconnect_reason_e)>::_Callable<test_connect_disconnect()::<lambda(auto:1)>, test_connect_disconnect()::<lambda(auto:1)>, std::__invoke_result<test_connect_disconnect()::<lambda(auto:1)>&, rtpmidid::rtppeer_t::disconnect_reason_e> >; _Tp = void; _Res = void; _ArgTypes = {rtpmidid::rtppeer_t::disconnect_reason_e}]'
/usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/aarch64-openwrt-linux-musl/include/c++/13.3.0/bits/std_function.h:434:9:   required by substitution of 'template<class _Functor, class _Constraints> std::function<void(rtpmidid::rtppeer_t::disconnect_reason_e)>::function(_Functor&&) [with _Functor = test_connect_disconnect()::<lambda(auto:1)>; _Constraints = void]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/tests/test_rtppeer.cpp:48:36:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<rtpmidid::rtppeer_t::disconnect_reason_e>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/rtppeer.hpp:196:8: note:   in call to 'auto fmt::v11::formatter<rtpmidid::rtppeer_t::disconnect_reason_e>::format(rtpmidid::rtppeer_t::disconnect_reason_e, fmt::v11::format_context&)'
  196 |   auto format(rtpmidid::rtppeer_t::disconnect_reason_e c, format_context &ctx) {
      |        ^~~~~~
[15/71] Building CXX object lib/CMakeFiles/rtpmidid-static.dir/rtppeer.cpp.o
FAILED: lib/CMakeFiles/rtpmidid-static.dir/rtppeer.cpp.o 
/usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/bin/aarch64-openwrt-linux-musl-g++ -DRTPMIDID_VERSION="\"23.12~57~g1c14a\"" -I/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/src -I/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include -Os -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12=rtpmidid-23.12 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG   -std=gnu++17 -Wall -Werror -O2 -D_REENTRANT -Winvalid-pch -include /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/CMakeFiles/rtpmidid-static.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/rtpmidid-static.dir/rtppeer.cpp.o -MF lib/CMakeFiles/rtpmidid-static.dir/rtppeer.cpp.o.d -o lib/CMakeFiles/rtpmidid-static.dir/rtppeer.cpp.o -c /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtppeer.cpp
In file included from /usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/format.h:41,
                 from /usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/core.h:5,
                 from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/precompile.hpp:21,
                 from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/CMakeFiles/rtpmidid-static.dir/cmake_pch.hxx:5,
                 from <command-line>:
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = rtpmidid::rtppeer_t::port_e; Formatter = fmt::v11::formatter<rtpmidid::rtppeer_t::port_e>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = rtpmidid::rtppeer_t::port_e; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = rtpmidid::rtppeer_t::port_e; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {rtpmidid::rtppeer_t::port_e}; long unsigned int NUM_ARGS = 1; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 15; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {rtpmidid::rtppeer_t::port_e&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, rtpmidid::rtppeer_t::port_e&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, rtpmidid::rtppeer_t::port_e}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtppeer.cpp:162:5:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<rtpmidid::rtppeer_t::port_e>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtppeer.cpp:23:
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/rtppeer.hpp:179:8: note:   in call to 'auto fmt::v11::formatter<rtpmidid::rtppeer_t::port_e>::format(rtpmidid::rtppeer_t::port_e, fmt::v11::format_context&)'
  179 |   auto format(rtpmidid::rtppeer_t::port_e c, format_context &ctx) {
      |        ^~~~~~
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = rtpmidid::rtppeer_t::status_e; Formatter = fmt::v11::formatter<rtpmidid::rtppeer_t::status_e>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = rtpmidid::rtppeer_t::status_e; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = rtpmidid::rtppeer_t::status_e; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {rtpmidid::rtppeer_t::status_e, rtpmidid::rtppeer_t::port_e, unsigned char, unsigned char, int}; long unsigned int NUM_ARGS = 5; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 74495; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {rtpmidid::rtppeer_t::status_e&, rtpmidid::rtppeer_t::port_e&, unsigned char&, unsigned char&, int&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, rtpmidid::rtppeer_t::status_e&, rtpmidid::rtppeer_t::port_e&, unsigned char&, unsigned char&, int&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, rtpmidid::rtppeer_t::status_e, rtpmidid::rtppeer_t::port_e, unsigned char, unsigned char, int}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtppeer.cpp:241:3:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<rtpmidid::rtppeer_t::status_e>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/rtppeer.hpp:156:8: note:   in call to 'auto fmt::v11::formatter<rtpmidid::rtppeer_t::status_e>::format(rtpmidid::rtppeer_t::status_e, fmt::v11::format_context&)'
  156 |   auto format(rtpmidid::rtppeer_t::status_e c, format_context &ctx) {
      |        ^~~~~~
[18/71] Building CXX object lib/CMakeFiles/rtpmidid-static.dir/rtpclient.cpp.o
FAILED: lib/CMakeFiles/rtpmidid-static.dir/rtpclient.cpp.o 
/usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/bin/aarch64-openwrt-linux-musl-g++ -DRTPMIDID_VERSION="\"23.12~57~g1c14a\"" -I/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/src -I/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include -Os -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12=rtpmidid-23.12 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG   -std=gnu++17 -Wall -Werror -O2 -D_REENTRANT -Winvalid-pch -include /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/CMakeFiles/rtpmidid-static.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/rtpmidid-static.dir/rtpclient.cpp.o -MF lib/CMakeFiles/rtpmidid-static.dir/rtpclient.cpp.o.d -o lib/CMakeFiles/rtpmidid-static.dir/rtpclient.cpp.o -c /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtpclient.cpp
In file included from /usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/format.h:41,
                 from /usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/core.h:5,
                 from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/precompile.hpp:21,
                 from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/CMakeFiles/rtpmidid-static.dir/cmake_pch.hxx:5,
                 from <command-line>:
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = rtpmidid::rtppeer_t::disconnect_reason_e; Formatter = fmt::v11::formatter<rtpmidid::rtppeer_t::disconnect_reason_e>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = rtpmidid::rtppeer_t::disconnect_reason_e; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = rtpmidid::rtppeer_t::disconnect_reason_e; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {rtpmidid::rtppeer_t::disconnect_reason_e}; long unsigned int NUM_ARGS = 1; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 15; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {rtpmidid::rtppeer_t::disconnect_reason_e&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, rtpmidid::rtppeer_t::disconnect_reason_e&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, rtpmidid::rtppeer_t::disconnect_reason_e}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtpclient.cpp:61:11:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<rtpmidid::rtppeer_t::disconnect_reason_e>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/rtpclient.hpp:24,
                 from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtpclient.cpp:38:
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/./rtppeer.hpp:196:8: note:   in call to 'auto fmt::v11::formatter<rtpmidid::rtppeer_t::disconnect_reason_e>::format(rtpmidid::rtppeer_t::disconnect_reason_e, fmt::v11::format_context&)'
  196 |   auto format(rtpmidid::rtppeer_t::disconnect_reason_e c, format_context &ctx) {
      |        ^~~~~~
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = rtpmidid::rtpclient_t::endpoint_t; Formatter = fmt::v11::formatter<rtpmidid::rtpclient_t::endpoint_t>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = rtpmidid::rtpclient_t::endpoint_t; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = rtpmidid::rtpclient_t::endpoint_t; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {rtpmidid::rtpclient_t::endpoint_t}; long unsigned int NUM_ARGS = 1; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 15; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {rtpmidid::rtpclient_t::endpoint_t&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, rtpmidid::rtpclient_t::endpoint_t&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, rtpmidid::rtpclient_t::endpoint_t}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtpclient.cpp:93:5:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<rtpmidid::rtpclient_t::endpoint_t>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/rtpclient.hpp:101:8: note:   in call to 'auto fmt::v11::formatter<rtpmidid::rtpclient_t::endpoint_t>::format(const rtpmidid::rtpclient_t::endpoint_t&, fmt::v11::format_context&)'
  101 |   auto format(const rtpmidid::rtpclient_t::endpoint_t &data,
      |        ^~~~~~
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t>; Formatter = fmt::v11::formatter<std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t> >; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t>; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t>; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t, std::allocator<rtpmidid::rtpclient_t::endpoint_t> >}; long unsigned int NUM_ARGS = 1; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 15; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t, std::allocator<rtpmidid::rtpclient_t::endpoint_t> >&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t, std::allocator<rtpmidid::rtpclient_t::endpoint_t> >&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t, std::allocator<rtpmidid::rtpclient_t::endpoint_t> >}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtpclient.cpp:96:3:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t> >' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/rtpclient.hpp:125:8: note:   in call to 'auto fmt::v11::formatter<std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t> >::format(const std::__cxx11::list<rtpmidid::rtpclient_t::endpoint_t>&, fmt::v11::format_context&)'
  125 |   auto format(const std::list<rtpmidid::rtpclient_t::endpoint_t> &data,
      |        ^~~~~~
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = sockaddr_storage; Formatter = fmt::v11::formatter<sockaddr_storage>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = sockaddr_storage; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = sockaddr_storage; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {sockaddr_storage, short unsigned int}; long unsigned int NUM_ARGS = 2; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 47; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {sockaddr_storage&, short unsigned int&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, sockaddr_storage&, short unsigned int&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, sockaddr_storage, short unsigned int}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtpclient.cpp:311:3:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<sockaddr_storage>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtpclient.cpp:36:
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/network.hpp:48:8: note:   in call to 'auto fmt::v11::formatter<sockaddr_storage>::format(const sockaddr_storage&, fmt::v11::format_context&)'
   48 |   auto format(const sockaddr_storage &addr, format_context &ctx) {
      |        ^~~~~~
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = rtpmidid::rtppeer_t::status_e; Formatter = fmt::v11::formatter<rtpmidid::rtppeer_t::status_e>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = rtpmidid::rtppeer_t::status_e; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = rtpmidid::rtppeer_t::status_e; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, short unsigned int, rtpmidid::rtppeer_t::status_e}; long unsigned int NUM_ARGS = 3; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 3885; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, short unsigned int&, rtpmidid::rtppeer_t::status_e&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, short unsigned int&, rtpmidid::rtppeer_t::status_e&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, short unsigned int, rtpmidid::rtppeer_t::status_e}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtpclient.cpp:349:5:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<rtpmidid::rtppeer_t::status_e>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/./rtppeer.hpp:156:8: note:   in call to 'auto fmt::v11::formatter<rtpmidid::rtppeer_t::status_e>::format(rtpmidid::rtppeer_t::status_e, fmt::v11::format_context&)'
  156 |   auto format(rtpmidid::rtppeer_t::status_e c, format_context &ctx) {
      |        ^~~~~~
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = rtpmidid::rtppeer_t::port_e; Formatter = fmt::v11::formatter<rtpmidid::rtppeer_t::port_e>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = rtpmidid::rtppeer_t::port_e; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = rtpmidid::rtppeer_t::port_e; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {rtpmidid::rtppeer_t::port_e}; long unsigned int NUM_ARGS = 1; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 15; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/format.h:4365:44:   required from 'std::string fmt::v11::format(format_string<T ...>, T&& ...) [with T = {rtpmidid::rtppeer_t::port_e&}; std::string = std::__cxx11::basic_string<char>; format_string<T ...> = basic_format_string<char, rtpmidid::rtppeer_t::port_e&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/exceptions.hpp:31:44:   required from 'rtpmidid::exception::exception(Args ...) [with Args = {const char*, rtpmidid::rtppeer_t::port_e}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/rtpclient.cpp:405:44:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<rtpmidid::rtppeer_t::port_e>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/./rtppeer.hpp:179:8: note:   in call to 'auto fmt::v11::formatter<rtpmidid::rtppeer_t::port_e>::format(rtpmidid::rtppeer_t::port_e, fmt::v11::format_context&)'
  179 |   auto format(rtpmidid::rtppeer_t::port_e c, format_context &ctx) {
      |        ^~~~~~
[19/71] Building CXX object lib/CMakeFiles/rtpmidid-static.dir/mdns_rtpmidi.cpp.o
FAILED: lib/CMakeFiles/rtpmidid-static.dir/mdns_rtpmidi.cpp.o 
/usr/src/openwrt/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/bin/aarch64-openwrt-linux-musl-g++ -DRTPMIDID_VERSION="\"23.12~57~g1c14a\"" -I/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/src -I/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include -Os -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12=rtpmidid-23.12 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG   -std=gnu++17 -Wall -Werror -O2 -D_REENTRANT -Winvalid-pch -include /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/CMakeFiles/rtpmidid-static.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/rtpmidid-static.dir/mdns_rtpmidi.cpp.o -MF lib/CMakeFiles/rtpmidid-static.dir/mdns_rtpmidi.cpp.o.d -o lib/CMakeFiles/rtpmidid-static.dir/mdns_rtpmidi.cpp.o -c /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/mdns_rtpmidi.cpp
In file included from /usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/format.h:41,
                 from /usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/core.h:5,
                 from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/precompile.hpp:21,
                 from /usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/CMakeFiles/rtpmidid-static.dir/cmake_pch.hxx:5,
                 from <command-line>:
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = AvahiWatchEvent; Formatter = fmt::v11::formatter<AvahiWatchEvent>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = AvahiWatchEvent; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = AvahiWatchEvent; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {AvahiWatchEvent}; long unsigned int NUM_ARGS = 1; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 15; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {AvahiWatchEvent&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, AvahiWatchEvent&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, AvahiWatchEvent}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/mdns_rtpmidi.cpp:130:5:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<AvahiWatchEvent>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/mdns_rtpmidi.cpp:56:8: note:   in call to 'auto fmt::v11::formatter<AvahiWatchEvent>::format(AvahiWatchEvent, fmt::v11::format_context&)'
   56 |   auto format(AvahiWatchEvent ev, fmt::format_context &ctx) {
      |        ^~~~~~
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h: In instantiation of 'static void fmt::v11::detail::value<Context>::format_custom_arg(void*, typename Context::parse_context_type&, Context&) [with T = AvahiBrowserEvent; Formatter = fmt::v11::formatter<AvahiBrowserEvent>; Context = fmt::v11::context; typename Context::parse_context_type = fmt::v11::basic_format_parse_context<char>]':
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1383:19:   required from 'fmt::v11::detail::value<Context>::value(T&) [with T = AvahiBrowserEvent; Context = fmt::v11::context]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1647:41:   required from 'constexpr fmt::v11::detail::value<Context> fmt::v11::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v11::context; T = AvahiBrowserEvent; typename std::enable_if<PACKED, int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2018:74:   required from 'constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, 0, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {AvahiBrowserEvent}; long unsigned int NUM_ARGS = 1; long unsigned int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 15; typename std::enable_if<(NUM_NAMED_ARGS == 0), int>::type <anonymous> = 0]'
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:2970:57:   required from 'fmt::v11::format_to_n_result<OutputIt> fmt::v11::format_to_n(OutputIt, size_t, format_string<T ...>, T&& ...) [with OutputIt = char*; T = {AvahiBrowserEvent&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; size_t = long unsigned int; format_string<T ...> = basic_format_string<char, AvahiBrowserEvent&>]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/include/rtpmidid/logger.hpp:119:28:   required from 'void logger::log(const char*, int, LogLevel, Args ...) [with Args = {const char*, AvahiBrowserEvent}]'
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/mdns_rtpmidi.cpp:352:5:   required from here
/usr/src/openwrt/staging_dir/target-aarch64_generic_musl/usr/include/fmt/base.h:1402:29: error: passing 'const fmt::v11::formatter<AvahiBrowserEvent>' as 'this' argument discards qualifiers [-fpermissive]
 1402 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/build_dir/target-aarch64_generic_musl/rtpmidid-23.12/lib/mdns_rtpmidi.cpp:61:8: note:   in call to 'auto fmt::v11::formatter<AvahiBrowserEvent>::format(AvahiBrowserEvent, fmt::v11::format_context&)'
   61 |   auto format(AvahiBrowserEvent ev, fmt::format_context &ctx) {
      |        ^~~~~~
[23/71] Building CXX object lib/CMakeFiles/rtpmidid-static.dir/rtpserver.cpp.o
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions