Skip to content

Conversation

@hbiyik
Copy link

@hbiyik hbiyik commented Dec 2, 2025

-mno-omit-leaf-frame-pointer is aarch64 specific, using this flag in armv7 will break compilation of everything with gcc and result will error

cc: error: unrecognized command-line option
‘-mno-omit-leaf-frame-pointer’; did you mean ‘-fno-omit-frame-pointer’?

References:
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/AArch64-Function-Attributes.html#index-omit-leaf-frame-pointer-function-attribute_002c-AArch64 https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/ARM-Function-Attributes.html

in case things gets lost in the way here i am pinging @graysky2 @kmihelich

-mno-omit-leaf-frame-pointer is aarch64 specific, using this flag in
armv7 will break compilation of everything with gcc and result will
error

cc: error: unrecognized command-line option
‘-mno-omit-leaf-frame-pointer’; did you mean ‘-fno-omit-frame-pointer’?

References:
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/AArch64-Function-Attributes.html#index-omit-leaf-frame-pointer-function-attribute_002c-AArch64
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/ARM-Function-Attributes.html
@hbiyik
Copy link
Author

hbiyik commented Dec 2, 2025

seems like this a regression form march 2024: https://github.com/archlinuxarm/PKGBUILDs/blame/6c4f047f155988f7bd0a80a6988e1662ed293109/core/pacman/makepkg.conf, and since then each gcc build with makepkg seems to be broken in armv7h

edit: sigh, seems like there was even a pr in oct.24: #2151 :(

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.

2 participants