Re: gnutls 3.8.8 error, compile-time-constant fails and skips many other packages from being built

From: Herbert J. Skuhra <herbert_at_gojira.at>
Date: Tue, 17 Dec 2024 07:25:15 UTC
On Tue, 17 Dec 2024 05:02:52 +0100, Fred Finster wrote:
> 
> Merry Christmas 2024 fellow FreeBSD ARM users.
> I wave my hand, that I have encountered an error that Marius Schamschula details below.
> 
> A compile-time constant is computed at the time the code is
> compiled, while a run-time constant can only be computed while the
> application is running. A compile-time constant will have the same
> value each time an application runs, while a run-time constant may
> change each time.Sep 15, 2021
> 
> ~~~~~~~~~~~~~~~~~~~~~
> https://github.com/llvm/llvm-project
> https://lists.gnutls.org/pipermail/gnutls-help/2024-November/thread.html#4866
> Problem, how to compile file groups.c as a part of gnutls 3.8.8 and overcome
> this compile-time constant error:
> groups.c:93:2: error: initializer element is not a compile-time constant
>         group_x25519,
>         ^~~~~~~~~~~~
> 1 error generated.
[...]
> gnutls_3.8.8 fails to compile and has a single error.  Other
> Poudriere packages depend on gnutls_3.8.8 and are skipped from
> compiling.  What do you suggest to fix this problem?  I am patient
> to wait until developers have a solution ready for gnutls.  Like
> first initializing group_x25519 with a NIL value.??
> http://ghostbsd-arm64.blogspot.com Fred's Blog about porting
> GhostBSD x86 to Arm64

I don't get this error on main and stable/14 and there is a gnutls
package.

But there is obviously a fix for this issue:
https://github.com/gnutls/gnutls/commit/9cc9d5556d258d23a399abfe45715773e719d134