From nobody Mon Feb 27 21:23:40 2023 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 4PQYQl2RbGz3t9S4 for ; Mon, 27 Feb 2023 21:23:59 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.ipv6.vt.edu [IPv6:2001:468:c80:a103:2:5000:5555:5555]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PQYQl0bY9z3GZY; Mon, 27 Feb 2023 21:23:59 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2001:470:e15b:23::23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id 889F845B7C; Mon, 27 Feb 2023 16:23:51 -0500 (EST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C From: Paul Mather In-Reply-To: Date: Mon, 27 Feb 2023 16:23:40 -0500 Cc: FreeBSD User , FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <720721A7-B1ED-405B-98EB-04A3AFCA7FD5@gromit.dlib.vt.edu> References: <20230227192011.08f7aa8e@thor.intern.walstatt.dynvpn.de> To: Dimitry Andric X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4PQYQl0bY9z3GZY X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1312, ipnet:2001:468:c80::/48, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Feb 27, 2023, at 2:57 PM, Dimitry Andric wrote: > On 27 Feb 2023, at 19:19, FreeBSD User wrote: >>=20 >> Running recent CURRENT as host (FreeBSD 14.0-CURRENT #23 = main-n261147-b8bb73ab724b: Sun Feb 26 >> 17:39:38 CET 2023 amd64), and nanoBSD (recent 13-STABLE, git = stable/13). >>=20 >> Building an appliance based on 13-STABLE sources, a customized kernel = via nanoBSD, since a >> couple of weeks for now building the sources fails in kernel sources: >>=20 >> [...] >> --- modules-all --- >> --- all_subdir_an --- >> = /pool/home/ohartmann/Projects/router/router/apu2c4/src/sys/dev/an/if_an_pc= i.c:143:1: error: a >> function definition without a prototype is deprecated in all versions = of C and is not >> supported in C2x [-Werror,-Wdeprecated-non-prototype] >> [..] >>=20 >> Disabling all wireless options in the kernel config starts dropping = errors of a similar kind >> on other kernel places. >>=20 >> Compiling on FBSD 13-STABLE seems to be all right. >>=20 >> Can this be fixed. please? What causes the error and how can this be = resolved if the subtree >> of FreeBSD's sources is a submodule? >=20 > Not sure what you mean with "subtree is a submodule", but this is = likely > caused by skipping the cross-tools stage somehow. Do you have any > specific make.conf or src.conf settings for that? I got bitten by this recently. In my case, it was Poudriere (running on = 14-CURRENT) trying to build a 13-STABLE jail. The Poudriere jail's = "src.conf" was taken from the actual system for which Poudriere builds = packages. It had (amongst others) these two options: WITH_SYSTEM_COMPILER=3Dyes WITHOUT_CROSS_COMPILER=3Dyes When I commented these out in the jail-src.conf Poudriere file the jail = built correctly. I figure the system built fine because its system compiler is LLVM 14.x. = The Poudriere system compiler is LLVM 15.x, which has the breaking = change wrt. old-style prototypes. Cheers, Paul.=