Skip to content
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

Fix building lr-mupen64plus-next on 32bit arm RPIOS Bookworm #4002

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joolswills
Copy link
Member

@joolswills joolswills commented Nov 17, 2024

lr-mupen64plus-next - fix building on aarch64 kernel with arm userland

lr-mupen64plus-next - fix building on rpi5 on 32bit arm bookworm

On the rpi5 on 32bit arm rpios bookworm, building failed with

/usr/lib/gcc/arm-linux-gnueabihf/12/include/arm_neon.h:18284:34: error: unknown type name ‘float16x4_t’; did you mean ‘bfloat16x4_t’?
18284 | vfmlal_low_f16 (float32x2_t __r, float16x4_t __a, float16x4_t __b)
      |                                  ^~~~~~~~~~~
      |                                  bfloat16x4_t

Add the option -mfp16-format=ieee which fixes this.

Use an array add_clags to handle the additional CFLAGS changes and use for the linkage_arm.S workaround.

On the rpi5 on 32bit arm rpios bookworm, building failed with

    /usr/lib/gcc/arm-linux-gnueabihf/12/include/arm_neon.h:18284:34: error: unknown type name ‘float16x4_t’; did you mean ‘bfloat16x4_t’?
    18284 | vfmlal_low_f16 (float32x2_t __r, float16x4_t __a, float16x4_t __b)
          |                                  ^~~~~~~~~~~
          |                                  bfloat16x4_t

Add the option -mfp16-format=ieee which fixes this.

Use an array add_clags to handle the additional CFLAGS changes and use for the linkage_arm.S workaround.
@joolswills joolswills force-pushed the lr-mupen64plus-next_arm_on_aarch64 branch from 53e7740 to dd7d409 Compare November 17, 2024 23:48
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.

1 participant