-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[wasm] Emscripten cache being unwritable due to permissions can cause AOT build to get stuck #75345
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptionI am trying to build a Blazor WebAssembly app referencing a C++ library built with
The cache file is not cache.lock is not created Reproduction Stepshttps://github.com/Devsh-Graphics-Programming/GPU-With-C-Sharp-Angular-WASM/tree/master/BlazorEmscripten Expected behaviorBlazor app builds and runs the browser. Actual behaviorThe build process stalls after printing
Regression?I have not tried .NET other than 6 because that was when NativeFileReference was added Known WorkaroundsNo response Configurationdotnet runtime 6.0.8 win x64 Did not get to launching the browser Other informationNo response
|
cc @radekdoulik |
|
|
Update:I had a hunch it had something to do with me having 2 different emsdks on my computer. After removing the one i cloned manually, i was left only with the dotnet emsdk. Turns out, after adding that dir to PATH even running The issue has something to with emcc being in |
so the solution is for Blazor/dotnet to stop putting its cache in |
cc @radekdoulik |
+1 |
@radekdoulik this should be fixed now with your cache changes, correct? |
I still face this issue, with Visual Studio 17.6 Preview 4 and .NET 8 Preview 3 |
yes, this should be fixed by #84356. so .NET8 Preview4 will have it fixed |
This is already fixed. |
Description
I am trying to build a Blazor WebAssembly app referencing a C++ library built with
emcc
, but the build problem halts after finishing the pre-build event and a warning about a nullable field, and prints out this warning:The cache file is not cache.lock is not created
Reproduction Steps
https://github.com/Devsh-Graphics-Programming/GPU-With-C-Sharp-Angular-WASM/tree/master/BlazorEmscripten
Clone the repo with a test blazor app,
Downloaded SWIG (C#/C++ pinvoke generator) and add it to PATH (such that a prebuild event successfully executed)
Tried to build, got asked for a runtime
Download latest dotnet runtimes and sdks as of 9.09.2022
Closed and relaunched the solution in VS2022
Try to build the BlazorEmscripten.Client and fail
Expected behavior
Blazor app builds and runs the browser.
Actual behavior
The build process stalls after printing
Regression?
I have not tried .NET other than 6 because that was when NativeFileReference was added
Known Workarounds
No response
Configuration
dotnet runtime 6.0.8 win x64
windowsdesktop runtime 6.0.8 win x64
Tested on two computers, one running Windows 10 and Windows 11
Did not get to launching the browser
Other information
No response
The text was updated successfully, but these errors were encountered: