Ancient post, but top google result for this issue. Adding "-lm" to the TICALCS_LIBS line in /tilem-2.0/gui/Makefile worked for me on Debian 10.