Rebuild error log
The 0001-sane-check.patch and 0003-gcc14.patch patches were based on a patch by @Celeste, split up for clarity and with one more hunk added at the end to resolve another instance of -Wimplicit-function-declaration error.
0001-sane-check.patch
0003-gcc14.patch
-Wimplicit-function-declaration