From nobody Tue Dec 24 03:12:28 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YHKh30ztyz5hsn3 for ; Tue, 24 Dec 2024 03:12:35 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Received: from nmtao202.oxsus-vadesecure.net (mta-232b.oxsus-vadesecure.net [15.204.3.7]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YHKh13Fnqz4vwM for ; Tue, 24 Dec 2024 03:12:33 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=oxsus-vadesecure.net header.s=dkim-202410-rsa2048 header.b="lRhI2gc "; spf=pass (mx1.freebsd.org: domain of fred@thegalacticzoo.com designates 15.204.3.7 as permitted sender) smtp.mailfrom=fred@thegalacticzoo.com; dmarc=pass (policy=quarantine) header.from=thegalacticzoo.com; arc=pass ("oxsus-vadesecure.net:s=arc-202309-rsa2048:i=1") ARC-Seal: i=1; a=rsa-sha256; d=oxsus-vadesecure.net; s=arc-202309-rsa2048; t=1735009952; cv=none; b=X0SV/72LP8CUUBRkMFqC3Wmn9jKJIRfZxPXA6Ih3HwTXa3dBXJUodbXyOJ8JwjzGB2rOw80C5wZsMrOWkyhajEuwb/p1lmp8hOzQnKVRr10vRqcSYZQfYMAtJvq1ZzHnldMj8eYuS9/lObJwfcTAHTdKiM5w6Z3iP7Or3Nx1WeqMzpEiEBxkDd8q01CX4oS3qVkYLMK78SHtaSnjWYcaD1OmjPjEtCqWWteLHxeolBWVGqTidG4fehxSwVcJZ6nUK9UZtnGb1k6q+99BatiNjaObwQcbsJvlMw58dDXWUGVA3iJfVgv0GdKhyxMM3NPwofxU5x9ApaLTpN8jJB3s8Q== ARC-Message-Signature: i=1; a=rsa-sha256; d=oxsus-vadesecure.net; s=arc-202309-rsa2048; t=1735009952; c=relaxed/relaxed; h=from:reply-to:subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to:references:list-id:list-help:list-unsubscribe:list-unsubscribe-post:list-subscribe:list-post:list-owner:list-archive; bh=T/bXnEHdmP79sTIxhqy4WPQ7bcZf/C4jw7AxdFkcWbw=; b=j6lsO6C1PMYROr5m2I9+coyOEPLm26B1CsITzJDHzGaGkm+BSYgrpL4nO02fmE/5D8glNl5EkcD2A2MWCQyjnHWCx/1Jsm9u14YYQIje+KtSVqt+wPC05EzqT9gIAAL6JvJkXiiBO35DgOLRhfbvZR5SbJxHDsbMTAGc2wTbxanfZ7B9g3NlQWSRZhSPEVxiYyq7Ew86dP25NKh+BSIi05Bc2oD2BpkiHmfDn2aaJKZTk3Xw1WVJCYYhc20zoaRcvViXEZ1Mm9DhRKAz5rZSZW9a0v4+vprCmGi09MnfR5zz12kLXZjYMG7O5HRdDL3c7cubuHG/m9cFoAdHBxtX/A== ARC-Authentication-Results: i=1; DKIM-Signature: v=1; a=rsa-sha256; bh=T/bXnEHdmP79sTIxhqy4WPQ7bcZf/C4jw7AxdF kcWbw=; c=relaxed/relaxed; d=oxsus-vadesecure.net; h=from:reply-to: subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc: in-reply-to:references:list-id:list-help:list-unsubscribe: list-unsubscribe-post:list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=dkim-202410-rsa2048; t=1735009952; x=1735614752; b=lRhI2gc LuNElFQweWDwiGMrOa7jIomPgYRCh79DQAcGc3BTlxDPdoN9g947UBKk3G8bPVOgToPBr5S VxejiZ1sL9Je1zeYL4tG1iDclG0NRO6Q93OkMFMUYFnOiVu/qH/64LqT/PlhTZUwuMw6tWk ZU7Eu6rYEY7O7fsM9Wfw8ZUiBzca+pJolh07n/BBfnjwMJUB6OzmsRYU14y5yvDyXjsp1E8 TbouGPYWHKxrCkPsGLZ20CR9HEpsjWevc2rsvs33Y2aURgREWuc+2bSqKWgzMTlZNnEcS+R Se5LEqW/niE2CAt2TuaSHnemwNcAH2ytir+pVDLdRe23dm9lEuA== Received: from proxy-18.proxy.cloudus.ewr.xion.oxcs.net ([173.11.5.249]) by oxsus2nmtao02p.internal.vadesecure.com with ngmta id da0cc78b-1813fe5bbe4f5cb0; Tue, 24 Dec 2024 03:12:31 +0000 Date: Mon, 23 Dec 2024 19:12:28 -0800 From: Fred Finster 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?= User-Agent: Thunderbird for Android In-Reply-To: <6D84E214-2196-4AA7-ADD1-B11E5434EE37@thegalacticzoo.com> References: <6D84E214-2196-4AA7-ADD1-B11E5434EE37@thegalacticzoo.com> Message-ID: List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [0.69 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; SUBJ_EXCESS_QP(1.20)[]; ARC_ALLOW(-1.00)[oxsus-vadesecure.net:s=arc-202309-rsa2048:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.98)[0.984]; DMARC_POLICY_ALLOW(-0.50)[thegalacticzoo.com,quarantine]; R_DKIM_ALLOW(-0.20)[oxsus-vadesecure.net:s=dkim-202410-rsa2048]; R_SPF_ALLOW(-0.20)[+ip4:15.204.3.4/30]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[15.204.3.7:from]; XM_UA_NO_VERSION(0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[oxsus-vadesecure.net:+]; MLMMJ_DEST(0.00)[freebsd-arm@FreeBSD.org]; ASN(0.00)[asn:16276, ipnet:15.204.0.0/17, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[15.204.3.7:from] X-Rspamd-Queue-Id: 4YHKh13Fnqz4vwM X-Spamd-Bar: / =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 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 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 =2Evolume=3D%'=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 = metric 0 mtu 1500 > options=3D68000b > ether e4:5f:01:9d:54:76 > inet 10=2E0=2E0=2E159 netmask 0xffffff00 broadcast 10=2E0=2E0=2E2= 55 > media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=3D29 >lo0: flags=3D1008049 metric 0 mtu= 16384 > options=3D680003 > inet 127=2E0=2E0=2E1 netmask 0xff000000 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > groups: lo > nd6 options=3D21 >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 =2Evolume=3D%'=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 = metric 0 mtu 1500 > options=3D68000b > ether e4:5f:01:9d:54:76 > inet 10=2E0=2E0=2E159 netmask 0xffffff00 broadcast 10=2E0=2E0=2E2= 55 > media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=3D29 >lo0: flags=3D1008049 metric 0 mtu= 16384 > options=3D680003 > inet 127=2E0=2E0=2E1 netmask 0xff000000 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > groups: lo > nd6 options=3D21 >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