I added null and 1 in the matrix, and now it builds, but it gives me a segmentation fault with either option. I think I'm missing something. Is there a chance I could chat with you through discord or something like that? Do you have time?
You need to allocate the matrix when you register the algo, take a look at lyra2rev2-gate.c.
You're also missing some non-default gate functions. Take a look at the allium hooks in cpu-miner.c
Or do you just want me to do it?