The C output file gf_arith.c is named the same as the source file gf_arith.c
Consequently as soon as you run make test, the source file is overwritten and you can no-longer recompile.
Perhaps rename one of the files, or modify rstk/make test to write to a different directory.