!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

113 Members
23 Servers

Load older messages


SenderMessageTime
30 Sep 2025
@17lifers:mikuplushfarm.ovh17lifers (at mikuplushfarm) left the room.18:39:32
5 Oct 2025
@rosssmyth:matrix.org@rosssmyth:matrix.org left the room.01:47:21
@emma:rory.gayEmma [it/its]huh, i gotta build dotnet 10 from source23:55:59
@emma:rory.gayEmma [it/its]that doesnt sound very positive23:56:29
@emma:rory.gayEmma [it/its]

ah, seems it failed on hydra, and logs arent available: https://hydra.nixos.org/build/308971738

was cancelled though

23:59:38
6 Oct 2025
@corngood:corngood.comCorngoodhttps://github.com/NixOS/nixpkgs/issues/431811. I haven't been able to get a core dump or find a way to reproduce it.00:11:05
@emma:rory.gayEmma [it/its]clipboard.png
Download clipboard.png
13:35:03
@emma:rory.gayEmma [it/its]thought it would take more than half an hour to build dotnet-sdk 10 lol13:35:14
@emma:rory.gayEmma [it/its]was unable to reproduce here too13:36:01
@corngood:corngood.comCorngoodIf anyone has more rights than me on hydra, that might be helpful for reproducing this, or possibly getting a core dump. I've tried poking around with various system limits, but I'm not quite sure what to try next.14:02:20
@tris203:matrix.orgtris203 I can reproduce in a garnix builder. The garnix guys did say they could help get logs from their builders. But then went quiet 14:52:58
@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

Show newer messages


Back to Room ListRoom Version: 9