too long lines were shrinked: 1056 | !is_same<_Traits, char_traits<value_type> >::value, | ^~~~~~~~~~~ /var/tmp/portage/sys-libs/libcxx-17.0.6/work/runtimes_build-abi_x86_32.x86/include/c++/v1/__fwd/string.h:23:29: note: declared here 23 | struct _LIBCPP_TEMPLATE_VIS char_traits; | ^~~~~~~~~~~ /var/tmp/portage/sys-libs/libcxx-17.0.6/work/runtimes_build-abi_x86_32.x86/include/c++/v1/__filesystem/path.h: In instantiation of 'std::__1::__fs::filesystem::path::_EnableIfPathable<_Source> std::__1::__fs::filesystem::path::append(const _Source&) [with _Source = std::__1::basic_string<char>]': /var/tmp/portage/sys-libs/libcxx-17.0.6/work/runtimes_build-abi_x86_32.x86/include/c++/v1/__filesystem/path.h:623:30: error: use of built-in trait '__remove_pointer(typename std::__1::decay<_Tp>::type)' in function signature; use library traits instead 623 | _EnableIfPathable<_Source> append(const _Source& __src) { | ^~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome-20240127-051003 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-14 * clang/llvm (if any): clang version 17.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/17/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/17 17.0.6 Python 3.11.7 Available Ruby profiles: [1] ruby31 (with Rubygems) [2] ruby32 (with Rubygems) [3] ruby33 (with Rubygems) * Available Rust versions: [1] rust-bin-1.74.1 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21] Available Java Virtual Machines: [1] openjdk-bin-21 system-vm The Glorious Glasgow Haskell Compilation System, version 9.2.8 php cli (if any): go version go1.21.6 linux/amd64 HEAD of ::gentoo commit f2c4ce5f26b48678253a798ddaabf99d01297b86 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Jan 27 23:03:19 2024 +0000 2024-01-27 23:03:18 UTC emerge -qpvO sys-libs/libcxx [ebuild N ] sys-libs/libcxx-17.0.6 USE="(libcxxabi) static-libs -clang -test -verify-sig" ABI_X86="32 (64) (-x32)"
Created attachment 883407 [details] emerge-info.txt
Created attachment 883408 [details] emerge-history.txt
Created attachment 883409 [details] environment
Created attachment 883410 [details] etc.clang.tar.xz
Created attachment 883411 [details] etc.portage.tar.xz
Created attachment 883412 [details] qlist-info.txt
Created attachment 883413 [details] sys-libs:libcxx-17.0.6:20240128-035349.log.xz
Created attachment 883414 [details] temp.tar.xz
Also happens for sys-libs/libcxx-18.1.8 (latest). Upstream issue: https://github.com/llvm/llvm-project/issues/91831. Fixed in upstream, so next release should have this fixed. Citing upstream: "libc++ doesn't compile with GCC 14.1 because it comes with new GCC __remove_pointer built-in which is incompatible with libc++"
I realized that this problem happens only package is compiled by GCC. Adding back recommended USE="+clang" (which instead compiles it by CLANG) make it working fine without any patches.