I have a project that requires me to enable the hardware watchdog on a RaspberryPi 4. This requires installing the watchdog daemon which is available at: https://aur.archlinux.org/packages/watchdog
Running "makepkg" in the projects directory fails which seems to boil down to the CFLAGS set in /etc/makepkg.conf.
I have not modified these flags myself and by default they include "-mno-omit-leaf-frame-pointer" which GCC (14.1.1) does not recognize and the configure file fails with:
configure:3470: error: C compiler cannot create executables
Looking at config.log I see:
gcc: error: unrecognized command-line option '-mno-omit-leaf-frame-pointer'; did you mean '-fno-omit-frame-pointer'?
By default both '-mno-omit-leaf-frame-pointer' and '-fno-omit-frame-pointer' are included in the CFLAG option in makepkg.conf. Removing '-mno-omit-leaf-frame-pointer' allows me to build and install the package successfully.
Versions:
Pacman v6.1.0
makepkg (pacman) 6.1.0
GCC 14.1.1
Kernel 6.6.31-2-rpi
Wathcdog-5.16
Is the use of this flag intentional and could removing it cause issues later on?
Compile flags after fix:
CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
-fstack-clash-protection \
-fno-omit-frame-pointer"