Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906751 - sys-devel/llvm-16.0.4 fails to build with crash
Summary: sys-devel/llvm-16.0.4 fails to build with crash
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-19 10:28 UTC by Andreas
Modified: 2023-05-21 08:07 UTC (History)
4 users (show)

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


Attachments
build log (build.log.bz2,49.24 KB, application/x-bzip2)
2023-05-19 10:31 UTC, Andreas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas 2023-05-19 10:28:41 UTC
llvm-16.0.4 fails to build giving me this:

Stack dump:
0.      Program arguments: /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen -gen-searchable-tables -I /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/include -I/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc -d lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc.d
 #0 0x568ff106 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x34f106)
 #1 0x568ff62f PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
 #2 0x568fc187 SignalHandler(int) Signals.cpp:0:0
 #3 0xfffffffff7f10590 (linux-gate.so.1+0x590)
 #4 0x568d8703 .L14 Twine.cpp:0:0
 #5 0x568d88d0 .L56 Twine.cpp:0:0
 #6 0x568d8ddf llvm::Twine::str[abi:cxx11]() const (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x328ddf)
 #7 0x56857476 (anonymous namespace)::SearchableTableEmitter::emitGenericTable((anonymous namespace)::GenericTable const&, llvm::raw_ostream&) SearchableTableEmitter.cpp:0:0
 #8 0x5685bda0 (anonymous namespace)::SearchableTableEmitter::run(llvm::raw_ostream&) SearchableTableEmitter.cpp:0:0
 #9 0x5685cb3f llvm::EmitSearchableTables(llvm::RecordKeeper&, llvm::raw_ostream&) (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x2acb3f)
#10 0x56876afd .L470 TableGen.cpp:0:0
#11 0x569100c7 llvm::TableGenMain(char const*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x3600c7)
#12 0x565f140c main (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x4140c)
#13 0xfffffffff7915a65 (/lib/libc.so.6+0x1fa65)
#14 0xfffffffff7915b28 __libc_start_main (/lib/libc.so.6+0x1fb28)
#15 0x565f3427 _start (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x43427)


Reproducible: Always




Portage 3.0.47 (python 3.11.3-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.37-r3, 6.3.3-gentoo x86_64)
=================================================================
System uname: Linux-6.3.3-gentoo-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.37
KiB Mem:    32790528 total,   8074576 free
KiB Swap:          0 total,         0 free
Head commit of repository overboard: 5d965e00e851dc061f0cd990fddd178574c8e5f8

Timestamp of repository gentoo: Fri, 19 May 2023 07:17:01 +0000
Head commit of repository gentoo: 4aa66ad09f3d79530efd08ef6ce4462a4606c161

sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p5) 2.40.0
ccache version 4.8 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-lang/perl:             5.36.1-r1::gentoo
dev-lang/python:           3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/ccache:           4.8-r2::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/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.30-r1::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:             13.1.0-r1::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::gentoo, 16.0.3::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:

overboard
    location: /usr/local/portage/overboard
    sync-type: git
    sync-uri: https://github.com/piedar/overboard
    masters: gentoo
    volatile: True

farmboy0
    location: /var/lib/layman/farmboy0
    masters: gentoo
    priority: 50
    volatile: True

guru
    location: /var/lib/layman/guru
    masters: gentoo
    priority: 50
    volatile: True

lto-overlay
    location: /var/lib/layman/lto-overlay
    masters: gentoo mv
    priority: 50
    volatile: True

mv
    location: /var/lib/layman/mv
    masters: gentoo
    priority: 50
    volatile: True

myov
    location: /var/lib/layman/myov
    masters: gentoo
    priority: 50
    volatile: True

src_prepare-overlay
    location: /var/lib/layman/src_prepare-overlay
    masters: gentoo
    priority: 50
    volatile: True

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50
    volatile: True

subsurface
    location: /var/lib/layman/subsurface
    masters: gentoo
    priority: 50
    volatile: True

torbrowser
    location: /var/lib/layman/torbrowser
    masters: gentoo
    priority: 50
    volatile: True

vifino-overlay
    location: /var/lib/layman/vifino-overlay
    masters: gentoo
    priority: 50
    volatile: True

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: 1000
    volatile: True

local
    location: /usr/local/portage
    masters: gentoo
    priority: 9999
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA MakeMKV-EULA geekbench"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=12 -fuse-linker-plugin -O3 -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/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=12 -fuse-linker-plugin -O3 -pipe"
DISTDIR="/usr/portage/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 binpkg-multi-instance buildpkg-live candy 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_DK.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LEX="flex"
LINGUAS="se en"
MAKEOPTS="-j15"
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="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gui iconv icu ipv6 jpeg kde kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vdpau vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xinerama xml xv xvid zlib" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="openssl" 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 pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" 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" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeonsi" 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
Comment 1 Andreas 2023-05-19 10:31:18 UTC
Created attachment 861962 [details]
build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-20 02:41:20 UTC
FAILED: lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc 
cd /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86 && /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen -gen-searchable-tables -I /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/include -I/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc -d lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc.d
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen -gen-searchable-tables -I /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/include -I/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc -d lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc.d
 #0 0x568ff106 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x34f106)
 #1 0x568ff62f PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
 #2 0x568fc187 SignalHandler(int) Signals.cpp:0:0
 #3 0xfffffffff7f10590 (linux-gate.so.1+0x590)
 #4 0x568d8703 .L14 Twine.cpp:0:0
 #5 0x568d88d0 .L56 Twine.cpp:0:0
 #6 0x568d8ddf llvm::Twine::str[abi:cxx11]() const (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x328ddf)
 #7 0x56857476 (anonymous namespace)::SearchableTableEmitter::emitGenericTable((anonymous namespace)::GenericTable const&, llvm::raw_ostream&) SearchableTableEmitter.cpp:0:0
 #8 0x5685bda0 (anonymous namespace)::SearchableTableEmitter::run(llvm::raw_ostream&) SearchableTableEmitter.cpp:0:0
 #9 0x5685cb3f llvm::EmitSearchableTables(llvm::RecordKeeper&, llvm::raw_ostream&) (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x2acb3f)
#10 0x56876afd .L470 TableGen.cpp:0:0
#11 0x569100c7 llvm::TableGenMain(char const*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x3600c7)
#12 0x565f140c main (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x4140c)
#13 0xfffffffff7915a65 (/lib/libc.so.6+0x1fa65)
#14 0xfffffffff7915b28 __libc_start_main (/lib/libc.so.6+0x1fb28)
#15 0x565f3427 _start (/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen+0x43427)
[1630/2940] cd /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86 && /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/bin/llvm-tblgen -gen-instr-info -I /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm_build-abi_x86_32.x86/include -I/var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-16.0.4/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc -d lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc.d
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-20 02:41:55 UTC
Could you narrow down which of your CXXFLAGS causes it please? (I'm not saying don't use them at all in general, I just want to know which one specifically causes it, as I suspect not all of them are needed to trigger it.)

I'd start with -fipa-pta.
Comment 4 Andreas 2023-05-20 10:18:48 UTC
Good suggestion, removing -fipa-pta solved the problem, it builds fine now.