gnutls_3.8.8_error,__compile-time-constant___fai ls_and_skips_many_other_packages_from_being_built
- Reply: Herbert J. Skuhra: "Re: gnutls 3.8.8 error, compile-time-constant fails and skips many other packages from being built"
- Reply: Fred Finster : "Re:_gnutls_3.8.8_error,__compile-time-constant___f ails_and_skips_many_other_packages_from_being_built"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 Dec 2024 04:02:52 UTC
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.
My FreeBSD Raspberry Pi 4B environment:
~~~~~~~~~~~~~~~~~~~~~~~
Last login: Mon Dec 16 22:35:17 2024 from 173.11.5.249
GhostBSD 24.01.1 GENERIC
Welcome to GhostBSD!
Release Notes, Errata: https://www.GhostBSD.org/releases/
Security Advisories: https://www.FreeBSD.org/security/
GhostBSD Docs: https://wiki.GhostBSD.org/
GhostBSD FAQ: https://wiki.GhostBSD.org/index.php/FAQ
GhostBSD Forums: https://forums.GhostBSD.org/
Show the version of GhostBSD installed: ghostbsd-version
Please include that output and any error messages when posting questions.
You can adjust the volume of various parts of the sound system in your
computer by typing 'mixer <type>.volume=<volume>%'. To get a list of what
you can adjust, just type 'mixer'.
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ date
Tue Dec 17 02:46:01 UTC 2024
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ ifconfig
genet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=68000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether e4:5f:01:9d:54:76
inet 10.0.0.159 netmask 0xffffff00 broadcast 10.0.0.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ clang --version
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)Target: aarch64-unknown-freebsd15.0
Thread model: posix
InstalledDir: /usr/bin
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ uname -arU
FreeBSD Ghost14-selfbuilt-rpi4B-nginx-tst1 14.0-STABLE FreeBSD 14.0-STABLE #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/ghostbsd-src/arm64.aarch64/sys/GENERIC-VCHIQ arm64 1500001
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $
Last login: Mon Dec 16 22:35:17 2024 from 173.11.5.249
GhostBSD 24.01.1 GENERIC
Welcome to GhostBSD!
Release Notes, Errata: https://www.GhostBSD.org/releases/
Security Advisories: https://www.FreeBSD.org/security/
GhostBSD Docs: https://wiki.GhostBSD.org/
GhostBSD FAQ: https://wiki.GhostBSD.org/index.php/FAQ
GhostBSD Forums: https://forums.GhostBSD.org/
Show the version of GhostBSD installed: ghostbsd-version
Please include that output and any error messages when posting questions.
You can adjust the volume of various parts of the sound system in your
computer by typing 'mixer <type>.volume=<volume>%'. To get a list of what
you can adjust, just type 'mixer'.
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ date
Tue Dec 17 02:46:01 UTC 2024
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ ifconfig
genet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=68000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether e4:5f:01:9d:54:76
inet 10.0.0.159 netmask 0xffffff00 broadcast 10.0.0.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ clang --version
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)Target: aarch64-unknown-freebsd15.0
Thread model: posix
InstalledDir: /usr/bin
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ uname -arU
FreeBSD Ghost14-selfbuilt-rpi4B-nginx-tst1 14.0-STABLE FreeBSD 14.0-STABLE #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/ghostbsd-src/arm64.aarch64/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.0-STABLE
14.0-STABLE
15.0-CURRENT
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ ghostbsd-version
24.01.1
fred@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ $ ghostbsd-version -fkv
14.0-STABLE
1400500
24.01.1
~~~~~~~~~~~~~~~~
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://lists.gnutls.org/pipermail/gnutls-help/2024-November/thread.html#4866 gnutls mailing threads.
https://lists.gnutls.org/pipermail/gnutls-help/2024-November/004866.html
groups.c file, not a compile-time constant group_x25519
I/opt/local/include/p11-kit-1 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -c groups.c -fno-common -DPIC -o .libs/groups.o
groups.c:93:2: error: initializer element is not a compile-time constant
group_x25519,
^~~~~~~~~~~~
1 error generated.
Marius
--
Marius Schamschula
URLS to view:
https://trac.macports.org/ticket/71273 Compile Time Constant
https://lists.gnutls.org/pipermail/gnutls-help/2024-November/004865.html
https://lists.gnutls.org/pipermail/gnutls-help/2024-November/004866.html
~~~~~~~~~~~~~~~~~~~~~
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