The included Makefile for unix has some problems: It adds -lm to the CFLAGS. -lm is a linker option and as such has no place in CFLAGS (which are used for compiler flags). Due to this, -lm appears on the command line way before any object files. This leads to it being discarded when the linker flag --as-needed is set. An example failure can be observed under Ubuntu: /«PKGBUILDDIR»/grammyVM.c:1498: undefined reference to `log10'