!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

113 Members
23 Servers

Load older messages


SenderMessageTime
6 Oct 2025
@wiiplayer2:matrix.orgWaldemar Tomme (they/them)I can reproduce this on my machine. I think I got a "valid" coredump14:55:59
@wiiplayer2:matrix.orgWaldemar Tomme (they/them)Should I upload it somewhere? Is it still needed? I'm not really able to do anything else with it at the moment.15:30:51
@corngood:corngood.comCorngoodI'd love to take a look at it. Could you post it on the issue?15:42:02
@wiiplayer2:matrix.orgWaldemar Tomme (they/them)Will do15:45:50
@wiiplayer2:matrix.orgWaldemar Tomme (they/them)I can't currently upload due to github file restrictions and android shenanigans. Will upload when I'm home again.16:00:20
@wiiplayer2:matrix.orgWaldemar Tomme (they/them)Done (https://github.com/user-attachments/files/22726930/core.dotnet.1000.3a20fb14c4624604a43db731020ae596.1258979.1759762428000000.zst.gz)16:46:22
@corngood:corngood.comCorngoodThanks! Can you tell me exactly what you were running (including nixpkgs commit) so I can grab the symbols?17:00:09
@znaniye:matrix.orgznaniyeRedacted or Malformed Event17:03:01
@znaniye:matrix.orgznaniye *

I'm trying to update renode to a newer dotnet version but im getting these errors even after running fetch-deps. Maybe this is caused by the [fetchSubmodules content](https://github.com/renode/renode/tree/master/lib)?

       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Infrastructure/src/Plugins/SampleCommandPlugin/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0'
 in the TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Plugins/SampleCommandPlugin/SampleCommandPlugin_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Infrastructure/src/Plugins/TracePlugin/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the 
TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Plugins/TracePlugin/TracePlugin_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Infrastructure/src/Emulator/Extensions/MonitorTests/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'ne
t9.0' in the TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Emulator/Extensions/MonitorTests/MonitorTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/lib/options-parser/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFrameworks for you
r project. [/build/source/lib/options-parser/OptionsParserTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Infrastructure/src/Emulator/Peripherals/Test/PeripheralsTests/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have in
cluded 'net9.0' in the TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Emulator/Peripherals/Test/PeripheralsTests/PeripheralsTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/tests/unit-tests/RenodeTests/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFramewor
ks for your project. [/build/source/tests/unit-tests/RenodeTests/RenodeTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/tests/unit-tests/RenodeTests/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFramewor
0' in the TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Emulator/Main/Tests/UnitTests/UnitTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/lib/InpliTftpServer/libtftp/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFramework
s for your project. [/build/source/lib/InpliTftpServer/libtftp/libtftp_alt_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Renode/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFrameworks for your projec
t. [/build/source/src/Renode/Renode_NET.csproj::TargetFramework=net9.0]
       >     0 Warning(s)
       >     25 Error(s)
       >
       > Time Elapsed 00:00:00.71
       For full logs, run:
         nix log /nix/store/vi0sivvrzc5nkz8z2cnfq6ac42gqpd3j-renode-1.16.0.drv 
17:03:42
@znaniye:matrix.orgznaniye *

I'm trying to update renode to a newer dotnet version but im getting these errors even after running fetch-deps. Maybe this is caused by the fetchSubmodules content?

       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Infrastructure/src/Plugins/SampleCommandPlugin/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0'
 in the TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Plugins/SampleCommandPlugin/SampleCommandPlugin_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Infrastructure/src/Plugins/TracePlugin/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the 
TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Plugins/TracePlugin/TracePlugin_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Infrastructure/src/Emulator/Extensions/MonitorTests/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'ne
t9.0' in the TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Emulator/Extensions/MonitorTests/MonitorTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/lib/options-parser/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFrameworks for you
r project. [/build/source/lib/options-parser/OptionsParserTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Infrastructure/src/Emulator/Peripherals/Test/PeripheralsTests/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have in
cluded 'net9.0' in the TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Emulator/Peripherals/Test/PeripheralsTests/PeripheralsTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/tests/unit-tests/RenodeTests/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFramewor
ks for your project. [/build/source/tests/unit-tests/RenodeTests/RenodeTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/tests/unit-tests/RenodeTests/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFramewor
0' in the TargetFrameworks for your project. [/build/source/src/Infrastructure/src/Emulator/Main/Tests/UnitTests/UnitTests_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/lib/InpliTftpServer/libtftp/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFramework
s for your project. [/build/source/lib/InpliTftpServer/libtftp/libtftp_alt_NET.csproj::TargetFramework=net9.0]
       > /nix/store/b8s307w96hm3vai6rxh7k5ybw5cqjf2k-dotnet-sdk-9.0.305/share/dotnet/sdk/9.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: A
ssets file '/build/source/src/Renode/obj/project.assets.json' doesn't have a target for 'net9.0'. Ensure that restore has run and that you have included 'net9.0' in the TargetFrameworks for your projec
t. [/build/source/src/Renode/Renode_NET.csproj::TargetFramework=net9.0]
       >     0 Warning(s)
       >     25 Error(s)
       >
       > Time Elapsed 00:00:00.71
       For full logs, run:
         nix log /nix/store/vi0sivvrzc5nkz8z2cnfq6ac42gqpd3j-renode-1.16.0.drv 
17:04:03
@wiiplayer2:matrix.orgWaldemar Tomme (they/them) I just did nix shell nixpkgs#dotnetCorePackages.dotnet_10.vmr. Will try to produce a new dump with known commit (and write down commands) 17:17:16
@znaniye:matrix.orgznaniyeRedacted or Malformed Event17:24:21
@znaniye:matrix.orgznaniye *

Diff:

@@ -79,8 +78,11 @@ buildDotnetModule rec {

   projectFile = "Renode_NET.sln";

-  dotnet-runtime = dotnet-runtime_8;
-  dotnet-sdk = dotnet-sdk_6;
+  dotnet-runtime = dotnetCorePackages.runtime_9_0-bin;
+  dotnet-sdk = dotnetCorePackages.sdk_9_0;
+
+  dotnetBuildFlags = [ "-p:TargetFramework=net9.0" ];
+  dotnetInstallFlags = dotnetBuildFlags;

   nugetDeps = ./deps.json;

@@ -169,8 +171,6 @@ buildDotnetModule rec {
     ln -s $out/lib/*.so src/Infrastructure/src/Emulator/Cores/bin/Release/lib
   '';

-  dotnetInstallFlags = [ "-p:TargetFramework=net6.0" ];
17:24:52
@wiiplayer2:matrix.orgWaldemar Tomme (they/them)I updated my comment. commit: 7df7ff7d8e00218376575f0acdcc5d66741351ee dump: https://github.com/user-attachments/files/22727917/core.dotnet.1000.09aa2b6d0d1748609f9dcbc52901eb12.71615.1759773022000000.zst.gz17:53:39
@corngood:corngood.comCorngood

I'm not sure why, but I can't seem to find the dotnet sdk matching those build IDs:

$ eu-unstrip -n --core core.dotnet.1000.3a20fb14c4624604a43db731020ae596.1258979.1759762428000000
0x555555554000+0x14000 241026d804eadbfa123e6fd0aa66a3b313a86f1d@0x5555555543b8 - - /home/waldemar/source/dotnet_10_nixbuild/dotnet-10.0.100-rc.1.25451.107/.dotnet/dotnet
0x7fffe71b4000+0x32000 cb0989ffc047e7f9a021f8f8fa19ffc61fc6b288@0x7fffe71b4248 - - /home/waldemar/source/dotnet_10_nixbuild/dotnet-10.0.100-rc.1.25451.107/.dotnet/shared/Microsoft.NETCore.App/10.0.0-rc.1.25451.107/libSystem.Security.Cryptography.Native.OpenSsl.so
0x7fffecc00000+0x37f000 f053ad10559276e9e51aecb0268b154dcc9957aa@0x7fffecc00280 - - /home/waldemar/source/dotnet_10_nixbuild/dotnet-10.0.100-rc.1.25451.107/.dotnet/shared/Microsoft.NETCore.App/10.0.0-rc.1.25451.107/libclrjit.so
0x7fffeea6d000+0x1b000 e868f3a81abcb6f81ab996e9e74a0fdae91652ec@0x7fffeea6d280 - - /home/waldemar/source/dotnet_10_nixbuild/dotnet-10.0.100-rc.1.25451.107/.dotnet/shared/Microsoft.NETCore.App/10.0.0-rc.1.25451.107/libSystem.Native.so
0x7ffff7000000+0x740000 51d41b5dd39b0caf8564e51f44a95a595d0f11b8@0x7ffff7000280 - - /home/waldemar/source/dotnet_10_nixbuild/dotnet-10.0.100-rc.1.25451.107/.dotnet/shared/Microsoft.NETCore.App/10.0.0-rc.1.25451.107/libcoreclr.so
0x7ffff7a81000+0xe3000 0af03026e75a10f4e44e090b73aad54dbcc5f06e@0x7ffff7a81248 - - /home/waldemar/source/dotnet_10_nixbuild/dotnet-10.0.100-rc.1.25451.107/.dotnet/shared/Microsoft.NETCore.App/10.0.0-rc.1.25451.107/libcoreclrtraceptprovider.so
0x7ffff7b64000+0x4d000 f741919d1a0311adb007ae43413fa57e15928980@0x7ffff7b64280 - - /home/waldemar/source/dotnet_10_nixbuild/dotnet-10.0.100-rc.1.25451.107/.dotnet/shared/Microsoft.NETCore.App/10.0.0-rc.1.25451.107/libhostpolicy.so
0x7ffff7bb1000+0x4f000 cceb4825e7102b503944bda98334109727755b5d@0x7ffff7bb1280 - - /home/waldemar/source/dotnet_10_nixbuild/dotnet-10.0.100-rc.1.25451.107/.dotnet/host/fxr/10.0.0-rc.1.25451.107/libhostfxr.so
[...]

If I unpack and configure dotnet with nix develop nixpkgs/7df7ff7d8e00218376575f0acdcc5d66741351ee#dotnetCorePackages.dotnet_10.vmr, I get:

$ file .dotnet/dotnet
tmp/dotnet-10.0.100-rc.1.25451.107/.dotnet/dotnet: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/776irwlgfb65a782cxmyk61pck460fs9-glibc-2.40-66/lib/ld-linux-x86-64.so.2, BuildID[sha1]=8cfe346da5b77627ebe747a8085cc2f606b4f074, for GNU/Linux 3.10.0, not stripped

I even tried stage0.vmr in case yours was crashing there, but those build IDs don't match either.

18:50:57
@wiiplayer2:matrix.orgWaldemar Tomme (they/them)I uploaded a second coredump matching the commit earlier because I wanted to make sure it matches the commit (because i didn't know which commit was used before). I see that the coredump's name doesn't match it19:03:20
@corngood:corngood.comCorngoodAh sorry, I didn't realise you'd uploaded a different one. That one does match19:42:07
@corngood:corngood.comCorngood

That gave me:

#0  0x00007fbed0f69113 in LinearScan::RegisterSelection::try_SPILL_COST (this=0x7fbe542d0b20) at /build/dotnet-10.0.100-rc.1.25451.107/src/runtime/src/coreclr/jit/lsra.cpp:13103
#1  0x00007fbe542cee18 in ?? ()
#2  0x00007fbe544df418 in ?? ()
#3  0x4076800000000009 in ?? ()
#4  0x0000000000000000 in ?? ()

which led me to https://github.com/dotnet/runtime/issues/119070

19:45:33
@wiiplayer2:matrix.orgWaldemar Tomme (they/them)So I guess it's fixed but due to it not released yet it's not included in nixpkgs yet?19:50:46
@corngood:corngood.comCorngoodYeah, but I'm going to try cherry-picking it, since it's causing build failures: https://github.com/NixOS/nixpkgs/pull/44923719:57:07
@samuel:mnzn.devSamuel Makes sense, all machines I was hitting this issue on are running Ryzen processors with AVX-512 support 19:58:11
@corngood:corngood.comCorngoodYeah, I didn't put it together than I've got an older ryzen without that instruction set...20:00:49
@samuel:mnzn.devSamuel Well you wouldn't usually expect hardware support for more features to break your software, so... 20:03:03
@samuel:mnzn.devSamuel Because usually it's the other way around. 20:03:41
8 Oct 2025
@corngood:corngood.comCorngoodhttps://github.com/NixOS/nixpkgs/pull/449614 dotnet build fix for darwin, in case anyone is able to review16:52:14
@corngood:corngood.comCorngoodLooks like we have dotnet 10 building in hydra again 🎉16:53:50
@andrewzah:matrix.abare.partyAndrew Zah joined the room.17:14:29
10 Oct 2025
@whovian9369:matrix.orgWhovian9369

Hey gang, I'm trying to build https://github.com/aaru-dps/Aaru/releases/tag/v6.0.0-alpha.12 from source (e2d70ba327dfc5ab67d068389c0b2e6049f76a87) and keep getting the following issue. The issue does not seem to appear with the latest git commit (5e8aece987d799e51e970bd170c28e2bd1ebf374) -- Anyone have any ideas on where to go from here?

CSC : error PH2075: AssemblyVersion has changed. Actual: 6.0.0.12 Expected: 1.0.0.0 [/build/source/Aaru.Logging/Aaru.Logging.csproj]
CSC : error PH2075: AssemblyVersion has changed. Actual: 6.0.0.12 Expected: 1.0.0.0 [/build/source/Aaru.Localization/Aaru.Localization.csproj]
21:06:46
@whovian9369:matrix.orgWhovian9369Download prerelease.nix21:08:49
@whovian9369:matrix.orgWhovian9369Here's my current derivation that's throwing the error, in case it gives any obvious ideas.21:09:15

Show newer messages


Back to Room ListRoom Version: 9