Bug 278948 - sysutils/bareos-server: error: 'char_traits<fmt::detail::char8_type>' is deprecated: char_traits<T> for T not equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard and is provided for a temporary period
Summary: sysutils/bareos-server: error: 'char_traits<fmt::detail::char8_type>' is depr...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-13 09:47 UTC by Trond Endrestøl
Modified: 2024-05-13 09:48 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments
Patch for sysutils/bareos-server/Makefile adding CXXFLAGS+=-Wno-deprecated-declarations as a band-aid (455 bytes, patch)
2024-05-13 09:48 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2024-05-13 09:47:33 UTC
FAILED: core/src/stored/CMakeFiles/bareossd.dir/device_resource.cc.o
ccache /usr/local/libexec/ccache/c++ -DFMT_HEADER_ONLY=1 -D_FILE_OFFSET_BITS=64 -Dbareossd_EXPORTS -I/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src -I/construction/xports/sysutils/bareos-serv
er/work/bareos-Release-23.0.2/third-party/fmt/include -O2 -pipe -fno-omit-frame-pointer -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/
include -Wsuggest-override -Wformat -Werror=format-security -fdebug-prefix-map=/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core=. -fmacro-prefix-map=/construction/xports/sysutils/bareos-server/work
/bareos-Release-23.0.2/core=. -Wno-invalid-offsetof -Werror -Wall -Wextra -O2 -pipe -fno-omit-frame-pointer -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-isystem /usr/local/include   -std=gnu++17 -fPIC -pthread -MD -MT core/src/stored/CMakeFiles/bareossd.dir/device_resource.cc.o -MF core/src/stored/CMakeFiles/bareossd.dir/device_resource.cc.o.d -o core/src/stored/CMakeFiles/
bareossd.dir/device_resource.cc.o -c /construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/stored/device_resource.cc
In file included from /construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/stored/device_resource.cc:24:
In file included from /construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/lib/parse_conf.h:27:
In file included from /construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/include/bareos.h:130:
In file included from /construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/include/baconfig.h:34:
In file included from /construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/lib/message.h:36:
In file included from /construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/lib/message_destination_info.h:28:
In file included from /usr/include/c++/v1/string:625:
In file included from /usr/include/c++/v1/string_view:213:
/usr/include/c++/v1/__fwd/string_view.h:22:41: error: 'char_traits<fmt::detail::char8_type>' is deprecated: char_traits<T> for T not equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard and is provided for a
 temporary period. It will be removed in LLVM 19, so please migrate off of it. [-Werror,-Wdeprecated-declarations]
   22 | template <class _CharT, class _Traits = char_traits<_CharT> >
      |                                         ^
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/third-party/fmt/include/fmt/core.h:377:26: note: in instantiation of default argument for 'basic_string_view<fmt::detail::char8_type>' required here
  377 | template <typename Char> using std_string_view = std::basic_string_view<Char>;
      |                          ^~~~~
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/third-party/fmt/include/fmt/core.h:467:50: note: in instantiation of template type alias 'std_string_view' requested here
  467 |                                       S, detail::std_string_view<Char>>::value)>
      |                                                  ^
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/third-party/fmt/include/fmt/format.h:713:57: note: in instantiation of template class 'fmt::basic_string_view<fmt::detail::char8_type>' requested here
  713 | inline auto compute_width(basic_string_view<char8_type> s) -> size_t {
      |                                                         ^
/usr/include/c++/v1/__string/char_traits.h:81:8: note: 'char_traits<fmt::detail::char8_type>' has been explicitly marked deprecated here
   81 | struct _LIBCPP_DEPRECATED_(
      |        ^
/usr/include/c++/v1/__config:978:53: note: expanded from macro '_LIBCPP_DEPRECATED_'
  978 | #      define _LIBCPP_DEPRECATED_(m) __attribute__((__deprecated__(m)))
      |                                                     ^
1 error generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /xports/sysutils/bareos-server
Comment 1 Trond Endrestøl 2024-05-13 09:48:33 UTC
Created attachment 250612 [details]
Patch for sysutils/bareos-server/Makefile adding CXXFLAGS+=-Wno-deprecated-declarations as a band-aid