-
Notifications
You must be signed in to change notification settings - Fork 199
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
tweaks to enable NativeAOT-LLVM on Linux with WASI-SDK 22 #2592
tweaks to enable NativeAOT-LLVM on Linux with WASI-SDK 22 #2592
Conversation
@dotnet-policy-service agree company="Fermyon Technologies" |
cc @dotnet/nativeaot-llvm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pthread situation will need to be resolved, s.t. an unmodified SDK can be used, by pulling the stubs from PalRedhawkWasm.cpp
to PalRedhawkWasm.h
.
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
Outdated
Show resolved
Hide resolved
Thanks for the detailed feedback, @SingleAccretion. I'm planning to address it when I get a chance early next week. |
I tried pursuing that, but it got ugly fast. I had to edit code under e.g. src/coreclr/gc and sprinkle new Then I took a step back and decided to add the following to
If that's not acceptable, I'd vote we stick with WASI-SDK 21 for the time being, then upgrade to WASI-SDK 23, which should include a fix for WebAssembly/wasi-libc#501. |
FYI, this should address the missing pthread.h issue, once merged and included in a release: WebAssembly/wasi-libc#504 |
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
Outdated
Show resolved
Hide resolved
Hm, I see |
It would be ideal if there was a way to propagate the warning upwards, but it looks like there isn't... Presumably, the directives can be guarded with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo one comment and assuming green CI. Thank you!
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
Outdated
Show resolved
Hide resolved
Could you please resolve the conflict? |
4b122dd
to
4769ab8
Compare
Some of these changes are borrowed from dotnet#2569. Note that I had to manually copy pthread.h from the wasi-sdk-22/share/wasi-sysroot/include/wasm32-wasi-threads directory to the wasi-sdk-22/share/wasi-sysroot/include/wasm32-wasi directory as a workaround until WebAssembly/wasi-libc#501 is addressed. Signed-off-by: Joel Dice <joel.dice@fermyon.com>
4769ab8
to
df0f98d
Compare
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
Outdated
Show resolved
Hide resolved
Co-authored-by: yowl <scott.waye@hubse.com>
I've resolved the conflict and everything's green. Are we good to merge this? |
Thanks! |
Some of these changes are borrowed from #2569.
Note that I had to manually copy pthread.h from the wasi-sdk-22/share/wasi-sysroot/include/wasm32-wasi-threads directory to the wasi-sdk-22/share/wasi-sysroot/include/wasm32-wasi directory as a workaround until WebAssembly/wasi-libc#501 is addressed.