No idea. There must be a problem at configure script and sort of. I will try it myself later and update my post.
Update: I run it like this.
$ make -j$(nproc) PREFIX=$PWD/install CLANG=0 CCACHE=1 NATIVE=linux64 RELEASE=1 TILES=1
CCACHE_SLOPPINESS=pch_defines,time_macros,include_file_ctime,include_file_mtime ccache g++ -Os -Wodr -Werror -Wall -Wextra -Wformat-signedness -Wlogical-op -Wmissing-declarations -Wmissing-noreturn -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wpedantic -Wsuggest-override -Wunused-macros -Wzero-as-null-pointer-constant -Wno-unknown-warning-option -Wno-dangling-reference -Wno-c++20-compat -Wredundant-decls -fsigned-char -std=c++17 -m64 -I/usr/include/SDL2 -I/usr/include/libpng16 -DHWY_SHARED_DEFINE -I/usr/include/webp -D_REENTRANT -MMD -MP -DCATA_IN_TOOL -Itools/format -Isrc -isystem src/third-party \
tools/format/format.cpp tools/format/format_main.cpp src/json.cpp -o tools/format/json_formatter.cgi
Cannot run an astyle check, your system either does not have astyle, or it is too old.
grep: src/PREFIX.h: Datei oder Verzeichnis nicht gefunden
// NOLINT(cata-header-guard)
#define PREFIX "/storage/Projekte/github.com/Cataclysm-DDA/install"
CCACHE_SLOPPINESS=pch_defines,time_macros,include_file_ctime,include_file_mtime ccache g++ -Isrc -isystem src/third-party -DRELEASE -DGIT_VERSION -DTILES -DBACKTRACE -DLOCALIZE -DPREFIX="/storage/Projekte/github.com/Cataclysm-DDA/install" -DDATA_DIR_PREFIX -Os -Wodr -Werror -Wall -Wextra -Wformat-signedness -Wlogical-op -Wmissing-declarations -Wmissing-noreturn -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wpedantic -Wsuggest-override -Wunused-macros -Wzero-as-null-pointer-constant -Wno-unknown-warning-option -Wno-dangling-reference -Wno-c++20-compat -Wredundant-decls -fsigned-char -std=c++17 -m64 -I/usr/include/SDL2 -I/usr/include/libpng16 -DHWY_SHARED_DEFINE -I/usr/include/webp -D_REENTRANT -MMD -MP -Wno-error -c pch/main-pch.hpp -o pch/main-pch.hpp.gch
And as I see, it found it, see -I/usr/include/SDL2. Still compiling anyway.
Update2: Compilation successful. No errors.