From nobody Thu Nov 20 05:08:24 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dBmb401glz6GxvD for ; Thu, 20 Nov 2025 05:08:32 +0000 (UTC) (envelope-from minsoochoo0122@proton.me) Received: from mail-10696.protonmail.ch (mail-10696.protonmail.ch [79.135.106.96]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dBmb33wfDz485v for ; Thu, 20 Nov 2025 05:08:31 +0000 (UTC) (envelope-from minsoochoo0122@proton.me) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1763615307; x=1763874507; bh=WyEGCDs5s48Ler4JU3AQ1xTsr4Tmzwfjf/gpYR+xEGw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=SdtzePjdUVc7dlyYRZ2Zbev+Ua0yjhYSycgm+QhkGfnU7iXi5IKSY8YMjuJtRJQ/O 0zCrwTQ9QIfAFj5DWClZwfqWcnywpAa+nP2Wc/RsS+O+wUrrYqnmh4wgQiCamFSt/0 a5qLzcK0grr/vC5JOjNqnnZGQ+EkPoSHvA/1SRycLWDKU0a4rin03GFCZoX060Xj1D TSE8serMBbvqeJcAdWdylUxvhQV9hplS891dDMVqWa3qqg9jlwln+qk28fGnt2PRSd 3fr+NPhqppeAnDlkNtfcDOdtm64uf7u6OQ3AS/t4dVThXRJOddgdhlVUdraWQ3fK6f ONOfw3moORy/A== Date: Thu, 20 Nov 2025 05:08:24 +0000 To: cyric@mm.st From: Minsoo Choo Cc: freebsd-current@freebsd.org Subject: Re: nvme.c:2012:2: error: call to undeclared function 'memmove' Message-ID: In-Reply-To: References: <814ce2bc-2a95-444b-9ab7-7e680a024c68@gmail.com> Feedback-ID: 45891198:user:proton X-Pm-Message-ID: 1f59558bdfd98f63e6dc6929898969102d217e36 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:79.135.106.0/24, country:CH] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dBmb33wfDz485v On Wednesday, November 19th, 2025 at 11:52 PM, cyric@mm.st wr= ote: > Ian FREISLICH wrote: >=20 > > My kernel build started failing recently with the following error. I us= e > > a custom kernel config but looking at NOTES, it's not clear that I've > > missed an option that would make it compile. > >=20 > > 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 > >=20 > > I've also tried compiling after blowing away usr/obj. >=20 >=20 > It seems to be the following commit: >=20 > https://cgit.freebsd.org/src/commit/?id=3D8d2a50bb38051fefeb1427fdbfd249f= 2829310d8 >=20 > And it was reported: >=20 > https://lists.freebsd.org/archives/dev-commits-src-main/2025-November/037= 599.html Thanks for figuring this out. I will see if adding #include s= olves this issue and try to create pr by tomorrow.