-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Rust built WASM library in Blazor project fails on wasm-opt when being published #96394
Comments
Is there any other info I should send?
Also installed wasm-opt cargo, it shows different error. Can it be that the error is caused by either Rust wasm compiler or wasm-opt itself? |
Hey guys. Let me know, please, if I forgot to mention something important. I hoped to tinker with the blazor wasm + rust wasm while i'm of the work ) |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsIs there an existing issue for this?
Describe the bugHi guys,
Expected BehaviorIt should have published the project Steps To ReproduceMy steps are:
Exceptions (if any)No response .NET Version6.0 Anything else?No response
|
Hi guys! How is it going? Writing to let you know that I still need the thing, and I'm afraid that this problem will be automatically closed. Thanks in advance! 👍 |
No worries, the issue won't get closed without resolution. Sorry I didn't get to it earlier. I'm going to investigate it now. |
I had problems with .NET 8 before I found and reproduced it on BlazeOrbit. I haven't tried BlazeOrbit using .NET 8. |
Publishing BlazeOrbit from VS worked on my machine. Can you please publish it using command line |
Binlog file: msbuild.binlog.zip.
|
The .NET 6 demo doesn't work because incompatiblity between cargo and wasm-opt that is shipped in wasm-tools-net6 workload. For more info see
After upgrading the demo to .NET 8 publish passed successfully. What problems are you facing with .NET 8? Can you share more details or simple repro? |
This issue has been marked |
Hi, thank you very much! Turns out I gave you wrong info about using .NET 8. I used .NET 8 for every project except for blazor project itself, because it gave me weird error like this: I wasn't able to find any information about this error anywhere, and I wanted to finish testing things on Blazor and WASM on new year's day offs. So, I just switched the Blazor project to .NET 7, which gave the same error in my very first comment. Could you, please, provide me some info on how deal with this error, if you have any, so that I would be able to confirm that project publishes without any issues on .NET 8. Also, I wasn't able to look though the links above. I plan to do it on this weekends. Thanks! ) |
IIRC disabling WASM EH did the trick |
This issue has been marked |
I see the build is using sqlite are you building it yourself or using existing packages? |
Hi @maraf, Hi @lewing, |
It appears at first glance that the problem you were seeing is because of a c++ native library that was built with different ABI settings than the runtime. Are you referencing any other native libraries? |
@lewing, except for rustqr? No. I didn't make any changes in BlazeOrbital sqlite package reference and nuget packages update. |
@SteveSandersonMS you are up ;) |
I'm going to close this issue now as I believe the problem lies with rust tooling configuration. In my previous comment there are hints I was about to found, but I'm not expert there. Whether to maintain BlazorOrbital sample up to date with every .NET release is more of a question for that repo. Feel free to reopen the issue if you see problem on .NET runtime side. |
Is there an existing issue for this?
Describe the bug
Hi guys,
I've been trying to publish my project with this error. I've searched a lot and tried a bunch of stuff, but none of them worked. Then I stumbled upon the issue where BlazeOrbit was recommended to verified the issue. The same error occurs on that project too.
I get this error:
error.log
Expected Behavior
It should have published the project
Steps To Reproduce
My steps are:
BlazeOrbital\rustqr> cargo build --target wasm32-unknown-emscripten
crate-type = ["staticlib"]
tocrate-type = ["dylib"]
(I need dll for BlazeOrbital.Accounting)BlazeOrbital\rustqr> cargo build --target x86_64-pc-windows-msvc
Exceptions (if any)
No response
.NET Version
6.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: