Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to compile dotnet-sdk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pizzuhh
n00b
n00b


Joined: 26 Nov 2024
Posts: 5
Location: Bulgaria

PostPosted: Thu Nov 28, 2024 1:30 pm    Post subject: Failed to compile dotnet-sdk Reply with quote

Build log: https://0x0.st/XRj9.txt
`emerge --info '=dev-dotnet/dotnet-sdk-8.0.107::gentoo'`: https://0x0.st/XRjp.info.txt

I tried to install dotnet-sdk today to do c# stuff but it failed to compile with above's log.

Here's `emerge --info`:

Code:

Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/systemd, gcc-14, glibc-2.40-r5, 6.6.62-gentoo x86_64)
=================================================================
System uname: Linux-6.6.62-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-12700K-with-glibc2.40
KiB Mem:    32636788 total,  12979748 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 28 Nov 2024 12:25:00 +0000
Head commit of repository gentoo: 3b2cc734746d777a881ea9e3c7337ca20510065e
Timestamp of repository steam-overlay: Sun, 17 Nov 2024 05:33:32 +0000
Head commit of repository steam-overlay: 443e064b607a92dbad15243732698edc0b411b43

sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.7_p1::gentoo, 3.13.0::gentoo
dev-lang/rust:             1.81.0-r100::gentoo
dev-lang/rust-bin:         1.81.0-r100::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          256.7::gentoo
sys-devel/binutils:        2.42-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           18.1.8::gentoo
sys-devel/gcc:             14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            18.1.8-r1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.bg.gentoo.org/gentoo-portage/
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:

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"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=25600 -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/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=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=25600 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=8"
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=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=25600 -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=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=25600 -O2 -pipe"
GENTOO_MIRRORS="http://ftp.byfly.by/pub/gentoo-distfiles/     ftp://ftp.byfly.by/pub/gentoo-distfiles/     rsync://ftp.byfly.by/gentoo/     https://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/     rsync://ftp.belnet.be/gentoo/gentoo/     https://mirror.telepoint.bg/gentoo     http://mirror.telepoint.bg/gentoo     ftp://mirror.telepoint.bg/gentoo     rsync://mirror.telepoint.bg/gentoo     https://mirror.it4i.cz/gentoo     http://mirror.it4i.cz/gentoo     rsync://mirror.it4i.cz/gentoo     https://gentoo.mirrors.ovh.net/gentoo-distfiles/     http://gentoo.mirrors.ovh.net/gentoo-distfiles/     https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     rsync://mirror.eu.oneandone.net/gentoo/     https://ftp.tu-ilmenau.de/mirror/gentoo/     http://ftp.tu-ilmenau.de/mirror/gentoo/     rsync://ftp.tu-ilmenau.de/gentoo/     https://ftp.fau.de/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j16 -l18"
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 acl alsa amd64 bash-completion bzip2 cet concheck crypt dbus gdbm gtk iconv introspection ipv6 jpeg libtirpc minizip multilib ncurses nls nss ogg opengl openmp opus pam pcre pipewire policykit postproc ppp pulseaudio python qml qt6 readline seccomp sound-server ssl systemd test-rust tools udev unicode vaapi vulkan wext x264 xattr zlib" ABI_X86="64 32" 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 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 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" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" 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="amdgpu radeonsi radv" 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, 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


After looking at the build log I saw this:
Code:

Commencing build of "install" target in "CoreCLR component" for linux.x64.Release in /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release
      Invoking "/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/eng/native/gen-buildsys.sh" "/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/src/coreclr" "/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release" x64 linux clang Release ""  -DCLR_CMAKE_PGO_INSTRUMENT=0 -DCLR_CMAKE_OPTDATA_PATH= -DCLR_CMAKE_PGO_OPTIMIZE=0 -DCLI_CMAKE_FALLBACK_OS="gentoo.2.17" -DFEATURE_DISTRO_AGNOSTIC_SSL=0  -DCLR_CMAKE_KEEP_NATIVE_SYMBOLS=true
      /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/src/coreclr
      Not searching for unused variables given on the command line.
      -- The C compiler identification is Clang 18.1.8
      -- The CXX compiler identification is Clang 18.1.8
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - failed
      -- Check for working C compiler: /usr/lib/llvm/18/bin/clang-18
      -- Check for working C compiler: /usr/lib/llvm/18/bin/clang-18 - broken
      CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
        The C compiler
     
          "/usr/lib/llvm/18/bin/clang-18"
     
        is not able to compile a simple test program.
     
        It fails with the following output:
     
          Change Dir: '/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release/CMakeFiles/CMakeScratch/TryCompile-zc1zp3'
         
          Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_de159/fast
          /usr/bin/gmake  -f CMakeFiles/cmTC_de159.dir/build.make CMakeFiles/cmTC_de159.dir/build
          gmake[1]: Entering directory '/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release/CMakeFiles/CMakeScratch/TryCompile-zc1zp3'
          Building C object CMakeFiles/cmTC_de159.dir/testCCompiler.c.o
          /usr/lib/llvm/18/bin/clang-18   -march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=25600 -O2 -pipe  -MD -MT CMakeFiles/cmTC_de159.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_de159.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_de159.dir/testCCompiler.c.o -c /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release/CMakeFiles/CMakeScratch/TryCompile-zc1zp3/testCCompiler.c
          clang-18: error: unknown argument '-mabm'; did you mean '-marm'?
          gmake[1]: *** [CMakeFiles/cmTC_de159.dir/build.make:79: CMakeFiles/cmTC_de159.dir/testCCompiler.c.o] Error 1
          gmake[1]: Leaving directory '/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release/CMakeFiles/CMakeScratch/TryCompile-zc1zp3'
          gmake: *** [Makefile:127: cmTC_de159/fast] Error 2
         
         
     
       
     
        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:9 (project)
     
     
      -- Configuring incomplete, errors occurred!
      /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/src/coreclr
      /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/src/coreclr
      Executing make install -j 20
      make: *** No rule to make target 'install'.  Stop.
      /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/src/coreclr
      ##vso[task.logissue type=error]Failed to build "CoreCLR component".
    /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/src/coreclr/runtime.proj(94,5): error MSB3073: The command ""/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/src/coreclr/build-runtime.sh" -x64 -release -ci -portablebuild=false -keepnativesymbols -os linux -outputrid gentoo.2.17-x64" exited with code 2.
   
    Build FAILED.
   
    /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/src/coreclr/runtime.proj(94,5): error MSB3073: The command ""/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/src/coreclr/build-runtime.sh" -x64 -release -ci -portablebuild=false -keepnativesymbols -os linux -outputrid gentoo.2.17-x64" exited with code 2.
        0 Warning(s)
        1 Error(s)
   
    Time Elapsed 00:00:49.41
    Build failed with exit code 1. Check errors above.
  /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets(207,5): error MSB3073: The command "./build.sh  --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false --outputrid gentoo.2.17-x64 /p:PackageOS=linux /p:ToolsOS=linux /p:AdditionalRuntimeIdentifierParent=linux /p:ArcadeBuildFromSource=true /p:OfficialBuildId=20240613.11 /p:ContinuousIntegrationBuild=true /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/ /p:ArtifactsDir=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/ /bl:/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/obj/x64/Release/PackageVersions.runtime.props /p:FullAssemblySigningSupported=false" exited with code 1. [/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]
  ##vso[task.logissue type=error;sourcepath=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets;linenumber=207;columnnumber=5;code=MSB3073;]The command "./build.sh  --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false --outputrid gentoo.2.17-x64 /p:PackageOS=linux /p:ToolsOS=linux /p:AdditionalRuntimeIdentifierParent=linux /p:ArcadeBuildFromSource=true /p:OfficialBuildId=20240613.11 /p:ContinuousIntegrationBuild=true /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/ /p:ArtifactsDir=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/ /bl:/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/obj/x64/Release/PackageVersions.runtime.props /p:FullAssemblySigningSupported=false" exited with code 1.
 
  Build FAILED.
 
  /var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets(207,5): error MSB3073: The command "./build.sh  --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false --outputrid gentoo.2.17-x64 /p:PackageOS=linux /p:ToolsOS=linux /p:AdditionalRuntimeIdentifierParent=linux /p:ArcadeBuildFromSource=true /p:OfficialBuildId=20240613.11 /p:ContinuousIntegrationBuild=true /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/ /p:ArtifactsDir=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/ /bl:/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/self/src/artifacts/sourcebuild.binlog /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/artifacts/source-build/ /p:SourceBuiltBlobFeedDir= /p:DotNetBuildOffline=true /p:DotNetPackageVersionPropsPath=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/obj/x64/Release/PackageVersions.runtime.props /p:FullAssemblySigningSupported=false" exited with code 1. [/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]
      0 Warning(s)
      1 Error(s)
 
  Time Elapsed 00:01:09.70
  Build failed with exit code 1. Check errors above.
