Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908489 - sys-libs/libcxxabi-15.0.7: build error if USE flag "clang" enabled
Summary: sys-libs/libcxxabi-15.0.7: build error if USE flag "clang" enabled
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-14 09:00 UTC by Oleg
Modified: 2023-06-14 15:27 UTC (History)
1 user (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 Oleg 2023-06-14 09:00:11 UTC
When updating sys-libs/libcxxabi I have to disable clang USE flag to successfully built it but later Firefox fails to build.

Reproducible: Always

Steps to Reproduce:
1. Disable clang USE flag
2. Try to build
Actual Results:  
...
FAILED: libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_demangle.cpp.o 
/usr/lib/llvm/15/bin/i686-pc-linux-gnu-clang++ --target=i686-pc-linux-gnu -DHAVE___CXA_THREAD_ATEXIT_IMPL -DLIBCXX_BUILDING_LIBCXXABI -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LIBCPP_BUILDING_LIBRARY -D_LIBCXXABI_BUILDING_LIBRARY -D_LIBCXXABI_LINK_PTHREAD_LIB -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/portage/sys-libs/libcxxabi-15.0.7/work/libcxxabi/../libcxx/src -I/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/include/c++/v1 -I/tmp/portage/sys-libs/libcxxabi-15.0.7/work/libcxxabi/include  -O2 -march=native -pipe -fomit-frame-pointer -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections  -std=c++20 -fPIC -nostdinc++ -Werror=return-type -W -Wall -Wchar-subscripts -Wconversion -Wmismatched-tags -Wmissing-braces -Wnewline-eof -Wunused-function -Wshadow -Wshorten-64-to-32 -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 -funwind-tables -D_DEBUG -MD -MT libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_demangle.cpp.o -MF libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_demangle.cpp.o.d -o libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_demangle.cpp.o -c /tmp/portage/sys-libs/libcxxabi-15.0.7/work/libcxxabi/src/cxa_demangle.cpp
In file included from /tmp/portage/sys-libs/libcxxabi-15.0.7/work/libcxxabi/src/cxa_demangle.cpp:13:
In file included from /tmp/portage/sys-libs/libcxxabi-15.0.7/work/libcxxabi/src/demangle/ItaniumDemangle.h:20:
In file included from /tmp/portage/sys-libs/libcxxabi-15.0.7/work/libcxxabi/src/demangle/StringView.h:21:
In file included from /tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/include/c++/v1/cstring:61:
In file included from /tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/include/c++/v1/string.h:60:
In file included from /usr/include/string.h:33:
/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/include/c++/v1/stddef.h:17:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
              ^~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.


Expected Results:  
Build successed

# emerge --info
Unavailable repository 'distros' referenced by masters entry in '/var/db/repos/linuxbuh/metadata/layout.conf'
Portage 3.0.45.3 (python 3.11.3-final-0, default/linux/amd64/17.1/desktop, gcc-12, glibc-2.36-r8, 6.1.28-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.1.28-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-glibc2.36
KiB Mem:    24556464 total,   7769132 free
KiB Swap:    8083444 total,   7625896 free
Timestamp of repository gentoo: Tue, 13 Jun 2023 05:30:01 +0000
Head commit of repository gentoo: 2a4487e65491354ddfb91e09550b83149e25350b
Timestamp of repository bitcoin: Sun, 11 Jun 2023 17:46:52 +0000
Head commit of repository bitcoin: e27d869c77276a9ae57345d02ed9073ce259879d

Timestamp of repository booboo: Sun, 11 Jun 2023 17:46:52 +0000
Head commit of repository booboo: a206b4de17e467bf072e20540c17983858c6d0bc

Timestamp of repository calculate: Sat, 10 Jun 2023 10:33:32 +0000
Head commit of repository calculate: 615fc3ce542f91571dc49dcb0ddbe81c26f84f7a

Timestamp of repository guru: Tue, 13 Jun 2023 05:16:49 +0000
Head commit of repository guru: 0c8ce89dc4788980917e3bcea740c787d17819a0

Head commit of repository linuxbuh: fa9eeeb805af50303afdf9f5910be430a0d6dbd4

Timestamp of repository rion: Sun, 11 Jun 2023 17:46:55 +0000
Head commit of repository rion: b2f3aba986f73d1e714a69207eacda3b330948ba

Timestamp of repository steam-overlay: Sat, 10 Jun 2023 10:33:41 +0000
Head commit of repository steam-overlay: e7211fbc19bd4c8e0b6e240eda670a010576f45d

sh bash 5.1_p16-r4
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r4::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo, 9999::x-my
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230428-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

bitcoin
    location: /var/db/repos/bitcoin
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/bitcoin.git
    masters: gentoo
    volatile: False

booboo
    location: /var/db/repos/booboo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/booboo.git
    masters: gentoo
    volatile: False

calculate
    location: /var/db/repos/calculate
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/calculate.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

linuxbuh
    location: /var/db/repos/linuxbuh
    sync-type: git
    sync-uri: https://github.com/linuxbuh/linuxbuh.git
    masters: calculate gentoo
    volatile: False

rion
    location: /var/db/repos/rion
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/rion.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

x-my
    location: /usr/local/portage/my
    masters: gentoo
    priority: 0
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE dlj-1.1 PUEL AdobeFlash-10 AdobeFlash-10.1 skype-eula Oracle-BCLA-JavaSE AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x NVIDIA-CUDA OPERA-12 RAR google-chrome OPERA-2014 GDLS MPEG-4 freedist free-noncomm all-rights-reserved FAH-EULA-2014 FAH-special-permission Microsoft-vscode AnyDesk-TOS MBROLA-VOICES android OSGi-Specification-2.0 codehaus-classworlds Cryptopro GregoryRubin"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/mnt/devel/distfiles"
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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live buildsyspkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync 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 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-O1"
LEX="flex"
LINGUAS="ru ru_RU en en_US ja ja_JP eo uk uk_UA yi"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
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="/tmp"
SHELL="/bin/bash"
USE="10bit 12bit X Xaw3d a52 aac aacplus aacs aalib abiword acl acpi alsa amd64 amr animgif anthy aptx archive aribsub ass audacious audiofile avif bash-completion bdplus bidi bluetooth bluray branding bzip2 c++0x c++11 cairo canna caps cdda cdr cg chasen cjk cli crypt css cuda cups curl cxx cyrillic dav1d dbus dga dia djvu dri dri3 dts dv dvd dvdr dvdread egl elogind enca encode epub evdev exif expat faac faad fam fapi ffmpeg fftw flac fontconfig fontforge fortran freewnn fribidi ftp fuse gallium gd gdbm ggi gif gimp ginac git gl3plus glade gles gles1 gles2 gles3 glut gmp gnome-keyring gnuplot gpg gphoto2 gpm graphviz gs gsf gsm gtk gtk3 gui gzip hddtemp hdf5 heif hwaccel hwloc ibus iconv icu id3 id3tag idn ieee1394 imagemagick imap imlib inotify ipv6 irc irda jabber jadetex java7 java8 jbig jingle joystick jpeg jpeg2k kate lame latex lcdfilter lcms libass libcanberra libmpd libnotify librtmp libsecret libtirpc libv4l libv4l2 libwww lm-sensors lz4 lzma lzo m17n-lib mad math mathml matroska mbrola mercurial midi migemo mime mmap mmx mmxext mng mozilla mp3 mp4 mpd mpeg mplayer mpris mtp mule multilib musepack musicbrainz natspec ncurses nls nntp nocd nptl nptlonly nsplugin nspluginwrapper ntfs nvidia odf ofx ogg openal opencl opencv openexr opengl opengl3 openmp openxml opus pango pcre pcsc-lite pdf pgf pgo pkcs11 png policykit posix postscript ppds pulseaudio qrcode qt3support qt5 quicktime rar raw readline rle romio rss rtc rtmp scanner schroedinger scripts sctp sdl seccomp sensord sharedmem shorten sip skk slang smartcard smp sndfile sockets socks5 sound sourceview sox speex spell split-usr sqlite srt sse sse2 sse3 ssl ssse3 startup-notification subversion svg svt-av1 syslog system-png system-sqlite szip taglib teletext test-rust theora threads thunar tiff timidity truetype udev udf udisks unicode upower usb v4l v4l2 vaapi vdo vdpau videos vim vim-syntax vorbis vpx vulkan webgl webkit webp wma wmf x264 x265 xa xattr xcb xetex xfce xfce4 xft xhtml xinerama xml xmss xosd xpm xrandr xscreensaver xulrunner xv xvid xvmc zip zlib zstd zvbi" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel" 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 proxy proxy_http" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" 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-64" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="ru ru_RU en en_US ja ja_JP eo uk uk_UA yi" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LLVM_TARGETS="X86 Mips NVPTX RISCV BPF AArch64 WebAssembly" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="i386 x86_64 aarch64 arm or32 mips mips64 mips64el mipsel or1k riscv32 riscv64" QEMU_USER_TARGETS="i386 x86_64 aarch64 arm or32 mips mips64 mips64el mipsel mipsn32 mipsn32el or1k riscv32 riscv64" RUBY_TARGETS="ruby30 ruby31" VIDEO_CARDS="nvidia vesa intel i965" 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, EMERGE_DEFAULT_OPTS, 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