Skip to content

Fixed bug #733: build error on android with NEON intrinsics #737

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

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

1bsyl
Copy link
Contributor

@1bsyl 1bsyl commented Aug 4, 2025

Neon intrinsics "vcopyq_laneq_f32" is undeclared.
It is defined in <arm_neon.h>, but not activated because of __ARM_FP value.

So, unactivate NEON intrinsics for spatialization on Android.

Neon intrinsics "vcopyq_laneq_f32" is undeclared.
It is defined in <arm_neon.h>, but not activated because of __ARM_FP value.

So, unactivate NEON intrinsics for spatialization on Android.
@1bsyl 1bsyl merged commit 529d98a into libsdl-org:main Aug 4, 2025
5 checks passed
@1bsyl 1bsyl deleted the br_android_spatial_neon_v2 branch August 4, 2025 10:56
@sezero
Copy link
Contributor

sezero commented Aug 4, 2025

Without this patch, does it still fail when targeting arm64 ??

@1bsyl
Copy link
Contributor Author

1bsyl commented Aug 4, 2025

@sezero
indeed, you're right
only armeabi-v7a is affected
arm64-v8a is fine

@sezero
Copy link
Contributor

sezero commented Aug 4, 2025

So, add an additional restriction for arm64, e.g. something like this ???

#if defined(SDL_PLATFORM_ANDROID) && defined(SDL_NEON_INTRINSICS) && !defined(__aarch64__)

@1bsyl
Copy link
Contributor Author

1bsyl commented Aug 4, 2025

@sezero
yes, that works! thanks.
I can commit that later

@sezero
Copy link
Contributor

sezero commented Aug 4, 2025

@sezero yes, that works! thanks.

You're welcome

I can commit that later

Yes please. Otherwise, it would be sad to disable neon for aarch64.

@slouken
Copy link
Collaborator

slouken commented Aug 4, 2025

Committed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants