Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 802027 - sys-devel/clang: clang frontend command failed with exit code 139
Summary: sys-devel/clang: clang frontend command failed with exit code 139
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2021-07-13 15:50 UTC by Harley Wiltzer
Modified: 2022-11-18 08:04 UTC (History)
8 users (show)

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


Attachments
Build log (build.log.bz2,348.85 KB, application/x-bzip2)
2021-07-13 15:51 UTC, Harley Wiltzer
Details
build.log reduced (build-reduced.log,19.03 KB, text/plain)
2021-07-16 02:24 UTC, Thomas Deutschmann (RETIRED)
Details
sys-libs/compiler-rt-13.0.0 emerge --info (emerge.info.txt,11.76 KB, text/plain)
2021-10-02 12:51 UTC, Iade Gesso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harley Wiltzer 2021-07-13 15:50:12 UTC
Portage 3.0.20 (python 3.8.10-final-0, default/linux/amd64/17.1/desktop, gcc-10.3.0, glibc-2.33-r1, 5.10.27-gentoo x86_64)
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-glibc2.2.5
KiB Mem:    16323452 total,   4862524 free
KiB Swap:    2097148 total,   2091260 free
Timestamp of repository gentoo: Tue, 13 Jul 2021 14:00:01 +0000
Head commit of repository gentoo: 6bf57511643af116231bfe9bb00176f4ae8662d1
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::harwiltz-gentoo
dev-lang/perl:            5.32.1::harwiltz-gentoo
dev-lang/python:          3.8.10_p2::gentoo, 3.9.5_p2::gentoo
dev-lang/rust:            1.52.1::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0-r1::harwiltz-gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

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

harwiltz-gentoo
    location: /var/db/repos/harwiltz-gentoo

harwiltzrepo
    location: /var/db/repos/harwiltzrepo
    masters: gentoo

rocm
    location: /var/db/repos/rocm
    masters: gentoo

wiltz
    location: /usr/local/portage
    masters: gentoo

octave
    location: /var/lib/layman/octave
    masters: gentoo
    priority: 50

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ADA_TARGET="gnat_2018"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ANDROID_HOME="/opt/android-sdk-update-manager"
ANDROID_SWT="//usr/share/swt-3.7/lib"
ANT_HOME="/usr/share/ant"
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"
ARCH="amd64"
AUTOCLEAN="yes"
BINPKG_COMPRESS="bzip2"
BOOTSTRAP_USE="unicode internal-glib pkg-config split-usr xml python_targets_python3_9 multilib"
BROOT=""
CALLIGRA_FEATURES="karbon sheets words"
CATKIN_PREFIX_PATH="/usr"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/*"
COLORTERM="truecolor"
COMET_API_KEY="MTuOuAU5dtp58SoCCeHF0Wfbp"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/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"
CPU_FLAGS_X86="MMXEXT"
CXXFLAGS="-march=native -O2 -pipe"
DEFAULT_ABI="amd64"
DISPLAY=":0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_WARNING_DELAY="10"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe"
FLTK_DOCDIR="/usr/share/doc/fltk-1.3.5-r4/html"
GCC_SPECS=""
GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com/ ftp://mirrors.tera-byte.com/pub/gentoo ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
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=""
GSETTINGS_BACKEND="dconf"
HIP_PLATFORM="rocclr"
HOME="/home/harwiltz"
HUSHLOGIN="FALSE"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/10.3.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.35.2/info:/usr/share/info:/usr/share/info/emacs-27"
INPUT_DEVICES="evdev"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack"
JAVAC="/home/harwiltz/.gentoo/java-config-2/current-user-vm/bin/javac"
JAVA_HOME="/home/harwiltz/.gentoo/java-config-2/current-user-vm"
JDK_HOME="/home/harwiltz/.gentoo/java-config-2/current-user-vm"
KERNEL="linux"
LANG="en_US.utf8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_MESSAGES="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib"
LIBREOFFICE_EXTENSIONS="nlpsolver"
LOGNAME="harwiltz"
LUA_SINGLE_TARGET="lua5-1"
LUA_TARGETS="lua5-1"
MAIL="/var/mail/harwiltz"
MAILJET_API_KEY="6d27061696f713b1f0e6147ba5d9bd6b"
MAILJET_SECRET_KEY="ad7d1268140c5953ed83895052ec9997"
MAKEOPTS="-j5"
MANPAGER="manpager"
MANPATH="/home/harwiltz/.gentoo/java-config-2/current-user-vm/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/10.3.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.35.2/man:/etc/java-config-2/current-system-vm/man/:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/12/share/man"
MOTD_SHOWN="pam"
MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)"
NEPTUNE_API_TOKEN="eyJhcGlfYWRkcmVzcyI6Imh0dHBzOi8vdWkubmVwdHVuZS5haSIsImFwaV91cmwiOiJodHRwczovL3VpLm5lcHR1bmUuYWkiLCJhcGlfa2V5IjoiNWE4MTNhNmEtMDIxMS00YWNmLWIxYTQtYjVkNGE5N2QxYzNkIn0="
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/home/harwiltz"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/home/harwiltz/nomadic-packages/google-cloud-sdk/bin:/home/harwiltz/.local/bin:/home/harwiltz/nomadic-packages/google-cloud-sdk/bin:/home/harwiltz/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/12/bin:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools"
PHP_TARGETS="php7-3 php7-4"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 amd64-linux arm arm-linux arm64 arm64-linux arm64-macos hppa ia64 m68k mips ppc ppc-macos ppc64 ppc64-linux riscv s390 sparc sparc-solaris sparc64-solaris x64-cygwin x64-macos x64-solaris x64-winnt x86 x86-linux x86-solaris x86-winnt"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.8"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_LOGDIR_CLEAN="find "${PORTAGE_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib/python3.8/site-packages"
PORTAGE_PYTHONPATH="/usr/lib/python3.8/site-packages"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima 	security.selinux system.nfs4_acl user.apache_handler 	user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*"
POSTGRES_TARGETS="postgres10 postgres11"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PROMPT="$(get_ps1)"
PWD="/home/harwiltz"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_8"
PYTHON_TARGETS="python3_8"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/12/bin"
ROS_DISTRO="Gentoo"
ROS_MASTER_URI="http://localhost:11311/"
ROS_PACKAGE_PATH="/usr/share/ros_packages"
ROS_ROOT="/usr/share/ros"
RPMDIR="/var/cache/rpm"
RUBY_TARGETS="ruby26"
R_HOME="/usr/lib64/R"
SHELL="/bin/zsh"
SHLVL="3"
SYMLINK_LIB="no"
SYSROOT="/"
TERM="xterm-termite"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
UNINSTALL_IGNORE="/lib/modules/* /var/run /var/lock"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif git gpm gtk gui iconv icu ipv6 jpeg latex lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl offensive ogg opengl openmp pam pango pcre pdf png policykit ppds readline rocm sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff tk truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xattr xcb xft xml xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="MMXEXT" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" 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"
USER="harwiltz"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 ADA_TARGET ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_PPC CPU_FLAGS_X86 CURL_SSL ELIBC FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LLVM_TARGETS LUA_SINGLE_TARGET LUA_TARGETS MONKEYD_PLUGINS NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS ROS_MESSAGES RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_PPC ABI_S390 CPU_FLAGS_ARM CPU_FLAGS_PPC ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm64 arm64-macos hppa ia64 m68k mips ppc ppc64 ppc64-linux ppc-macos riscv s390 sparc sparc64-solaris sparc-solaris x64-cygwin x64-macos x64-solaris x64-winnt x86 x86-fbsd x86-linux x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX bionic Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mingw mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Darwin FreeBSD freemint HPUX linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d"
VBOX_APP_HOME="/usr/lib64/virtualbox"
VIDEO_CARDS="amdgpu radeonsi radeon"
VISUAL="/usr/bin/vim"
VTE_VERSION="4602"
WINDOWID="39845891"
WINDOWPATH="1"
XAUTHORITY="/home/harwiltz/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
XDG_RUNTIME_DIR="/run/user/1000"
XDG_SEAT="seat0"
XDG_SESSION_CLASS="user"
XDG_SESSION_ID="2"
XDG_SESSION_TYPE="tty"
XDG_VTNR="1"
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"
Comment 1 Harley Wiltzer 2021-07-13 15:51:34 UTC
Created attachment 723712 [details]
Build log
Comment 2 tt_1 2021-07-15 20:48:36 UTC
the log says to attach certain files: 

27:16.37 clang-12: note: diagnostic msg:
27:16.37 ********************
27:16.37 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
27:16.37 Preprocessed source(s) and associated run script(s) are located at:
27:16.37 clang-12: note: diagnostic msg: /var/tmp/portage/www-client/firefox-90.0/temp/UnifiedProtocols1-fff0d9.cpp
27:16.37 clang-12: note: diagnostic msg: /var/tmp/portage/www-client/firefox-90.0/temp/UnifiedProtocols1-fff0d9.sh
27:16.37 clang-12: note: diagnostic msg:
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2021-07-16 02:24:21 UTC
Your CLANG/LLVM compiler is crashing. Assigning to CLANG maintainer(s) for input.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2021-07-16 02:24:46 UTC
Created attachment 724087 [details]
build.log reduced
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-16 02:40:39 UTC
(BTW: There are a few API keys/secret tokens in your emerge --info because you used emerge --info --verbose. I recommend changing them!)
Comment 6 Iade Gesso 2021-10-02 12:50:06 UTC
Same here after upgrading to clang-13.0.0... clang-13 gives the 139 exit code when building sys-libs/compiler-rt-13.0.0.

I will attach my 'emerge --info' and this is the last error I got:

FAILED: lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divdc3.c.o 
/usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang -DVISIBILITY_HIDDEN   -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -Wall -Wno-unused-parameter  -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -MD -MT lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divdc3.c.o -MF lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divdc3.c.o.d -o lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divdc3.c.o -c /tmp/portage/sys-libs/compiler-rt-13.0.0/work/compiler-rt/lib/builtins/divdc3.c
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang -DVISIBILITY_HIDDEN -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -Wall -Wno-unused-parameter -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -MD -MT lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divdc3.c.o -MF lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divdc3.c.o.d -o lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divdc3.c.o -c /tmp/portage/sys-libs/compiler-rt-13.0.0/work/compiler-rt/lib/builtins/divdc3.c
1.	<eof> parser at end of file
2.	Optimizer
 #0 0x00007fdeab5a207d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x8f007d)
 #1 0x00007fdeab5889d4 llvm::sys::RunSignalHandlers() (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x8d69d4)
 #2 0x00007fdeab4f7fe8 (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x845fe8)
 #3 0x00007fdeaa926670 (/lib64/libc.so.6+0x38670)
 #4 0x00007fdeab36a678 llvm::AsmPrinter::emitMachineConstantPoolValue(llvm::MachineConstantPoolValue*) (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x6b8678)
 #5 0x00007fdeabf07985 llvm::PromoteMemToReg(llvm::ArrayRef<llvm::AllocaInst*>, llvm::DominatorTree&, llvm::AssumptionCache*) (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x1255985)
 #6 0x00007fdeac2109e7 llvm::SROA::runImpl(llvm::Function&, llvm::DominatorTree&, llvm::AssumptionCache&) (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x155e9e7)
 #7 0x00007fdead0d52b3 (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x24232b3)
 #8 0x00007fdeab6e9683 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0xa37683)
 #9 0x00007fdeacb32ca2 (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x1e80ca2)
#10 0x00007fdeab6e9a31 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0xa37a31)
#11 0x00007fdeacb32c52 (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x1e80c52)
#12 0x00007fdeab6e92d9 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0xa372d9)
#13 0x00007fdeb015cff7 (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x1804ff7)
#14 0x00007fdeb01614c1 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x18094c1)
#15 0x00007fdeb042bace (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x1ad3ace)
#16 0x00007fdeaf49ab7d clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0xb42b7d)
#17 0x00007fdeb0a804e9 clang::FrontendAction::Execute() (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x21284e9)
#18 0x00007fdeb0a20ac7 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x20c8ac7)
#19 0x00007fdeb0ac8a7b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x2170a7b)
#20 0x000055afeaf3c2ec cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang+0x132ec)
#21 0x000055afeaf423fe (/usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang+0x193fe)
#22 0x00007fdeb0769805 (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x1e11805)
#23 0x00007fdeab4e3a23 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/lib/llvm/13/bin/../lib64/libLLVM-13.so+0x831a23)
#24 0x00007fdeb0796972 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x1e3e972)
#25 0x00007fdeb0757a49 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x1dffa49)
#26 0x00007fdeb0757e3d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x1dffe3d)
#27 0x00007fdeb075f4b1 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/usr/lib/llvm/13/bin/../lib64/libclang-cpp.so.13+0x1e074b1)
#28 0x000055afeaf384b4 main (/usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang+0xf4b4)
#29 0x00007fdeaa9117fd __libc_start_main (/lib64/libc.so.6+0x237fd)
#30 0x000055afeaf396aa _start (/usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang+0x106aa)
clang-13: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 13.0.0
Target: i386-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
corrupted size vs. prev_size
ninja: build stopped: subcommand failed.
 * ERROR: sys-libs/compiler-rt-13.0.0::gentoo failed (compile phase):
 *   ninja -v -j8 -l8 failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 3258:  Called cmake_src_compile
 *   environment, line 1243:  Called cmake_build
 *   environment, line 1212:  Called eninja
 *   environment, line 1719:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/compiler-rt-13.0.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/compiler-rt-13.0.0::gentoo'`.
 * The complete build log is located at '/tmp/portage/sys-libs/compiler-rt-13.0.0/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/sys-libs/compiler-rt-13.0.0/temp/environment'.
 * Working directory: '/tmp/portage/sys-libs/compiler-rt-13.0.0/work/compiler-rt-13.0.0_build'
 * S: '/tmp/portage/sys-libs/compiler-rt-13.0.0/work/compiler-rt'
Comment 7 Iade Gesso 2021-10-02 12:51:28 UTC
Created attachment 742530 [details]
sys-libs/compiler-rt-13.0.0 emerge --info
Comment 8 Dmitry Grigoriev 2021-10-06 14:10:20 UTC
(In reply to Iade Gesso from comment #6)
> Same here after upgrading to clang-13.0.0... clang-13 gives the 139 exit
> code when building sys-libs/compiler-rt-13.0.0.

Same here, for both sys-libs/compiler-rt-13.0.0 and sys-libs/compiler-rt-sanitizers-13.0.0.
Comment 9 Tee KOBAYASHI 2021-11-02 21:09:45 UTC
As mentioned in https://bugs.llvm.org/show_bug.cgi?id=52375#c3, we need information about how sys-devel/llvm is merged.

This may be a red herring but the two outputs of emerge --info indicate that they are both stable systems and use gcc-10.3.0 as the compiler.
Comment 10 Dmitry Grigoriev 2021-11-02 23:05:39 UTC
(In reply to Tee KOBAYASHI from comment #9)
> As mentioned in https://bugs.llvm.org/show_bug.cgi?id=52375#c3, we need
> information about how sys-devel/llvm is merged.

Looks like I've solved the problem. 

System compiler is gcc-11.2.0, -flto by default. Previous versions of package sys-devel/llvm (at least versions 11.x and 12.x) failed to compile with -flto. Version 13.0.0 compiled, and that was a catcher. Right now I disabled LTO for this one package, and both compiler-rt and compiler-rt-sanitizers were successfully built.
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-11-03 06:35:37 UTC
To rephrase, are you saying that LLVM is broken when build by gcc-11 with -flto?
Comment 12 Dmitry Grigoriev 2021-11-04 00:12:27 UTC
(In reply to Michał Górny from comment #11)
> To rephrase, are you saying that LLVM is broken when build by gcc-11 with
> -flto?

Certainly yes for sys-devel/llvm:11,12 -- and not only with gcc-11 which went stable rather recently; those llvm versions were compiled with previous version(s) of gcc. And likely yes for llvm:13 with gcc-11.
Comment 13 Dmitry Grigoriev 2021-11-04 00:20:00 UTC
BTW, sys-libs/libomp:11,12,13 fails to compile with -flto too. So, of all LLVM/clang-related packages only these two (llvm, libomp) have LTO disabled in my /etc/portage/package.env, everything else (clang, clang-common, clang-runtime, compiler-rt, compiler-rt-sanitizers) is OK with -flto.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-18 08:04:32 UTC
Is this still a problem?