From nobody Wed Nov 19 20:42:41 2025 X-Original-To: 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 4dBYMW4N2mz6JFW5 for ; Wed, 19 Nov 2025 20:42:47 +0000 (UTC) (envelope-from minsoochoo0122@proton.me) Received: from mail-24427.protonmail.ch (mail-24427.protonmail.ch [109.224.244.27]) (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 4dBYMW22pmz3xM4 for ; Wed, 19 Nov 2025 20:42:47 +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=1763584965; x=1763844165; bh=3cTV0W52d+GKn9HZgnzQkRH9eSo58vB3RxixkAlmoNs=; 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=fjdIdQccKCapQs4MQrV5SNOSG1Zfxmxvo1FDHScztGtPR4dkhpOrwH9jKGkceG9vS sgYhEzC2W0iSg3CfkdcYBolNyiFxLEj4Ez/DKotbWBj2rMJameU7P2RIuE+lQA7WQf lzYXoKCOCL3B8HAGk6g/Y/S5M0i+i2+ZBHqgPtL78+hnc+dlZReRDN7BXdHnC11MP0 jQcbs5kz8Tey3SAgaYfeMZWj6v3k6dZSUNhqoq+yucHhjPg2lKyJ3yGNh//m9dfjh3 YSI5fF1+JwXw23Rfxc3FLczTTmj9mRRyImTfKSqGdQKr3wq1XvfuLP3k9ypid04b6z scoAdZW57yQrA== Date: Wed, 19 Nov 2025 20:42:41 +0000 To: Ian FREISLICH From: Minsoo Choo Cc: FreeBSD Current Subject: Re: nvme.c:2012:2: error: call to undeclared function 'memmove' Message-ID: In-Reply-To: <60449f55-58e7-4f8b-aa0e-3f288dab5146@gmail.com> References: <814ce2bc-2a95-444b-9ab7-7e680a024c68@gmail.com> <60449f55-58e7-4f8b-aa0e-3f288dab5146@gmail.com> Feedback-ID: 45891198:user:proton X-Pm-Message-ID: 06a6a2254dd3654147f0f8196a97050866887504 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:109.224.244.0/24, country:CH] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dBYMW22pmz3xM4 On Wednesday, November 19th, 2025 at 2:51 PM, Ian FREISLICH wrote: > On 11/19/25 14:24, Minsoo Choo wrote: >=20 > > On Wednesday, November 19th, 2025 at 2:19 PM, Ian FREISLICH ianfreislic= h@gmail.com wrote: > >=20 > > > 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. > > >=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 functi= on > > > 'memmove'; ISO C99 and later do not support implicit function > > > declarations [-Werror,-Wimplicit-function-declaration] > > > 2012 | memmove(sn, cdata->sn, NVME_SERIAL_NUMBER_LENGTH); > > >=20 > > > | ^ > > > 1 error generated. > > > *** Error code 1 > > >=20 > > > I've also tried compiling after blowing away usr/obj. > > >=20 > > > Ian > >=20 > > memmove is declared in systm.h, but I don't see include statement for s= ystm.h in nvme.h. Could you try including in sys/dev/nvme/nvm= e.h and build again? >=20 >=20 > It builds with that, but coincidentally GENERIC builds without that chang= e. >=20 > Ian Could you send your kernel config? Maybe sys/systm.h is included under GENE= RIC but not under some configs.