Error when building Python 2 binaries from source

I used yay and I also cloned it from aur.archlinux.org and launched makepkg to build it.
I got the exact same error for both methods (because basically yay clones the same package from the same source and build it)