Created attachment 535040 [details] nfs-utils-2.3.2-sprintf-buffer-size-gcc7.patch two essentially identical failures: nfsd.c: In function ‘main’: nfsd.c:102:21: error: ‘%d’ directive writing between 1 and 11 bytes into a region of size 6 [-Werror=format-overflow=] sprintf(tag, "vers%d", i); ^~ nfsd.c:102:3: note: ‘sprintf’ output between 6 and 16 bytes into a destination of size 10 sprintf(tag, "vers%d", i); and mountd.c: In function ‘main’: mountd.c:706:21: error: ‘%d’ directive writing between 1 and 11 bytes into a region of size 6 [-Werror=format-overflow=] sprintf(tag, "vers%d", vers); ^~ mountd.c:706:3: note: ‘sprintf’ output between 6 and 16 bytes into a destination of size 10 sprintf(tag, "vers%d", vers); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In both cases gcc was smart enough to figure out that the buffer couldn't accommodate the range of possible integer values but not smart enough to figure out that the integer is always one digit, womp womp. Solution is already upstream: http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commitdiff_plain;h=c3b776b8f198427bebc2e1b2eeec70b91894ccad;hp=fd5ccdc449a0ef79498191aecb3e44120e813618 and we should backport as this causes ebuild compile failure.