Re: nvme.c:2012:2: error: call to undeclared function 'memmove'
Date: Thu, 20 Nov 2025 04:51:39 UTC
Ian FREISLICH wrote: > My kernel build started failing recently with the following error. I use > a custom kernel config but looking at NOTES, it's not clear that I've > missed an option that would make it compile. > > In file included from /usr/src/sys/dev/nvme/nvme_util.c:34: > /usr/src/sys/dev/nvme/nvme.h:2012:2: error: call to undeclared function > 'memmove'; ISO C99 and later do not support implicit function > declarations [-Werror,-Wimplicit-function-declaration] > 2012 | memmove(sn, cdata->sn, NVME_SERIAL_NUMBER_LENGTH); > | ^ > 1 error generated. > *** Error code 1 > > I've also tried compiling after blowing away usr/obj. It seems to be the following commit: https://cgit.freebsd.org/src/commit/?id=8d2a50bb38051fefeb1427fdbfd249f2829310d8 And it was reported: https://lists.freebsd.org/archives/dev-commits-src-main/2025-November/037599.html