-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Cross-Compiling CoreCLR for ARM mfpu=vfpv4-d16 fails #113013
Comments
Tagging subscribers to this area: @hoyosjs |
You can likely workaround it by changing this line: The zlib-ng build includes some optimized code that's opportunistically enabled. .NET 8 and older didn't have the zlib-ng builds IIRC. |
Build works ok, with workaround: It would be great if you can make proper fix. Can you? I am going to verify if runtime works on HW, but I first need to update to |
Tagging subscribers to this area: @dotnet/area-system-io-compression |
I assume this should be fixed at the upstream repo. |
@hopix would you like to propose a PR to fix it? |
Description
Cross-compiling .net 9 runtime for VFP Configuration ARM
vfpv4-d16
(-mfpu=vfpv4-d16
) fails.Following doc at https://github.com/dotnet/runtime/blob/v9.0.2/docs/workflow/building/coreclr/cross-building.md#cross-compiling-coreclr-for-other-vfp-configurations
Reproduction Steps
Using build command line:
Expected behavior
Build should succeed.
Actual behavior
Build fails where 1st error in log is:
In file included from /runtime/src/native/external/zlib-ng/arch/arm/slide_hash_neon.c:12: /runtime/src/native/external/zlib-ng/arch/arm/neon_intrins.h:38:28: error: expected identifier or '(' 38 | static inline uint16x8x4_t vld1q_u16_x4(uint16_t const *a) {
It seems to wrongly compiling for
NEON
instead ofvfpv4-d16
.And few lines above error I can see:
* NEON_ADLER32, Support NEON instructions in adler32, using "-mfpu=neon"
Regression?
Using this since .net 5, and I checked that clean compile still works in .net 8 branch.
Known Workarounds
None
Configuration
Version: .NET 9
Target architecture: ARM
Running build from WSL 2 Ubuntu with Docker Desktop.
Other information
No response
The text was updated successfully, but these errors were encountered: