Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941775 - dev-libs/libfilezilla-0.48.1 - fails to build with clang-19: .../include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
Summary: dev-libs/libfilezilla-0.48.1 - fails to build with clang-19: .../include/c++/...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL: https://trac.filezilla-project.org/ti...
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-libcxx
  Show dependency tree
 
Reported: 2024-10-18 17:26 UTC by ernsteiswuerfel
Modified: 2024-12-02 22:04 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (libfilezilla-0.48.1:20241018-170901.log,15.67 KB, text/plain)
2024-10-18 17:26 UTC, ernsteiswuerfel
Details
emerge --info (file_941775.txt,7.67 KB, text/plain)
2024-10-18 17:27 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-10-18 17:26:13 UTC
Created attachment 906292 [details]
build.log

[...]
libtool: compile:  clang++ -std=c++17 -DHAVE_CONFIG_H -I../config -DBUILDING_LIBFILEZILLA -I. -I./libfilezilla -fvisibility=hidden -Os -march=x86-64-v2 -pipe -Wall -g -Werror=partial-availability -c aio/aio.cpp  -fPIC -DPIC -o aio/.libs/libfilezilla_la-aio.o
In file included from aio/aio.cpp:1:
In file included from aio/../libfilezilla/aio/aio.hpp:8:
In file included from aio/../libfilezilla/aio/../event.hpp:4:
In file included from aio/../libfilezilla/aio/../libfilezilla.hpp:7:
In file included from aio/../libfilezilla/aio/../string.hpp:9:
In file included from /usr/include/c++/v1/string:647:
/usr/include/c++/v1/string_view:300:42: error: implicit instantiation of
      undefined template 'std::char_traits<unsigned char>'
  300 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
      |                                          ^
aio/../libfilezilla/util.hpp:72:44: note: in instantiation of template
      class 'std::basic_string_view<unsigned char>' requested here
   72 |           std::enable_if_t<sizeof(typename First::value_type) == sizeof(uint8_t) &&
      |                                            ^
aio/../libfilezilla/util.hpp:74:13: note: while substituting prior template
      arguments into non-type template parameter [with First = std::basic_string_view<uint8_t>,
      Second = std::basic_string_view<uint8_t>]
   74 | inline bool equal_consttime(First const& lhs, Second const& rhs)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aio/../libfilezilla/util.hpp:76:9: note: while substituting deduced
      template arguments into function template 'equal_consttime' [with First =
      std::basic_string_view<uint8_t>, Second = std::basic_string_view<uint8_t>, $2 =
      (no value)]
   76 |         return equal_consttime(std::basic_string_view<uint8_t>(reinterpret_cast<uint8_t ...
      |                ^
/usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declared
      here
   45 | struct char_traits;
      |        ^
1 error generated.
make[1]: *** [Makefile:900: aio/libfilezilla_la-aio.lo] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libfilezilla-0.48.1/work/libfilezilla-0.48.1/lib'
make: *** [Makefile:495: all-recursive] Error 1
Comment 1 ernsteiswuerfel archtester 2024-10-18 17:27:13 UTC
Created attachment 906293 [details]
emerge --info