Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923110 - sys-libs/libcxx-17.0.6 - /.../path.h: error: use of built-in trait _remove_pointer(typename std::_1::decay<_Tp>::type) in function signature; use libr
Summary: sys-libs/libcxx-17.0.6 - /.../path.h: error: use of built-in trait _remove_po...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-14 gcc-14-stable
  Show dependency tree
 
Reported: 2024-01-28 09:53 UTC by Toralf Förster
Modified: 2024-11-01 17:46 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.29 KB, text/plain)
2024-01-28 09:53 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,67.83 KB, text/plain)
2024-01-28 09:53 UTC, Toralf Förster
Details
environment (environment,167.59 KB, text/plain)
2024-01-28 09:53 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-01-28 09:53 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,28.18 KB, application/x-xz)
2024-01-28 09:53 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,139.58 KB, text/plain)
2024-01-28 09:53 UTC, Toralf Förster
Details
sys-libs:libcxx-17.0.6:20240128-035349.log.xz (sys-libs:libcxx-17.0.6:20240128-035349.log.xz,20.47 KB, application/x-xz)
2024-01-28 09:53 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,56.52 KB, application/x-xz)
2024-01-28 09:53 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-01-28 09:53:47 UTC
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)"
Comment 1 Toralf Förster gentoo-dev 2024-01-28 09:53:48 UTC
Created attachment 883407 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-28 09:53:49 UTC
Created attachment 883408 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-01-28 09:53:51 UTC
Created attachment 883409 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-01-28 09:53:52 UTC
Created attachment 883410 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-01-28 09:53:53 UTC
Created attachment 883411 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-28 09:53:54 UTC
Created attachment 883412 [details]
qlist-info.txt
Comment 7 Toralf Förster gentoo-dev 2024-01-28 09:53:55 UTC
Created attachment 883413 [details]
sys-libs:libcxx-17.0.6:20240128-035349.log.xz
Comment 8 Toralf Förster gentoo-dev 2024-01-28 09:53:56 UTC
Created attachment 883414 [details]
temp.tar.xz
Comment 9 Michael Tulupov 2024-08-18 19:10:12 UTC
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++"
Comment 10 Michael Tulupov 2024-08-18 20:10:44 UTC
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.