Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2024 19:12:28 -0800
From:      Fred Finster <fred@thegalacticzoo.com>
To:        freebsd-arm@FreeBSD.org
Subject:   =?US-ASCII?Q?Re=3A_gnutls_3=2E8=2E8_error=2C__compile-time-constant___f?= =?US-ASCII?Q?ails_and_skips_many_other_packages_from_being_built?=
Message-ID:  <BA661687-E74E-460A-8333-27CB5716FE0E@thegalacticzoo.com>
In-Reply-To: <6D84E214-2196-4AA7-ADD1-B11E5434EE37@thegalacticzoo.com>
References:  <6D84E214-2196-4AA7-ADD1-B11E5434EE37@thegalacticzoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=20



On December 23, 2024 6:36 PM PST
~~~~~~~~~~~~~~~~~

Thank you for pointing to me the referenced fix in gnutls github issues, S=
ir
Sending this email now=2E  Already much to wordy, when trying to be clear
~~~~~~~~~~~~~~~~~


Clang --version  16=2E06  from FreeBSD 15=2E0-CURRENT

This is the version of Clang, I am using to compile C code on FreeBSD vers=
ion 14=2E0  =20
YES, I HAVE a messed up, "updated build" of /usr/src  self built kernel in=
stalled to a Raspberry Pi 4B=2E
hardware  BCM2711  with 8 gigs of dram memory=2E  YES, I do understand tha=
t this is NOT SUPPORTED BUILD=2E   I am showing that CLANG version 16=2E06 =
has a problem with the gnutls 3=2E8=2E8 source code file build, in file  gr=
oups=2Ec line 93:2=2E   The use of a compile-time constant value that is wo=
rking for other CLANG versions is NOT WORKING for this CLANG 16=2E06 versio=
n=2E =20

1=2E) What is your version of CLANG you are using with Poudriere package b=
uilder?  No problems when you are compiling with CLANG 15=2Exx?

2=2E) question,  since Poudriere package builder, checks version numbers a=
nd downloads newer version code from the repository to replace older versio=
ns=2E   Will there be a newer version of gnutls 3=2E8=2E9 code that gets do=
wnloaded to replace gnutls 3=2E8=2E8 source code, and thereby fixes the sou=
rce code build, so that many other packages relying on gnutls can be subseq=
uently built?

Yes, the compile-time-constant problem was referenced on github=2Ecom/gnut=
ls as an issue=2E So will eventually be fixed=2E   Should I be performing a=
nother task to update the source code installed in /usr/src  or /usr/ports/=
security/gnutls    like executing =20
1=2E)  FreeBSD portsnap=2E   =20
2=2E)  Or this  git   pull --ff-only  command?   Yes, I do see that I need=
 to Read the Fine Manual and other documents to answer my noob question her=
e=2E
3=2E)  Some other procedure to update source code for Poudriere?
4=2E)  My hope was to keep re-starting Poudriere pkglist build every few d=
ays, until the compile-time-constant problem fixed itself=2E   I will send =
this email now and then start Poudriere Package list builder again to see i=
f problem cleared itself=2E
5=2E)  I do not think 14=2E1 or 14=2E2 see a problem using the aarch64 cla=
ng compiler, because using earlier version clang 14=2Exx or 15=2Exx versus =
clang 16=2E06 I get from FreeBSD 15=2E0-CURRENT or  15=2E0-STABLE environme=
nts=2E  Yes, I might have created my own problem using mismatche unsupporte=
d versions of CLANG=2E
5=2E)   Your methods and suggestions are welcome=2E   Maybe one can edit  =
groups=2Ec file to get around the compile-time-constant problem  using a  p=
tr=3D (NIL)   or other setup code=2E


~~~~~~~~~~~~~~~  output from my  FreeBSD Arm64/GhostBSD-Arm64 installed ke=
rnel build for RasPi4B   ~~~~~~~~~~~~~~
Last login: Sun Dec 22 19:28:24 2024 from 173=2E11=2E5=2E249
GhostBSD 24=2E01=2E1 GENERIC

Welcome to GhostBSD!

Release Notes, Errata:  https://www=2EGhostBSD=2Eorg/releases/
Security Advisories:    https://www=2EFreeBSD=2Eorg/security/
GhostBSD Docs:          https://wiki=2EGhostBSD=2Eorg/
GhostBSD FAQ:           https://wiki=2EGhostBSD=2Eorg/index=2Ephp/FAQ
GhostBSD Forums:        https://forums=2EGhostBSD=2Eorg/

Show the version of GhostBSD installed:  ghostbsd-version
Please include that output and any error messages when posting questions=
=2E
Forget what directory you are in? Type "pwd"=2E
                -- Dru <genesis@istar=2Eca>
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ cc --version
FreeBSD clang version 16=2E0=2E6 (https://github=2Ecom/llvm/llvm-project=
=2Egit llvmorg-16=2E0=2E6-0-g7cbf1a259152)
Target: aarch64-unknown-freebsd15=2E0
Thread model: posix
InstalledDir: /usr/bin
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ clang --version
FreeBSD clang version 16=2E0=2E6 (https://github=2Ecom/llvm/llvm-project=
=2Egit llvmorg-16=2E0=2E6-0-g7cbf1a259152)
Target: aarch64-unknown-freebsd15=2E0
Thread model: posix
InstalledDir: /usr/bin
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $

~~~~~~~~~~~~~~~~~
On December 16, 2024 8:02:52 PM PST, Fred Finster <fred@thegalacticzoo=2Ec=
om> wrote:
>Merry Christmas 2024 fellow FreeBSD ARM users=2E
>I wave my hand, that I have encountered an error that Marius Schamschula =
details below=2E
>
>A compile-time constant is=C2=A0computed at the time the code is compiled=
, while a run-time constant can only be computed while the application is r=
unning=2E A compile-time constant will have the same value each time an app=
lication runs, while a run-time constant may change each time=2ESep 15, 202=
1
>
>~~~~~~~~~~~~~~~~~~~~~
>https://github=2Ecom/llvm/llvm-project
>https://lists=2Egnutls=2Eorg/pipermail/gnutls-help/2024-November/thread=
=2Ehtml#4866
>Problem, how to compile file groups=2Ec as a part of gnutls 3=2E8=2E8 and=
 overcome
>this compile-time constant error:
>groups=2Ec:93:2: error: initializer element is not a compile-time constan=
t
>        group_x25519,
>        ^~~~~~~~~~~~
>1 error generated=2E
>
>My FreeBSD Raspberry Pi 4B environment: =20
>~~~~~~~~~~~~~~~~~~~~~~~
>Last login: Mon Dec 16 22:35:17 2024 from 173=2E11=2E5=2E249
>GhostBSD 24=2E01=2E1 GENERIC
>
>Welcome to GhostBSD!
>
>Release Notes, Errata:  https://www=2EGhostBSD=2Eorg/releases/
>Security Advisories:    https://www=2EFreeBSD=2Eorg/security/
>GhostBSD Docs:          https://wiki=2EGhostBSD=2Eorg/
>GhostBSD FAQ:           https://wiki=2EGhostBSD=2Eorg/index=2Ephp/FAQ
>GhostBSD Forums:        https://forums=2EGhostBSD=2Eorg/
>
>Show the version of GhostBSD installed:  ghostbsd-version
>Please include that output and any error messages when posting questions=
=2E
>You can adjust the volume of various parts of the sound system in your
>computer by typing 'mixer <type>=2Evolume=3D<volume>%'=2E  To get a list =
of what
>you can adjust, just type 'mixer'=2E
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ date
>Tue Dec 17 02:46:01 UTC 2024
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ ifconfig
>genet0: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> =
metric 0 mtu 1500
>        options=3D68000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE,RXCSUM_IPV6,TXC=
SUM_IPV6>
>        ether e4:5f:01:9d:54:76
>        inet 10=2E0=2E0=2E159 netmask 0xffffff00 broadcast 10=2E0=2E0=2E2=
55
>        media: Ethernet autoselect (1000baseT <full-duplex>)
>        status: active
>        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>lo0: flags=3D1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu=
 16384
>        options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
>        inet 127=2E0=2E0=2E1 netmask 0xff000000
>        inet6 ::1 prefixlen 128
>        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
>        groups: lo
>        nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ clang --version
>FreeBSD clang version 16=2E0=2E6 (https://github=2Ecom/llvm/llvm-project=
=2Egit llvmorg-16=2E0=2E6-0-g7cbf1a259152)Target: aarch64-unknown-freebsd15=
=2E0
>Thread model: posix
>InstalledDir: /usr/bin
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ uname -arU
>FreeBSD Ghost14-selfbuilt-rpi4B-nginx-tst1 14=2E0-STABLE FreeBSD 14=2E0-S=
TABLE #1 stable-arm64/14-n230716-18b4bf31e36-dirty: Fri Feb 16 00:17:20 PST=
 2024     root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr/obj/usr/ghost14/ghos=
tbsd-src/arm64=2Eaarch64/sys/GENERIC-VCHIQ arm64 1500001
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $
>
>
>
>
>Last login: Mon Dec 16 22:35:17 2024 from 173=2E11=2E5=2E249
>GhostBSD 24=2E01=2E1 GENERIC
>
>Welcome to GhostBSD!
>
>Release Notes, Errata:  https://www=2EGhostBSD=2Eorg/releases/
>Security Advisories:    https://www=2EFreeBSD=2Eorg/security/
>GhostBSD Docs:          https://wiki=2EGhostBSD=2Eorg/
>GhostBSD FAQ:           https://wiki=2EGhostBSD=2Eorg/index=2Ephp/FAQ
>GhostBSD Forums:        https://forums=2EGhostBSD=2Eorg/
>
>Show the version of GhostBSD installed:  ghostbsd-version
>Please include that output and any error messages when posting questions=
=2E
>You can adjust the volume of various parts of the sound system in your
>computer by typing 'mixer <type>=2Evolume=3D<volume>%'=2E  To get a list =
of what
>you can adjust, just type 'mixer'=2E
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ date
>Tue Dec 17 02:46:01 UTC 2024
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ ifconfig
>genet0: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> =
metric 0 mtu 1500
>        options=3D68000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE,RXCSUM_IPV6,TXC=
SUM_IPV6>
>        ether e4:5f:01:9d:54:76
>        inet 10=2E0=2E0=2E159 netmask 0xffffff00 broadcast 10=2E0=2E0=2E2=
55
>        media: Ethernet autoselect (1000baseT <full-duplex>)
>        status: active
>        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>lo0: flags=3D1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu=
 16384
>        options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
>        inet 127=2E0=2E0=2E1 netmask 0xff000000
>        inet6 ::1 prefixlen 128
>        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
>        groups: lo
>        nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ clang --version
>FreeBSD clang version 16=2E0=2E6 (https://github=2Ecom/llvm/llvm-project=
=2Egit llvmorg-16=2E0=2E6-0-g7cbf1a259152)Target: aarch64-unknown-freebsd15=
=2E0
>Thread model: posix
>InstalledDir: /usr/bin
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ uname -arU
>FreeBSD Ghost14-selfbuilt-rpi4B-nginx-tst1 14=2E0-STABLE FreeBSD 14=2E0-S=
TABLE #1 stable-arm64/14-n230716-18b4bf31e36-dirty: Fri Feb 16 00:17:20 PST=
 2024     root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr/obj/usr/ghost14/ghos=
tbsd-src/arm64=2Eaarch64/sys/GENERIC-VCHIQ arm64 1500001
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ freebsd-version -dru
>Illegal option -d
>usage: freebsd-version [-kru] [-j jail]
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ freebsd-version -kru
>14=2E0-STABLE
>14=2E0-STABLE
>15=2E0-CURRENT
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ ghostbsd-version
>24=2E01=2E1
>fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ ghostbsd-version -fkv
>14=2E0-STABLE
>1400500
>24=2E01=2E1
>
>
>~~~~~~~~~~~~~~~~
>A compile-time constant is computed at the time the code is compiled, whi=
le a run-time constant can only be computed while the application is runnin=
g=2E A compile-time constant will have the same value each time an applicat=
ion runs, while a run-time constant may change each time=2ESep 15, 2021
>
>https://lists=2Egnutls=2Eorg/pipermail/gnutls-help/2024-November/thread=
=2Ehtml#4866  gnutls mailing threads=2E
>https://lists=2Egnutls=2Eorg/pipermail/gnutls-help/2024-November/004866=
=2Ehtml
>groups=2Ec file, not a compile-time constant  group_x25519
>
>I/opt/local/include/p11-kit-1 -pipe -Os -isysroot/Library/Developer/Comma=
ndLineTools/SDKs/MacOSX14=2Esdk -arch arm64 -c groups=2Ec  -fno-common -DPI=
C -o =2Elibs/groups=2Eo
>groups=2Ec:93:2: error: initializer element is not a compile-time constan=
t
>        group_x25519,
>        ^~~~~~~~~~~~
>1 error generated=2E
>Marius
>--
>Marius Schamschula
>
>URLS to view:
>https://trac=2Emacports=2Eorg/ticket/71273  Compile Time Constant=20
>https://lists=2Egnutls=2Eorg/pipermail/gnutls-help/2024-November/004865=
=2Ehtml
>https://lists=2Egnutls=2Eorg/pipermail/gnutls-help/2024-November/004866=
=2Ehtml
>
>~~~~~~~~~~~~~~~~~~~~~
>
>gnutls_3=2E8=2E8 fails to compile and has a single error=2E  Other Poudri=
ere packages depend on gnutls_3=2E8=2E8 and are skipped from compiling=2E  =
What do you suggest to fix this problem?  I am patient to wait until develo=
pers have a solution ready for gnutls=2E   Like first initializing group_x2=
5519 with a NIL value=2E??
>http://ghostbsd-arm64=2Eblogspot=2Ecom Fred's Blog about porting GhostBSD=
 x86 to Arm64

http://ghostbsd-arm64=2Eblogspot=2Ecom Fred's Blog



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA661687-E74E-460A-8333-27CB5716FE0E>