From nobody Sun Feb 12 11:25:04 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 4PF4rt450hz3pB00 for ; Sun, 12 Feb 2023 11:25:18 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PF4rs6p9vz3wvQ; Sun, 12 Feb 2023 11:25:17 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1676201116; bh=olviONB04YDSlYRV376opnhPxC4SwJ8R0ZB2qgU9dg4=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References: Reply-To; b=QOmWokt6QQfzXSsVs1M9f15HeRnshwceOh1yV8tDORQegf8MGz7Dk6rpjIjq5+VW2 owTMcw+c/7nvZTDci0bD1OA3t/Yj7TsQor3afk6Io9x/mJR7T8YtnaJFVkivY+6vdH 2AejLJfkTf+82k4VUwugtOlCtPNvF1Uw2iXxV3xfGLfs/FR6Jb4L0TGV22K0GxeoGD 4Gdr/pDNIADSqvP5ZCrcL+wfPi0yUu6HN48+7mo7ZN8M6kQjSIVAGg8wBM0zEnpMs5 EzMcXHMcxPR4s4cSUstTEW1wzAIVhat1BZ8nzwk/nGWzcs0wOM4FKNSSBHcOVpGeep GkYjHOw06X0HA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([217.226.49.211]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MVeMA-1p1pbk1gJg-00RVB0; Sun, 12 Feb 2023 12:25:16 +0100 Date: Sun, 12 Feb 2023 11:25:04 +0000 From: Gary Jennejohn To: Gordon Bergling Cc: freebsd-current@freebsd.org Subject: Re: Build breakage with WITH_BEARSSL=1 Message-ID: <20230212122504.1ea67704@ernst.home> In-Reply-To: References: Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:SBpMdjRiJMMah3BLotQCRajOr6zbo2XzcLia6e0vz5ZvB4TfzVh r8SFLnjSZj7MSKnff1LHlsJDsBwii6qScfYjLJzd9BgGzejKacXKtC+kcNJ6itF4wuf9QBS jTQ3PkclzzH9CZqL5yZEotKw9wP9XM4UBwqBwtxHLVaf1ih2jWWAhVNHmSwx15PZt9KEj6+ 6eBa9GY2uSA5h/nCXDVUA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Y7eV1epIKZg=;/Eh8Ls0ggl4J9n1IGxKnq0qAtIc DtcaNaJHm5BzvuukR/lwHwoAlmXCIM7iFRVs+Mdfq8Cfmg0yPeDHFcehWf6vyz11wn87KyTVc P39YbmLhi+M5hkOdJh3O2sCl2UhmWD7B3LCIDv3p01aDtNAogMj9nRZmSOwyu2WlzoyVlgnW8 o3GsntKYw8/0jyVi0Kohbv3CRVu+70bAPoC6U1oMLBzc0BeqhZbLcnIz9PjzFT/VqPY9j5J7B YPkJHiyrCRXVUB9aBsXDjxiB11m09GFgRIDtGJIMUOxp3zI/4oQtCVYVngEphwK7KT/0vGni2 UNBlEensS0xQ9zygPcajYFtQNmv3s96nHDZmZ+DRu4R5ZdXFB0WJ0UTty9aqitYyXaivewN0f Jm5LM0e9R+Ma11Lik/PWr2Pgt31+VQQyUmv0lRTndtFWzjnfIdUlmQuoePF5FgXujsam9V24R rhTy8Spiv1Z+1oZG9Dd3BqwwoatoDJDtccprtDCbDuAH4ov2z5NSSPBXJQ3DlLs6OQW7I4K/p ShcbRvY2Tp4B08XF+yPYlD9TTyiNrT9JafabS4j/xMDfxL4Fc1Kd2K9ylOQm4FwEFn2WKdMNJ 8rPiHo0eviL0F2KrQIJHHol1uPe3GTl1zDs7CaE4tX3LbiIW783GZUfO8U4QNhIruonXCJi1O v70cY/nBpnarw5mzNyFUhkJOfylsN8ey7CTQZarhrEXAsntJ2M6NZ7LSeK3IIr1XtUK4VJOXA zpVFEYkQQ839CvzMubmNSGK60GDfuOBZ7D/LwZOmko1sn0ZgxaQLjyB/nq7vkQXtMD4u2sVqX ayKOFX9/ATW2sUsdVofEzkG1yIaqN9+scu3mmsC/u2x805NTSiFYidy0wbyfiDA59r8TXLSUX p+KODCTuWjxfX5xSbugOX802ouE1iGHSf0UEBKma7XdCfCjqnnmLGu3wOJXzCZE3dG2Wi5dt3 sJXMqiRe8Aa71YODOyIF2wc+6Ho= X-Rspamd-Queue-Id: 4PF4rs6p9vz3wvQ X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Sun, 12 Feb 2023 11:54:47 +0100 Gordon Bergling wrote: > Hi, > > I am currently seeing a build breakage when building -CURRENT with WITH_= BEARSSL=3D1. > > The error is the following > > make[5]: "/boiler/nfs/src/lib/libsecureboot/local.trust.mk" line 109: = warning: "cd /boiler/nfs/src/lib/libsecureboot && 'ls' -1 *.pem t*.asc 2= > /dev/null" returned non-zero status > /boiler/nfs/src/contrib/bearssl/src/rsa/rsa_i62_keygen.c:43:22: error:= a function declaration without a prototype is deprecat ed in all version= s of C [-Werror,-Wstrict-prototypes] > br_rsa_i62_keygen_get() > ^ > void > 1 error generated. > --- rsa_i62_keygen.pico --- > > > When disabling BEARSSL in the src.conf the build succeeds as usual. > > Has anyone also seen this build error. Sources are very recent and the > src.conf is the following: > > WITH_EXTRA_TCP_STACKS=3D1 > #WITH_BEARSSL=3D1 > WITH_PIE=3D1 > WITH_RETPOLINE=3D1 > WITH_INIT_ALL_ZERO=3D1 > WITH_OPENSSL_KTLS=3D1 > WITHOUT_CLEAN=3D1 > > Any help is very appreciated. > The current clang wants to see br_rsa_i62_keygen_get(void), that's why void was emitted. The other routine in this file has the same error. Could be that this code has this problem in many places. There might a flag which one could pass to clang so that it would not choke on such an error, but I don't know clang well enough to figure that out. Maybe someone in the know could supply that info. =2D- Gary Jennejohn