Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Native building failed #793

Open
wherewhere opened this issue Jan 1, 2024 · 12 comments
Open

.NET Native building failed #793

wherewhere opened this issue Jan 1, 2024 · 12 comments

Comments

@wherewhere
Copy link

Build succeed with 0.33.0, but failed with 0.35.0. Paving-Base/APK-Installer-UWP@0ac335f

1>C:\Users\qq251\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): error : RHBIND : error RHB0011: 内部错误:“declModule == m_pLoaderModule”(在“f:\dd\ndp\rh\src\tools\rhbind\methodtable.h:609”上)
1>C:\Users\qq251\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): error : ILT0005: “C:\Users\qq251\.nuget\packages\runtime.win10-x86.microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\x86\ilc\Tools\rhbind.exe @"C:\Users\qq251\Downloads\Github\APK-Installer-UWP\APKInstaller\APKInstaller\obj\x86\Release\ilc\intermediate\rhbindargs.APKInstaller.rsp"”已返回退出代码 11
@Erior
Copy link
Contributor

Erior commented Jan 2, 2024

As far as I know that is a tool chain error, I checked out the project, sharpcompress indicated 0.35 and it built just fine for me.
VS 17.8.3 if that helps.

@zhuxb711
Copy link

The last available one is 0.33.0, ZstdSharp.Port introduced from 0.34.0 will break the .Net Native

@adamhathcock
Copy link
Owner

Do you know what causes it?

We could move the code to be internal to library

@schouffy
Copy link

I have the same issue, I can confirm 0.33 is the latest version that builds on .net native toolchain (which is required for MS Store :( ).
That's for UWP at least.

@adamhathcock
Copy link
Owner

I'm gonna need some kind of error message or stacktrace.

It's probably the ZstdSharp dependency and I'm loathed to embed it.

@schouffy
Copy link

I'll send you the .net native compilation verbose log tonight. But it won't be super helpful I think, the only relevant information (as far as I can tell) is the error message sent by OP.

@adamhathcock
Copy link
Owner

well, it's probably the dependency then. I don't know anything about .net native to make it worthwhile to get the whole log if you say there's nothing useful

@oleg-st
Copy link

oleg-st commented Apr 24, 2024

Added a workaround for .NET Native in ZstdSharp 0.8.0

@adamhathcock
Copy link
Owner

49ce17b

I've updated ZstdSharp and made NET8 only trimmable

@zhuxb711
Copy link

49ce17b

I've updated ZstdSharp and made NET8 only trimmable

Should use contains? More target framework belongs to .net8.0, such as .net8.0-windows / .net8.0-windows10.0.19041.0

@adamhathcock
Copy link
Owner

49ce17b
I've updated ZstdSharp and made NET8 only trimmable

Should use contains? More target framework belongs to .net8.0, such as .net8.0-windows / .net8.0-windows10.0.19041.0

the more specific targets still output their base framework: https://github.com/dotnet/designs/blob/main/accepted/2020/net5/net5.md#mapping-to-properties

@schouffy
Copy link

You guys rock!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants