too long lines were shrinked: /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/artifacts/obj/Microsoft.NETCore.App.Host/Release/net9.0/gentoo.2.17-x64/output/ -> /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/artifacts/packages/Release/Shipping//dotnet Successfully created package '/var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/artifacts/packages/Release/Shipping/Microsoft.NETCore.App.Host.gentoo.2.17-x64.9.0.0.nupkg'. Successfully created package '/var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/artifacts/packages/Release/Shipping/Microsoft.NETCore.App.Host.gentoo.2.17-x64.9.0.0.symbols.nupkg'. crossgen2_publish -> /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/artifacts/bin/crossgen2_publish/x64/Release/crossgen2.dll Generating native code /usr/bin/x86_64-pc-linux-gnu-ld.bfd: /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/artifacts/bin/coreclr/linux.x64.Release/aotsdk/libRuntime.ServerGC.a(libunwind.cpp.o): in function `__libunwind_cet_get_jump_target': /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/src/native/external/llvm-libunwind/src/AddressSpace.hpp:(.text.__libunwind_cet_get_jump_target+0x0): multiple definition of `__libunwind_cet_get_jump_target'; /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/w /usr/bin/x86_64-pc-linux-gnu-ld.bfd: /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/artifacts/bin/coreclr/linux.x64.Release/aotsdk/libRuntime.ServerGC.a(UnwindHelpers.cpp.o): in function `__libunwind_cet_get_jump_target': /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/src/native/external/llvm-libunwind/src/DwarfParser.hpp:420: multiple definition of `__libunwind_cet_get_jump_target'; /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/artifact ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_plasma-20241209-035003 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-14 * clang version 19.1.5 llvm-config: 19.1.5 Python 3.12.7 Available Rust versions: [1] rust-bin-1.83.0 * HEAD of ::gentoo commit bb3307fe71a5991bf14e9c70f97b0224453d5171 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Mon Dec 9 19:48:27 2024 +0000 2024-12-09 19:48:26 UTC emerge -qpvO =dev-dotnet/dotnet-sdk-9.0.100-r2 [ebuild N ] dev-dotnet/dotnet-sdk-9.0.100-r2 LLVM_SLOT="18 -17"
Created attachment 913714 [details] emerge-info.txt
Created attachment 913715 [details] dev-dotnet:dotnet-sdk-9.0.100-r2:20241209-205438.log.xz
Created attachment 913716 [details] emerge-history.txt
Created attachment 913717 [details] environment
Created attachment 913718 [details] etc.clang.tar.xz
Created attachment 913719 [details] etc.portage.tar.xz
The file size of ./files/logs.tar.xz is too big (140M) for an upload. For few weeks the link http://tinderbox.zwiebeltoralf.de:31560/23.0_desktop_plasma-20241209-035003/var/tmp/tb/issues/20241209-215830-dev-dotnet_dotnet-sdk-9.0.100-r2/files/logs.tar.xz is valid.
Created attachment 913720 [details] qlist-info.txt
Created attachment 913721 [details] temp.tar.xz
More info: this is from crossgen /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/src/native/external/llvm-libunwind/src/DwarfParser.hpp:420: multiple definition of `__libunwind_cet_get_registers'; /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/artifacts/bin/coreclr/linux.x64.Release/aotsdk/libRuntime.ServerGC.a(libunwind.cpp.o):/usr/include/bits/string_fortified.h:29: first defined here clang-19 : error : linker command failed with exit code 1 (use -v to see invocation) [/var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.100-r2/work/dotnet-sdk-9.0.0/src/runtime/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj]
Created attachment 913740 [details] Build still failing with a similar issue on dotnet-sdk-9.0.101 Build log on 9.0.101
I have been getting this issue and it persists on dotnet-sdk-9.101 [ebuild NS ] dev-dotnet/dotnet-sdk-9.0.101 [8.0.107-r2] LLVM_SLOT="19%* -18* (-17%)" I have attached a gzip of my build log and will post my emerge --info as well
Created attachment 913741 [details] witchyanna's emerge --info for dotnet-sdk-9.0.101
This must have been introduced in unstable llv+clang+lld (>=19.1.5), does not appear on stable.
*** Bug 947149 has been marked as a duplicate of this bug. ***
anna, toralf, could you test 9.0.X (9.0.101) with LLVM_SLOT=18 ?
Created attachment 915552 [details] build still failing with llvm 18 The build is still failing with LLVM 18, though through a casual perusal of this log, I am not sure it is actually using LLVM 18 despite setting the flags (it seems to grab the llvm 19 compiler?) ================================================================= Package Settings ================================================================= dev-dotnet/dotnet-sdk-8.0.107::gentoo was built with the following: USE="" ABI_X86="(64)" LLVM_SLOT="18 -17" CFLAGS="-march=native -O2 -pipe" CXXFLAGS="-march=native -O2 -pipe"
(In reply to anna from comment #17) > Created attachment 915552 [details] > build still failing with llvm 18 > > The build is still failing with LLVM 18, though through a casual perusal of > this log, I am not sure it is actually using LLVM 18 despite setting the > flags (it seems to grab the llvm 19 compiler?) > > ================================================================= > Package Settings > ================================================================= > > dev-dotnet/dotnet-sdk-8.0.107::gentoo was built with the following: > USE="" ABI_X86="(64)" LLVM_SLOT="18 -17" > CFLAGS="-march=native -O2 -pipe" > CXXFLAGS="-march=native -O2 -pipe" The "Package Settings" you wrote is wrong, you added a log of dotnet-sdk-9.0.101. BUT you are right that dotnet-sdk-9.0.101 completely ignores llvm/clang settings: > -- Check for working C compiler: /usr/lib/llvm/19/bin/clang-19 - skipped
I had reproduced the issue of defaulting to clang 19 when LLVM_SLOT=18 is selected and I am currently working on a patch.
(In reply to Maciej Barć from comment #18) > > The "Package Settings" you wrote is wrong, you added a log of > dotnet-sdk-9.0.101. The package settings are what it tells me to post afterwards, currently 8.0.107 is installed, but yes the version in portage is now 9.0.101 so that is what it is trying to compile.
I have pushed a change to .NET build that should pick the correct compiler. Now when using LLVM_SLOT=18 I see in the logs that clang-18 is getting picked. Anna, if you can, please, give that version a try, with LLVM_SLOT=18 of course.
Created attachment 915610 [details] 9.0.101-r1 llvm 18 build failure [ebuild NS ] dev-dotnet/dotnet-sdk-9.0.101 [8.0.107] LLVM_SLOT="18 -19% (-17%)" ❯ emerge --info '=dev-dotnet/dotnet-sdk-9.0.101::gentoo' Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/desktop, gcc-14, glibc-2.40-r7, 6.12.7-gentoo-dist x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.12.7-gentoo-dist-x86_64-AMD_Ryzen_5_7535HS_with_Radeon_Graphics-with-glibc2.40 KiB Mem: 15577396 total, 6332808 free KiB Swap: 100663288 total, 100425720 free Timestamp of repository gentoo: Tue, 31 Dec 2024 16:30:00 +0000 Head commit of repository gentoo: d12a4a20a722325b3bd371897e02e5a5e6f86f87 Timestamp of repository guru: Mon, 30 Dec 2024 16:18:10 +0000 Head commit of repository guru: 628c70f1910a44baf7e1dba05416dd0f245482a7 Timestamp of repository steam-overlay: Sun, 22 Dec 2024 19:48:21 +0000 Head commit of repository steam-overlay: fc25c23144765c2fcc4726aa19448b0ed507fc3e sh bash 5.2_p37 ld GNU ld (Gentoo 2.42 p6) 2.42.0 distcc 3.4 x86_64-pc-linux-gnu [disabled] app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo dev-build/cmake: 3.31.3::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.6.1::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0-r1::gentoo dev-lang/python: 3.12.8::gentoo, 3.13.1::gentoo dev-lang/rust-bin: 1.81.0-r100::gentoo, 1.82.0-r100::gentoo, 1.83.0::gentoo llvm-core/clang: 17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.6::gentoo llvm-core/lld: 18.1.8::gentoo, 19.1.6::gentoo llvm-core/llvm: 17.0.6-r3::gentoo, 18.1.8-r6::gentoo, 19.1.6::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/openrc: 0.55.1::gentoo sys-apps/sandbox: 2.42::gentoo sys-devel/binutils: 2.42-r2::gentoo, 2.43-r2::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 14.2.1_p20241221::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.12::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r7::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-verify-max-age: 3 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.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 Binary Repositories: gentoobinhost priority: 1 sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE @EULA @BINARY-REDISTRIBUTABLE all-rights-reserved Moria free-noncomm adom CC-Sampling-Plus-1.0 Sustainable-Use-1.0 FatFs CC-BY-NC-SA-3.0" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -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/angband/gamedata/ /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d" CXXFLAGS="-march=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -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=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -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 merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe" GENTOO_MIRRORS="https://mirror.servaxnet.com/gentoo/ http://mirror.servaxnet.com/gentoo/ http://gentoo-mirror.flux.utah.edu/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j12 -l30" 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" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dist-kernel dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qml qt5 qt6 readline sdl seccomp semantic-desktop sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vaapi vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_13" 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 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev" KERNEL="linux" 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-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="nvidia amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
(In reply to anna from comment #22) > Created attachment 915610 [details] > 9.0.101-r1 llvm 18 build failure > > [ebuild NS ] dev-dotnet/dotnet-sdk-9.0.101 [8.0.107] LLVM_SLOT="18 -19% > (-17%)" > > ❯ emerge --info '=dev-dotnet/dotnet-sdk-9.0.101::gentoo' > Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/desktop, > gcc-14, glibc-2.40-r7, 6.12.7-gentoo-dist x86_64) > ================================================================= > ... > CFLAGS="-march=znver3 -mshstk --param=l1-cache-line-size=64 > --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe" I think those specific CFLAGS/CXXFLAGS break cmake's detection since you are now getting this: > CMake Error at /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.101/work/dotnet-sdk-9.0.101/src/runtime/src/native/l ibs/configure.cmake:646 (check_library_exists): > check_library_exists Macro invoked with incorrect arguments for macro > named: CHECK_LIBRARY_EXISTS > Call Stack (most recent call first): > /var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.101/work/dotnet-sdk-9.0.101/src/runtime/src/native/libs/CMakeList s.txt:112 (include) This last was seen with LTO flags that clang did not allow. Please see: * https://bugs.gentoo.org/946334 * https://github.com/dotnet/runtime/issues/110664 You cna debug this by looking into CMakeConfigureLog.yaml files, as the comment https://github.com/dotnet/runtime/issues/110664#issuecomment-2546380001 says. And well, ans you can also retry with plain "-march=native -O2 -pipe" as your *FLAGS.
afaik the cmake's detection in dotnet sdk will error on warnings, and the --param flags do cause warnings: > clang-18: warning: argument unused during compilation: '--param l1-cache-line-size=64' [-Wunused-command-line-argument] > clang-18: warning: argument unused during compilation: '--param l1-cache-size=32' [-Wunused-command-line-argument] > clang-18: warning: argument unused during compilation: '--param l2-cache-size=512' [-Wunused-command-line-argument]
Created attachment 915651 [details] with march native added env overrides to use march=native new year new dotnet build failure!
*** Bug 948894 has been marked as a duplicate of this bug. ***
Good morning Is there any progress on this issue, thought I had a separate issue (sorry, raised it as a separate one, here is a link if ti sheds any insight https://bugs.gentoo.org/show_bug.cgi?id=948894) but seem to be feeling the same pain.
Hello vgrhost, while I haven't heard back on any upstream fixes I was able to get this to build on one of my computers with the following. creating the file /etc/portage/env/native-cflags with the contents: COMMON_FLAGS="-march=native -O2 -pipe" CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" FCFLAGS="${COMMON_FLAGS}" FFLAGS="${COMMON_FLAGS}" putting the following in my package.use (I organize my package.use into individual files grouped by what they generally belong to so this is alone in /etc/portage/package.use/dotnet in my case): dev-dotnet/dotnet-sdk -llvm_slot_19 llvm_slot_18 Then finally for the native-cflags to be applied, the following in /etc/portage/package.env: dev-dotnet/dotnet-sdk native-cflags At some point my laptop seemed to get through it somehow but my desktop is still failing the same way the attached "With march native" error in dotnet-arcade is so it doesn't seem to be fully fixed yet
Sorry Anna, just saw your message today. Tested it, but seems to be getting the same message as before using your approach * Messages for package dev-dotnet/dotnet-sdk-9.0.101: * ERROR: dev-dotnet/dotnet-sdk-9.0.101::gentoo failed (compile phase): * build failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3040: Called die * The specific snippet of code: * eend ${?} || die "build failed" * * If you need support, post the output of `emerge --info '=dev-dotnet/dotnet-sdk-9.0.101::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-dotnet/dotnet-sdk-9.0.101::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.101/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.101/temp/environment'. * Working directory: '/var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.101/work/dotnet-sdk-9.0.101' * S: '/var/tmp/portage/dev-dotnet/dotnet-sdk-9.0.101/work/dotnet-sdk-9.0.101' * GNU info directory index is up-to-date. * After world updates, it is important to remove obsolete packages with * emerge --depclean. Refer to `man emerge` for more information.