-
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
clr.alljits subset fails cross-compiling for linux-x86 on linux-x64 #68044
Comments
Tagging subscribers to this area: @hoyosjs Issue DetailsDescriptionCross-compiling the clr.alljits subset for linux-x86 on linux-x64 fails. The issue seems to be related to building the win-x86 jit as commenting out this line lets the build succeed: runtime/src/coreclr/jit/CMakeLists.txt Line 595 in 73665cc
I think the solution might be to change runtime/src/coreclr/inc/clrnt.h Line 836 in 57bfe47
Reproduction StepsCheckout repo on ubuntu 20.04, build with
Expected behaviorBuild succeeds Actual behaviorBuild fails with the error
Regression?This built for .NET 5.0.3 (though the resulting product didn't function). I think the regression may have been in #41126 but I'm not sure about this. The build fails in .NET 6.0.3 also. Known WorkaroundsI think the solution might be to change runtime/src/coreclr/inc/clrnt.h Line 836 in 57bfe47
ConfigurationAttempting to cross-compile Using Ubuntu 20.04 x64 VM under Windows 10 x64 hyper-v. Other informationNo response
|
Description
Cross-compiling the clr.alljits subset for linux-x86 on linux-x64 fails.
The issue seems to be related to building the win-x86 jit as commenting out this line lets the build succeed:
runtime/src/coreclr/jit/CMakeLists.txt
Line 595 in 73665cc
I think the solution might be to change
TARGET_UNIX
toHOST_UNIX
here:runtime/src/coreclr/inc/clrnt.h
Line 836 in 57bfe47
Reproduction Steps
Checkout repo on ubuntu 20.04, build with
Expected behavior
Build succeeds
Actual behavior
Build fails with the error
Regression?
This built for .NET 5.0.3 (though the resulting product didn't function).
I think the regression may have been in #41126 but I'm not sure about this.
The build fails in .NET 6.0.3 also.
Known Workarounds
I think the solution might be to change
TARGET_UNIX
toHOST_UNIX
here:runtime/src/coreclr/inc/clrnt.h
Line 836 in 57bfe47
Configuration
Attempting to cross-compile
main
commit89b034d8e3
.Using Ubuntu 20.04 x64 VM under Windows 10 x64 hyper-v.
Other information
No response
The text was updated successfully, but these errors were encountered: