Build fails with clang llvm output: ``` Generating symbol list from object files cd /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs && \ /usr/bin/x86_64-pc-linux-gnu-nm --defined-only *.o | /usr/bin/gawk '{ if ($3 ~ /^_ZTV|^gHotSpotVM|^UseSharedSpaces$|^_ZN9Arguments17SharedArchivePathE$/) print $3; }' | /usr/bin/sort -u > /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/symbols-objects /usr/bin/rm -f /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM.d ( /usr/bin/rm -f /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/abstract_vm_version.o.op_check.log && /usr/bin/x86_64-pc-linux-gnu-nm /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/abstract_vm_version.o 2>&1 | /usr/bin/grep -e _ZdaPv -e _ZdlPv -e _Znam -e _Znwm | /usr/bin/grep ' U ' > /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/abstract_vm_version.o.op_check || true > >(/usr/bin/tee -a /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/abstract_vm_version.o.op_check.log) 2> >(/usr/bin/tee -a /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/abstract_vm_version.o.op_check.log >&2) || ( exitcode=$? && /usr/bin/cp /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/abstract_vm_version.o.op_check.log /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/make-support/failure-logs/hotspot_variant-server_libjvm_objs_abstract_vm_version.o.op_check.log && /usr/bin/cp /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/abstract_vm_version.o.op_check.cmdline /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/make-support/failure-logs/hotspot_variant-server_libjvm_objs_abstract_vm_version.o.op_check.cmdline && exit $exitcode ) ) cd /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs && /usr/bin/cat *.d > /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM.d.tmp /usr/bin/x86_64-pc-linux-gnu-nm: ad_x86_format.o: no symbols if [ -s /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/abstract_vm_version.o.op_check ]; then echo "abstract_vm_version.o: Error: Use of global operators new and delete is not allowed in Hotspot:"; /usr/bin/x86_64-pc-linux-gnu-nm /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/abstract_vm_version.o | /usr/bin/x86_64-pc-linux-gnu-c++filt | /usr/bin/grep -E '[^:]operator (new|delete)' | /usr/bin/grep ' U '; echo "See: /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/make/hotspot/lib/CompileJvm.gmk"; exit 1; fi /usr/bin/x86_64-pc-linux-gnu-nm: bytecodeHistogram.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: c1_CFGPrinter.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: c1_Defs.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: c1_InstructionPrinter.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: c1_ValueSet.o: no symbols cd /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs && /usr/bin/cat *.d.targets | /usr/bin/sort -u >> /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM.d.tmp /usr/bin/x86_64-pc-linux-gnu-nm: idealGraphPrinter.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: instanceOop.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: oopsHierarchy.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: operator_new.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: register.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: safefetch_sigjmp.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: safepointVerifiers.o: no symbols /usr/bin/x86_64-pc-linux-gnu-nm: vm_version_linux_x86.o: no symbols /usr/bin/sed -e '/^#/d' /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/make/data/hotspot-symbols/symbols-shared /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/make/data/hotspot-symbols/symbols-unix /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/make/data/hotspot-symbols/symbols-linux /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/symbols-objects > /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/symbols Creating mapfile printf "SUNWprivate_1.1 { \n global: \n" > /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/mapfile.tmp /usr/bin/gawk '{ if ($0 ~ ".") { print " " $0 ";" } }' < /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/symbols >> /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/mapfile.tmp /usr/bin/cp /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM.d.tmp /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM.d.old printf " local: \n *; \n }; \n" >> /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/mapfile.tmp /usr/bin/rm -f /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/mapfile /usr/bin/mv /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/mapfile.tmp /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/mapfile Linking libjvm.so /usr/bin/mv /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM.d.tmp /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM.d ( /usr/bin/rm -f /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM_link.log && /usr/lib/llvm/17/bin/clang++ -mno-omit-leaf-frame-pointer -mstack-alignment=16 -fPIC -m64 -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -fuse-ld=lld -W1,-O2 -rtlib=compiler-rt -unwindlib=libunwind -static-libstdc++ -static-libgcc -shared -O3 -flto -fuse-linker-plugin -fno-strict-aliasing -m64 -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -fuse-ld=lld -W1,-O2 -rtlib=compiler-rt -unwindlib=libunwind -Wl,-version-script=/var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/mapfile -Wl,-soname=libjvm.so -isysroot / -o /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/support/modules_libs/java.base/server/libjvm.so @/var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/_BUILD_LIBJVM_objectfilenames.txt -lm -ldl -lpthread -lrt > >(/usr/bin/tee -a /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM_link.log) 2> >(/usr/bin/tee -a /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM_link.log >&2) || ( exitcode=$? && /usr/bin/cp /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM_link.log /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/make-support/failure-logs/hotspot_variant-server_libjvm_objs_BUILD_LIBJVM_link.log && /usr/bin/cp /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM_link.cmdline /var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86_64-server-release/make-support/failure-logs/hotspot_variant-server_libjvm_objs_BUILD_LIBJVM_link.cmdline && exit $exitcode ) ) ; ld.lld: error: version script assignment of 'SUNWprivate_1.1' to symbol 'sysThreadAvailableStackWithSlack' failed: symbol not defined ``` attempted gcc and disabling lto without any help ``` [ebuild U ] dev-java/openjdk-17.0.10_p7:17::gentoo [17.0.8.1_p1:17::gentoo] USE="alsa* cups lto (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt (-javafx) -jbootstrap (-selinux) -source -systemtap" 0 KiB ``` Reproducible: Always
this looks similar i'm on llvm-17 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274109
Please provide emerge --info and attach the full build log.
``` emerge --info Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/23.0/llvm, gcc-13, glibc-2.38-r10, 6.6.21-gentoo.custom x86_64) ================================================================= System uname: Linux-6.6.21-gentoo.custom-x86_64-Intel-R-_Core-TM-_i7-8550U_CPU_@_1.80GHz-with-glibc2.38 KiB Mem: 16189996 total, 3110064 free KiB Swap: 16777212 total, 15109808 free Timestamp of repository gentoo: Fri, 05 Apr 2024 19:49:15 +0000 Head commit of repository gentoo: 50990a4ab0839b750ef8651452352cc799739a60 Head commit of repository local: f99e0aa10b45baef1aa4a8bd23acd9992bffd13e sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.41 p5) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.28.3::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.3.2::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.38.2-r2::gentoo dev-lang/python: 3.11.8_p1::gentoo, 3.12.2_p1::gentoo dev-lang/rust: 1.75.0-r1::gentoo sys-apps/baselayout: 2.14-r2::gentoo sys-apps/openrc: 0.54::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.41-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 17.0.6::gentoo sys-devel/gcc: 13.2.1_p20240210::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 17.0.6::gentoo sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r10::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False sync-git-verify-commit-signature: yes local location: /var/db/repos/local sync-type: git sync-uri: ssh://git@github.com/Teknocrat/teknocrat-overlay.git masters: gentoo priority: 90 volatile: True ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" ADDR2LINE="llvm-addr2line" AR="llvm-ar" AS="clang -c" CBUILD="x86_64-pc-linux-gnu" CC="clang" CFLAGS="-O2 -pipe -march=native -mtune=native -flto=thin" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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" CPP="clang-cpp" CXX="clang++" CXXFLAGS="-O2 -pipe -march=native -mtune=native -flto=thin" 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="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LD="ld.lld" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -fuse-ld=lld -W1,-O2 -rtlib=compiler-rt -unwindlib=libunwind" LEX="flex" LINGUAS="en en_US" MAKEOPTS="-j7" 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 amd64 bash-completion bluetooth bzip2 caps cet clang crypt cups dbus egl elogind ffmpeg flac gdbm gif gmp gnome-keyring iconv icu ipv6 jpeg keyring libtirpc llvm-libunwind lzma mtp multilib ncurses netlink nls ogg opengl openmp pam pcre png policykit pulseaudio readline seccomp ssl svg test-rust threads tiff truetype udev unicode usb v4l vaapi vulkan wayland xattr zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 sse4a avx avx2 aes fma 3dnowprefetch fma3 f16c pclmul popcnt" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="crocus intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" 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, PYTHONPATH, RUSTFLAGS, SIZE, YACC, YFLAGS ```
(In reply to Mike Gilbert from comment #2) > Please provide emerge --info and attach the full build log. full build log is 17MB the above should; be sufficient let me know if you need more
Created attachment 889547 [details] build-log
(In reply to Gino McCarty from comment #1) > this looks similar > i'm on llvm-17 > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274109 Have you tried with that patch dropped into /etc/portage/patches ?
(In reply to Volkmar W. Pogatzki from comment #6) > (In reply to Gino McCarty from comment #1) > > this looks similar > > i'm on llvm-17 > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274109 > > Have you tried with that patch dropped into /etc/portage/patches ? I did, unfortunately it didn't resolve the issue I also tried disabling lto.