Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2023 13:28:12 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        =?UTF-8?Q?Mina_Gali=C4=87?= <freebsd@igalic.co>
Cc:        Gordon Bergling <gbe@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Build breakage with WITH_BEARSSL=1
Message-ID:  <CANCZdfpc0-Xv3fkyr9=UMor0biA455iVjP3JNk_xY90njRz2bg@mail.gmail.com>
In-Reply-To: <JU3P40faZ6xRmgvxEZh_bObHuWCBbtEfOudq3e3PVTBmEivRY9agYNgDwdItpeeYxUl0NRtG2tPg7-cpN-1-VHjEmuL32hwlRC3lOwz7e-Y=@igalic.co>
References:  <Y%2BjFd1MGxFAth1xL@lion.ttyv0.de> <CANCZdfp_CD81r1E0S67Y6NA82xe3OcWazDm308WEn7_MkUzNDA@mail.gmail.com> <CANCZdfpMa1HzBBYrZLQBSn-Z11gE5=Gn5KTm%2B2tCzgJ3=S6kQw@mail.gmail.com> <JU3P40faZ6xRmgvxEZh_bObHuWCBbtEfOudq3e3PVTBmEivRY9agYNgDwdItpeeYxUl0NRtG2tPg7-cpN-1-VHjEmuL32hwlRC3lOwz7e-Y=@igalic.co>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000fc378b05f4c2eb78
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Feb 15, 2023, 1:09 PM Mina Gali=C4=87 <freebsd@igalic.co> wrote:

> Would be nice if we could get upstream to actually fix this, but i don't
> even know how to submit bugs there=E2=80=A6
>

Agreed. I didn't recall off of the top of my head, so I did the quick
bandaid.

Warner


Mina Gali=C4=87
>
> Try PkgBase: https://alpha.pkgbase.live/
>
>
>
>
>
>
> -------- Original Message --------
> On 15 Feb 2023, 17:07, Warner Losh < imp@bsdimp.com> wrote:
>
>
>
>
> On Sun, Feb 12, 2023, 3:18 PM Warner Losh <imp@bsdimp.com> wrote:
>
>>
>>
>> On Sun, Feb 12, 2023 at 3:54 AM Gordon Bergling <gbe@freebsd.org> 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*.as=
c 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 versi=
ons
>>> 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.
>>>
>>>
>> What does the following do for you? It's a cut and pasted patch, but it
>> should be clear enough what to do if the mailer mangles it.
>>
>> diff --git a/lib/libbearssl/Makefile.inc b/lib/libbearssl/Makefile.inc
>> index dd0e242c8ef0..2af4864d8441 100644
>> --- a/lib/libbearssl/Makefile.inc
>> +++ b/lib/libbearssl/Makefile.inc
>> @@ -4,4 +4,4 @@ BEARSSL?=3D ${SRCTOP}/contrib/bearssl
>>  BEARSSL_SRC=3D ${BEARSSL}/src
>>
>>  CFLAGS+=3D -I${BEARSSL}/inc
>> -
>> +CFLAGS+=3D ${NO_WDEPRECATED_NON_PROTOTYPE}
>>
>
> I went ahead and committed this. Please let me know if the problem
> persists.
>
> Warner
>
>>

--000000000000fc378b05f4c2eb78
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Wed, Feb 15, 2023, 1:09 PM Mina Gali=C4=87 &lt;<a h=
ref=3D"mailto:freebsd@igalic.co">freebsd@igalic.co</a>&gt; wrote:<br></div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Would be nice if we could get upstream to ac=
tually fix this, but i don&#39;t even know how to submit bugs there=E2=80=
=A6<br></blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"aut=
o">Agreed. I didn&#39;t recall off of the top of my head, so I did the quic=
k bandaid.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">Warner=
=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div di=
r=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>=
Mina Gali=C4=87</span><div><br></div><div>Try PkgBase: <a href=3D"https://a=
lpha.pkgbase.live/" title=3D"https://alpha.pkgbase.live/" target=3D"_blank"=
 rel=3D"noreferrer">https://alpha.pkgbase.live/</a></div><span></span><br><=
