I was building linux-dfl kernel 5.15-lts on Ubuntu 22.04. This solution worked for me to go past similar errors while using "sudo make -j $(nproc) bindeb-pkg". Make sure you do both the suggested changes.