Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2023 11:25:04 +0000
From:      Gary Jennejohn <garyj@gmx.de>
To:        Gordon Bergling <gbe@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Build breakage with WITH_BEARSSL=1
Message-ID:  <20230212122504.1ea67704@ernst.home>
In-Reply-To: <Y%2BjFd1MGxFAth1xL@lion.ttyv0.de>
References:  <Y%2BjFd1MGxFAth1xL@lion.ttyv0.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 12 Feb 2023 11:54:47 +0100
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*.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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230212122504.1ea67704>