br><br><br><br><br>-------- Original Message --------<br>On 15 Feb 2023, 17=
:07, Warner Losh &lt; <a href=3D"mailto:imp@bsdimp.com" target=3D"_blank" r=
el=3D"noreferrer">imp@bsdimp.com</a>&gt; wrote:<blockquote><br><div dir=3D"=
auto"><br><br><div class=3D"gmail_quote" dir=3D"auto"><div dir=3D"ltr" clas=
s=3D"gmail_attr">On Sun, Feb 12, 2023, 3:18 PM Warner Losh &lt;<a href=3D"m=
ailto:imp@bsdimp.com" target=3D"_blank" rel=3D"noreferrer">imp@bsdimp.com</=
a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div=
 dir=3D"ltr"><br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas=
s=3D"gmail_attr">On Sun, Feb 12, 2023 at 3:54 AM Gordon Bergling &lt;<a hre=
f=3D"mailto:gbe@freebsd.org" rel=3D"noreferrer noreferrer" target=3D"_blank=
">gbe@freebsd.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote"=
 style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p=
adding-left:1ex">Hi,<br>
<br>
I am currently seeing a build breakage when building -CURRENT with WITH_BEA=
RSSL=3D1.<br>
<br>
The error is the following<br>
<br>
=C2=A0 make[5]: &quot;/boiler/nfs/src/lib/libsecureboot/<a href=3D"http://l=
ocal.trust.mk" rel=3D"noreferrer noreferrer noreferrer" target=3D"_blank">l=
ocal.trust.mk</a>&quot; line 109: warning: &quot;cd /boiler/nfs/src/lib/lib=
secureboot &amp;&amp; &#39;ls&#39;=C2=A0 =C2=A0-1 *.pem t*.asc 2&gt; /dev/n=
ull&quot; returned non-zero status<br>
=C2=A0 /boiler/nfs/src/contrib/bearssl/src/rsa/rsa_i62_keygen.c:43:22: erro=
r: a function declaration without a prototype is deprecat=C2=A0 ed in all v=
ersions of C [-Werror,-Wstrict-prototypes]<br>
=C2=A0 br_rsa_i62_keygen_get()<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0^<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 void<br>
=C2=A0 1 error generated.<br>
=C2=A0 --- rsa_i62_keygen.pico ---<br>
<br>
<br>
When disabling BEARSSL in the src.conf the build succeeds as usual.<br>
<br>
Has anyone also seen this build error. Sources are very recent and the<br>
src.conf is the following:<br>
<br>
WITH_EXTRA_TCP_STACKS=3D1<br>
#WITH_BEARSSL=3D1<br>
WITH_PIE=3D1<br>
WITH_RETPOLINE=3D1<br>
WITH_INIT_ALL_ZERO=3D1<br>
WITH_OPENSSL_KTLS=3D1<br>
WITHOUT_CLEAN=3D1<br>
<br>
Any help is very appreciated.<br>
<br></blockquote><div><br></div><div>What does the following do for you? It=
&#39;s a cut and pasted patch, but it should be clear enough what to do if =
the mailer mangles it.</div><div><br></div><div>diff --git a/lib/libbearssl=
/Makefile.inc b/lib/libbearssl/Makefile.inc<br>index dd0e242c8ef0..2af4864d=
8441 100644<br>--- a/lib/libbearssl/Makefile.inc<br>+++ b/lib/libbearssl/Ma=
kefile.inc<br>@@ -4,4 +4,4 @@ BEARSSL?=3D ${SRCTOP}/contrib/bearssl<br>=C2=
=A0BEARSSL_SRC=3D ${BEARSSL}/src<br><br>=C2=A0CFLAGS+=3D -I${BEARSSL}/inc<b=
r>-<br>+CFLAGS+=3D ${NO_WDEPRECATED_NON_PROTOTYPE}</div></div></div></block=
quote></div><div dir=3D"auto"><br></div><div dir=3D"auto">I went ahead and =
committed this. Please let me know if the problem persists.</div><div dir=
=3D"auto"><br></div><div dir=3D"auto">Warner</div><div class=3D"gmail_quote=
" dir=3D"auto"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div>
</blockquote></blockquote></div></div></div>

--000000000000fc378b05f4c2eb78--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpc0-Xv3fkyr9=UMor0biA455iVjP3JNk_xY90njRz2bg>