While updating to clang 19 (on a LLVM profile) I found that this no longer compiles. Digging more into it, it seems that it is related to the removal of char_traits generic template as it was not mandatory in the standard. This leads that char_traits<unsigned char> is no longer usable and thus the compilation fails, I reported it upstream (in the see also section where there is more info also about the compile error)
Please attach a build log.
Created attachment 906281 [details] build.log (amd64, 1.1.13) Same here. But with build log. ;)
Created attachment 906282 [details] emerge --info
(In reply to ernsteiswuerfel from comment #2) > Created attachment 906281 [details] > build.log (amd64, 1.1.13) > > Same here. > > But with build log. ;) Oops sorry, I forgot this issue and to add it, thanks!
Several of these: [...] In file included from BZ2StreamScanner.cpp:8: In file included from ./pbzip2.h:16: /usr/include/c++/v1/string:3736:22: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>' 3736 | int __r = traits_type::compare(data() + __pos1, __s, std::min(__rlen, __n2)); | ^ BZ2StreamScanner.cpp:364:24: note: in instantiation of member function 'std::basic_string<unsigned char>::compare' requested here 364 | else if ( _bz2Header.compare( 0, prefixLen, getInBuffSearchPtr(), prefix... | ^ /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here 23 | struct _LIBCPP_TEMPLATE_VIS char_traits; | ^ 9 errors generated. make: *** [Makefile:70: pbzip2] Error 1
I've removed the "musl-porting" block because this is not related to musl, this is caused by the removal of base char_traits template starting in libcxx 19 (see https://reviews.llvm.org/D138307). As a side note: I am sure other packages will fail in the same way as char_traits for unsigned char were used by other stuff also.
(In reply to David Carlos Manuelda from comment #6) > As a side note: I am sure other packages will fail in the same way as > char_traits for unsigned char were used by other stuff also. Thanks for the hint! Yes, I encountered some of these already which then I wrongly attributed to be 'a musl thing' 'cause I encountered them only on my musl systems. ;)