Repository navigation
Pass --targetos to crossgen2 - #55004
Conversation
|
Applied this PR as patch to openbsd VMR workflow https://github.com/am11/dotnet-riscv/actions/runs/28232818605/workflow#L48 and published P7 SDK; it fixed cc @jkotas, @akoeplinger, with this, we don't need to disable crossgen2 in SDK build for non-linux cross targets. |
jkotas
left a comment
There was a problem hiding this comment.
Why is OpenBSD the first OS where we are running into this? I would expect FreeBSD to run into this as well.
|
@jkotas, they disable crossgen2 during SDK build. |
Co-authored-by: Jan Kotas <[email protected]>
|
FYI @Thefrank - TBH, I couldn't find the patch which disables crossgen2 in your repo, so I'm not enitrely sure how SDK -- which defaults to using PublishReadyToRun its own assemblies -- could work with linux in PE header. Therefore, I've claimed above that you guys must be disabling it during the cross build. 👀 |
|
Crossgen2 is disabled/skipped for cross builds VMR accepts NET9 and earlier required |
Co-authored-by: Jan Kotas <[email protected]>
|
So, after this PR, it will no longer be necessary to disable Crossgen on cross builds for NET11+? |
Yes, disabling won't be necessary. I tried this patch on OpenBSD build and it worked cleanly without any additional patch. |
OpenBSD x64 SDK is throwing
$ dotnet --version Unhandled exception. System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (0x8007000B) Abort trap (core dumped) dotnet --version