Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907895 - <=sys-libs/libcxxabi-16.0.3[-clang]: is_convertible.h:71:8: error: expected identifier before ‘__is_convertible’ with sys-devel/gcc-13
Summary: <=sys-libs/libcxxabi-16.0.3[-clang]: is_convertible.h:71:8: error: expected i...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13 892127
  Show dependency tree
 
Reported: 2023-06-05 12:37 UTC by Johannes Hirte
Modified: 2023-12-01 11:40 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2023-06-05 12:37:18 UTC
Building libcxxabi-16.0.3 with sys-devel/gcc-13 fails with the following error:

FAILED: libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_aux_runtime.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -DLIBCXX_BUILDING_LIBCXXABI -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LIBCPP_BUILDING_LIBRARY -D_LIBCXXABI_BUILDING_LIBRARY -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/libcxxabi/../libcxx/src -I/var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/runtimes_build-abi_x86_32.x86/include/c++/v1 -I/var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/libcxxabi/include  -O2 -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model=cheap -pipe -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections  -std=c++20 -fPIC -nostdinc++ -Werror=return-type -W -Wall -Wchar-subscripts -Wconversion -Wmismatched-tags -Wmissing-braces -Wunused-function -Wshadow -Wsign-compare -Wsign-conversion -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter -Wunused-variable -Wwrite-strings -Wundef -Wno-suggest-override -Wno-error -pedantic -fstrict-aliasing -D_DEBUG -MD -MT libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_aux_runtime.cpp.o -MF libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_aux_runtime.cpp.o.d -o libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_aux_runtime.cpp.o -c /var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/libcxxabi/src/cxa_aux_runtime.cpp
In file included from /var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/runtimes_build-abi_x86_32.x86/include/c++/v1/exception:86,
                 from /var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/runtimes_build-abi_x86_32.x86/include/c++/v1/new:97,
                 from /var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/libcxxabi/src/cxa_aux_runtime.cpp:13:
/var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/runtimes_build-abi_x86_32.x86/include/c++/v1/__type_traits/is_convertible.h:71:8: error: expected identifier before ‘__is_convertible’
   71 | struct __is_convertible
      |        ^~~~~~~~~~~~~~~~
/var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/runtimes_build-abi_x86_32.x86/include/c++/v1/__type_traits/is_convertible.h:71:8: error: expected unqualified-id before ‘__is_convertible’
/var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/runtimes_build-abi_x86_32.x86/include/c++/v1/__type_traits/is_convertible.h:77:40: error: expected identifier before ‘__is_convertible’
   77 | template <class _T1, class _T2> struct __is_convertible<_T1, _T2, 0, 1> : public false_type {};
      |                                        ^~~~~~~~~~~~~~~~
/var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/runtimes_build-abi_x86_32.x86/include/c++/v1/__type_traits/is_convertible.h:77:40: error: expected unqualified-id before ‘__is_convertible’
/var/tmp/portage/sys-libs/libcxxabi-16.0.3/work/runtimes_build-abi_x86_32.x86/include/c++/v1/__type_traits/is_convertible.h:78:40: error: expected identifier before ‘__is_convertible’
   78 | template <class _T1, class _T2> struct __is_convertible<_T1, _T2, 1, 1> : public false_type {};


Build with gcc-12 works as expected

Reproducible: Always

Steps to Reproduce:
1. emerge -1 sys-libs/libcxxabi
2.
3.
Actual Results:  
Build fails

Expected Results:  
Build succeeds

emerge --info
Portage 3.0.47 (python 3.9.16-final-0, default/linux/amd64/17.1/systemd, gcc-13, glibc-2.37-r3, 6.4.0-rc4-00268-g51f269a6ecc7 x86_64)
=================================================================
System uname: Linux-6.4.0-rc4-00268-g51f269a6ecc7-x86_64-AMD_Ryzen_7_PRO_4750U_with_Radeon_Graphics-with-glibc2.37
KiB Mem:    32159940 total,  10906732 free
KiB Swap:    2097148 total,   2096380 free
Head commit of repository gentoo: 25c953827cce632bb1466880c79ab8fa01aec013

Head commit of repository kde: 8935dcd9014357e76984353c2ef77e03cf44b19b

Head commit of repository qt: 17d85ce3bc5438c5f0b5716e60dd746c6f633a8e

Head commit of repository x11: 00109758b71fe651b0c367b3eeb9bcbac24dc533

sh bash 5.2_p15-r3
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r3::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.10.11::gentoo, 3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.4::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.3::gentoo
sys-devel/gcc:             12.3.1_p20230519::gentoo, 13.1.1_p20230520::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.3::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.5::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: -1000
    volatile: False

crossdev
    location: /var/db/repos/portage-crossdev
    masters: gentoo
    priority: 10
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 50
    volatile: False

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    masters: gentoo
    priority: 50
    volatile: False

x11
    location: /var/db/repos/x11
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/x11.git
    masters: gentoo
    priority: 50
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model=cheap -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model=cheap -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model=cheap -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model=cheap -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de en"
MAKEOPTS="-j16 -l16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac aacplus acl activities alsa alt-svc amd64 amr amrenc anacron avif blake2 bluetooth brotli bzip2 cairo caps celt chm cleartype_hinting cli corefonts crypt cryptsetup cups d3d9 dav1d dbus dell device-mapper djvu dri drm dvd ebook editorconfig efi egl eps epub evdev exif faac fdk ffmpeg fftw flac fontconfig fortran gbm gdbm gif git glamor glslang gmp gpg gphoto2 gpm graphviz harfbuzz heif http2 hwloc iconv icu id3tag io-uring ipv6 ithreads jpeg kate kipi lcms lensfun libaom libatomic libcxx libcxxabi libde265 libffi libinput libkms libsamplerate libtirpc libunwind libxml2 lm-sensors lto lz4 lzma lzo mad matroska mjpeg mmap mng mobi modern-top mp3 mpeg mtp multilib mysql ncurses networkmanager nfs nls nptl ogg openal opencv openexr opengl openmp openssl opus pam parted pcre pcre16 pdf pipewire png policykit postscript proton pulseaudio python qml qt5 rav1e raw readline rtmp s3tc schroedinger screencast sdl sdl2 seccomp sift smp sndfile sox speex spice spirv split-usr sqlite ssl subversion svg svt-av1 system-harfbuzz system-icu system-jpeg system-jsoncpp system-libvpx system-sqlite system-tbb system-zlib systemd taglib tesseract test-rust theora threads thumbnail tiff truetype udev udisks uefi unicode urandom usb usbredir user-session v4l vaapi vde vdpau vhosts virgl virt-network virtfs vorbis vpx vte vulkan wavpack wayland webp websockets wmf x264 x265 xattr xcb xcomposite xkb xml xmp xpm xv xvid xxhash zink zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ricoh ricoh_g3" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="evdev libinput synaptics" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1 lua5-2 lua5-3 lua5-4 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_10 python3_11 pypy3" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64 arm" RUBY_TARGETS="ruby30 ruby31 ruby32" VIDEO_CARDS="amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Dennis Nezic 2023-06-05 22:15:41 UTC
I'm bumping into this too. Sigh. Suggestions?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-06 01:44:34 UTC
Filed https://github.com/llvm/llvm-project/issues/63133 for the backport upstream.

Please try applying https://github.com/llvm/llvm-project/commit/484e64f7e7b2c0494d7b2dbfdd528bcd707ee652 to sys-libs/libcxxabi.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-06 01:45:02 UTC
(In reply to Dennis Nezic from comment #1)
> I'm bumping into this too. Sigh. Suggestions?

Workaround (if you don't want to try the patch I linked) is USE=clang on libcxxabi.
Comment 4 Johannes Hirte 2023-06-16 09:17:49 UTC
Can confirm that the patch works
Comment 5 jon R-B 2023-06-24 20:19:09 UTC
This is an issue with libcxxabi-16.0.6 and gcc-13. Patch works