@FredBezies: There has been some activity in the comments on the bug report that you filed upstream. From the information posted there about -pie being added to the LDFLAGS from the configure script, they were able to get it to build.
I was also able to replicate this and get 5.1.0.r1440 to compile by interrupting makepkg after it cloned source to srcdir and modifying src/qemu/configure.sh such that it does not add -pie to LDFLAGS. Then run 'makepkg -e' which prevents makepkg from clobbering your changes to configure.sh.
Just manually comment the following lines starting with LDFLAGS and CFLAGS in the following conditional block:
elif compile_prog "-Werror -fPIE -DPIE" "-pie"; then
CFLAGS="-fPIE -DPIE $CFLAGS"
LDFLAGS="-pie $LDFLAGS"
Alternatively a sed one liner could be added to the prepare() in the PKGBUILD to automate the process.
Edit: This is a hack for now and may have unintended consequences. I needed my VM up and running and didn't have time to check too deeply into the ramifications of removing this compile option.
Pinned Comments
FredBezies commented on 2022-04-22 08:38 (UTC) (edited on 2022-11-09 10:49 (UTC) by FredBezies)
Note: I won't use the ultimate splitting for Qemu (introduced by Qemu 7.0) until I get some help to migrate to the splitted PKGBUILD.
Note 2 : qemu-git packages are conflicting with qemu-desktop meta package. This package will need a lot of work and time to be corrected. Sorry.