Kicad is a great PCB builder, but a pig to compile.
If you use the Search button at the top of the page, you'll find there have been a couple of threads recently on compiling Kicad. Beware of Necro threads!! Some kind soul (@Dunc, IIRC) even built them and put the packages on his github repo for me. If you had done a thread search, you should have spotted that. The 5 minutes it takes to search always beats the day you wait for an answer, before someone like myself comes along and abuses you for not doing the obvious
https://www.linuxquestions.org/quest...-a-4175737151/
See Post #12 if you want his direct link.