Compile fails using clang Completes successfully with sys-devel/gcc-13.1.0-r1 using package.env over-rides: CFLAGS="-march=native -mtune=native -O2 -pipe" CXXFLAGS="${CFLAGS}" LDFLAGS="-Wl,--as-needed" CC="gcc" CXX="g++" AR="ar" NM="nm" RANLIB="ranlib" OBJCOPY="objcopy" Reproducible: Always Steps to Reproduce: profile: default/linux/arm64/17.0/systemd/llvm/merged-usr keyword: ~amd64 update emerge gdb Actual Results: aarch64-linux-nat.c:448:19: error: variable-sized object may not be initialized uint64_t tpidrs[tdep->tls_register_count] = { 0 }; ^~~~~~~~~~~~~~~~~~~~~~~~ aarch64-linux-nat.c:474:19: error: variable-sized object may not be initialized uint64_t tpidrs[tdep->tls_register_count] = { 0 }; ^~~~~~~~~~~~~~~~~~~~~~~~ # emerge --info Portage 3.0.47 (python 3.11.3-final-0, default/linux/arm64/17.0/systemd/llvm/merged-usr, gcc-13, glibc-2.37-r3, 6.1.19-gentoo-arm64 aarch64) ================================================================= System uname: Linux-6.1.19-gentoo-arm64-aarch64-with-glibc2.37 KiB Mem: 16361844 total, 12935588 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Thu, 11 May 2023 22:30:01 +0000 Head commit of repository gentoo: 012de021b3b8690f34528e7068872a5c27a15e9a sh bash 5.2_p15-r2 ld GNU ld (Gentoo 2.40 p5) 2.40.0 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-util/cmake: 3.26.3::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.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: 16.0.3::gentoo sys-devel/gcc: 12.2.1_p20230428-r1::gentoo, 13.1.0-r1::gentoo sys-devel/gcc-config: 2.10::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 16.0.3::gentoo sys-devel/llvm: 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: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="arm64 ~arm64" ACCEPT_LICENSE="*" ADDR2LINE="llvm-addr2line" AR="llvm-ar" AS="clang -c" CBUILD="aarch64-unknown-linux-gnu" CC="clang" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CPP="clang-cpp" CXX="clang++" CXXFLAGS="-march=native -mtune=native -O2 -pipe" DISTDIR="/var/cache/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="-march=native -mtune=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live 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="-march=native -mtune=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF8" LD="ld.lld" LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed " LEX="flex" LINGUAS="en en_US" MAKEOPTS="-j8" NM="llvm-nm" OBJCOPY="llvm-objcopy" OBJDUMP="llvm-objdump" 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" RANLIB="llvm-ranlib" READELF="llvm-readelf" SHELL="/bin/bash" STRINGS="llvm-strings" STRIP="llvm-strip" USE="acl arm64 bzip2 clang cli crypt cryptsetup dri fortran gdbm gnutls gpm iconv ipv6 libglvnd libtirpc llvm-libunwind lz4 ncurses nls nptl openmp pam pcre readline seccomp ssl systemd test-rust udev unicode xattr zlib zstd" ADA_TARGET="gnat_2021" CPU_FLAGS_ARM="edsp thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="efi-64" KERNEL="linux" L10N="en en-US" LLVM_TARGETS="AArch64" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" USERLAND="GNU" Unset: ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS, SIZE, YACC, YFLAGS
Created attachment 861548 [details] gdb-13.1.90_p20230429_build.log
pre-version, long gone