New comment by ischwarze on void-packages repository https://github.com/void-linux/void-packages/issues/18816#issuecomment-582428851 Comment: I think adding that printf/env/make line to automatically detect the default compiler that make(1) uses on the system was a bad idea, i tried to be too clever when writing that. It's not the first time that line is causing portability issues. I think for the next mandoc release, i'll simply set CC=cc by default - after all, POSIX specifies cc(1) - and ask people who want to use a particular compiler to set CC in configure.local. Besides, most ANSI C compilers ought to work anyway, so finding the best one shouldn't even be all that important.