[?1h=/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/repo-projects/Directory.Build.targets(265,5): error MSB3073: The command "/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/src/runtime/build.sh  --ci --configuration Release --restore --build --pack --publish -bl /p:ArcadeBuildFromSource=true /p:CopyWipIntoInnerSourceBuildRepo=true /p:DotNetBuildOffline=true /p:CopySrcInsteadOfClone=true /p:DotNetPackageVersionPropsPath="/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/obj/x64/Release/PackageVersions.runtime.props" /p:AdditionalSourceBuiltNupkgCacheDir="/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/artifacts/obj/x64/Release/blob-feed/packages/" /p:ReferencePackageNupkgCacheDir="/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/prereqs/packages/reference/" /p:PreviouslySourceBuiltNupkgCacheDir="/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/prereqs/packages/previously-source-built/" /p:SourceBuildUseMonoRuntime= /p:TargetRid=gentoo.2.17-x64 /p:RuntimeOS=linux /p:BaseOS=linux /p:SourceBuildNonPortable=true /p:UsingToolMicrosoftNetCompilers=false " exited with code 1. [/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7/repo-projects/runtime.proj]
  'runtime' failed during build.
  'dotnet' failed during build.
 [ !! ]
 * ERROR: dev-dotnet/dotnet-sdk-8.0.107::gentoo failed (compile phase):
 *   build failed
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 3019:  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-8.0.107::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-dotnet/dotnet-sdk-8.0.107::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7'
 * S: '/var/tmp/portage/dev-dotnet/dotnet-sdk-8.0.107/work/dotnet-sdk-8.0.7'
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22803

PostPosted: Thu Nov 28, 2024 3:06 pm    Post subject: Reply with quote

Your CFLAGS include -mabm. Per info gcc, this is a flag that gcc accepts. However, you are building this package using clang, which apparently does not accept this flag.
Code:
$ gcc -mabm -x c /dev/null -c -o /dev/null
$ clang-18 -mabm -x c /dev/null -c -o /dev/null
clang-18: error: unknown argument '-mabm'; did you mean '-marm'?
Your options are:
  • Remove gcc-specific CFLAGS, such as -mabm, for this package
  • Use gcc for this package (if supported; I did not check)
  • File a bug asking to have this package filter out gcc-specific CFLAGS when building with clang. I am reluctant to suggest pursuing this path without a better understanding of why this package is using clang. Based on the ebuild dependencies, I think this ebuild always uses clang, but I don't know why, or if there are plans to change that.
Back to top
View user's profile Send private message
pizzuhh
n00b
n00b


Joined: 26 Nov 2024
Posts: 5
Location: Bulgaria

PostPosted: Thu Nov 28, 2024 3:38 pm    Post subject: Reply with quote

Hu wrote:
Your CFLAGS include -mabm. Per info gcc, this is a flag that gcc accepts. However, you are building this package using clang, which apparently does not accept this flag.
Code:
$ gcc -mabm -x c /dev/null -c -o /dev/null
$ clang-18 -mabm -x c /dev/null -c -o /dev/null
clang-18: error: unknown argument '-mabm'; did you mean '-marm'?
Your options are:
  • Remove gcc-specific CFLAGS, such as -mabm, for this package
  • Use gcc for this package (if supported; I did not check)
  • File a bug asking to have this package filter out gcc-specific CFLAGS when building with clang. I am reluctant to suggest pursuing this path without a better understanding of why this package is using clang. Based on the ebuild dependencies, I think this ebuild always uses clang, but I don't know why, or if there are plans to change that.


Well that fixed that error. Now I get another error.

Here's the build log: https://0x0.st/XR2h.log
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum