From nobody Mon Feb 27 22:46:21 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 4PQbG76xYcz3tGV4 for ; Mon, 27 Feb 2023 22:46:39 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PQbG76RJtz3pcF; Mon, 27 Feb 2023 22:46:39 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677537999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iD6lSdPB9lTTjvFpcK5rgI3xmeJ1yS+OS4LjfDD4lJ4=; b=s3Cyz7l11rKRW2o56dOHYCcItynJUPa1YKFe80w2jNBwvvSo857tnRknhfjdpCu4dk+Lit Iocw4ozLRdRgaUzHbyMMSeIfsw+mAWTRrWoZaCOgwKXvJvbH8+ozwLMgiTm22WRptTHvtL lLb6/ONEmQwBUhJoFiTprj1mYGSz3WICuFMpHneIfl3UoIItbmxfQBUyF0meKo4oUHpMWT Aws7aVfHFPZ/5cZ+QIPbiqHIP77cNECYxR1IbVau83Qg/S9SLVRX8kkYoUkGQAyHc3RloE bVgNrbdG1r/o3aA/D+z+zm6ILk3B6GmjnnFqHNDBEt/uInSZkwf+RM2MmfazEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677537999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iD6lSdPB9lTTjvFpcK5rgI3xmeJ1yS+OS4LjfDD4lJ4=; b=K4Uzdn8CFcnTz70LmH5GHkcqWW3SAibVdVTYYdSyWTaK56VLdjQqSbI0LWvH9LSuyidgRd QgfVefTghQOa61+63rvbuLwU/l0CCHM2BRHWnmqRS1yA0xANtoDFvQIA+wpJZRfXocLpFj Zcz8RRpjjYGL2pghOa+Rk53Ua49EMJQ/9TxlI8VOL82ahSfHiUCPDT0qwdhLiOuMsOiuna FHM90qSkpOu8QP9kfr9DTM42LNETEXlMx8TAF8efcvpwtxsWXQqZ+5usIUoyadxGTfdnmV Yx3d8gOmDWD9LrHF8NI39uJ2fF0uUaFsCASAApk+Bhm4dmVdxEaKVs0yrZ1iSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677537999; a=rsa-sha256; cv=none; b=CS/bIMY+I63kZnyLVglrqhVT89Eu4E7NOOIQvdV4b2k/7Rb479x4Xio6NWnxXNVjvpUseU BdNY4c5uQlwrkm/64U4uf3a1ZEe/qaIJ4RFB/cq2gxk3qGwELWGIQi7IGZEetvkwPA6AP0 ZkP7lU0Ulv1D+IuKZShQZ/3OZCjGFx+n8zMeAt2jFCneXE/Ql9mCCvsJOF8uBC6guf+wjS WOzSrntFccJfd43U6vMow6La0pT2QU2xqnh1GlgHqRL5UBVP1j8vJjggvn1nGQ4lNIph/d isk6bwlXN58AOetH4ofgm7X0t4rc2mGvbb8m2qAxzm6zKxgygMDaUYy70Hc1ig== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PQbG74h6rzGxW; Mon, 27 Feb 2023 22:46:39 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 4921852B73; Mon, 27 Feb 2023 23:46:38 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_C4B76800-750C-4437-B591-C769C537FFF4"; protocol="application/pgp-signature"; micalg=pgp-sha1 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: Dimitry Andric In-Reply-To: <720721A7-B1ED-405B-98EB-04A3AFCA7FD5@gromit.dlib.vt.edu> Date: Mon, 27 Feb 2023 23:46:21 +0100 Cc: FreeBSD User , FreeBSD CURRENT Message-Id: <1F3F20A1-C2BC-4A33-ABFD-D20F4ADB67E8@FreeBSD.org> References: <20230227192011.08f7aa8e@thor.intern.walstatt.dynvpn.de> <720721A7-B1ED-405B-98EB-04A3AFCA7FD5@gromit.dlib.vt.edu> To: Paul Mather X-Mailer: Apple Mail (2.3731.400.51.1.1) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_C4B76800-750C-4437-B591-C769C537FFF4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 27 Feb 2023, at 22:23, Paul Mather wrote: >=20 > On Feb 27, 2023, at 2:57 PM, Dimitry Andric wrote: >=20 >> 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? >=20 >=20 > 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: >=20 > WITH_SYSTEM_COMPILER=3Dyes > WITHOUT_CROSS_COMPILER=3Dyes >=20 >=20 > When I commented these out in the jail-src.conf Poudriere file the = jail built correctly. >=20 > 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. Yes, that is what I suspected in Oliver's case: if you skip the cross-tools stage in a buildworld of stable/13 on a 14-CURRENT host, by setting WITH_SYSTEM_COMPILER, you are bound to run into compilation errors that have been fixed in 14-CURRENT, but not yet MFC'd. The safest solution is to let cross-tools do its thing, which will check the host compiler, and automatically build an appropriate version of the compiler and linker for the stable branch, if required. That said, I will be merging clang 15.0.7 and a bunch of other things that should solve all these errors to stable/13 at some point, but not before the 13.2-RELEASE is out. This is to avoid making life more difficult for our release engineering team. -Dimitry --Apple-Mail=_C4B76800-750C-4437-B591-C769C537FFF4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCY/0yvQAKCRCwXqMKLiCW o2u/AJ4ku5kfQDoBxldq8vtZ0JPIewxJKwCfaHkCzxLC53ZHTXfB6fI1CwFOyKg= =BqFr -----END PGP SIGNATURE----- --Apple-Mail=_C4B76800-750C-4437-B591-C769C537FFF4--