-
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
wasi project with long path results in error clang linking on Windows #106845
Comments
Thank you for the report.
The longest path in the response file has < 260 chars and is invariant of project's location - it seems it is not directly connected with long path issues, e.g. browser on AOT #103625.
From some reason when I specify the linker (originally we run with
to
it starts working. Is it possible that clang does not know that linker for windows should have |
Checking the short path scenario I am not that sure the proposed fix makes sense - project in short path location does not have the problem with linker extension.
|
To make sure it's Windows only problem I checked Linux and it's not failing in
|
Description
When creating a wasi mono project following https://github.com/dotnet/runtime/tree/main/src/mono/wasi#prototype-wasi-support in preview 7 if the path the project is installed on is long then it fails to build with error:
Reproduction Steps
mkdir projects\component\test\really\log\file\path\mess\up\clang\
use project file:
Expected behavior
project to build
Actual behavior
fails to build.
Regression?
no I don't think so
Known Workarounds
move to shorter path
Configuration
.NET v9.0.100-preview.7.24407.12
Other information
this might be an issue with wasi-sdk or clang project, but I couldn't reproduce it with a simple c program and build script
Found when adding dotnet mono support to https://github.com/bytecodealliance/componentize-dotnet and adding the project file to the
~\projects\componentize-dotnet\test\WasmComponentSdkTest\testapps\MonoApp
folderThe text was updated successfully, but these errors were encountered: