Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2025 14:18:44 -0500
From:      Ian FREISLICH <ianfreislich@gmail.com>
To:        FreeBSD Current <current@freebsd.org>
Subject:   nvme.c:2012:2: error: call to undeclared function 'memmove'
Message-ID:  <814ce2bc-2a95-444b-9ab7-7e680a024c68@gmail.com>

next in thread | raw e-mail | index | archive | help

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.

Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?814ce2bc-2a95-444b-9ab7-7e680a024c68>