From nobody Thu Aug 29 07:48:00 2024 X-Original-To: freebsd-ports@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 4WvYLK35hTz5MTQt for ; Thu, 29 Aug 2024 07:48:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-22.consmr.mail.gq1.yahoo.com (sonic309-22.consmr.mail.gq1.yahoo.com [98.137.65.148]) (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 4WvYLJ4ZSsz43rt for ; Thu, 29 Aug 2024 07:48:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Zxxz3QfS; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1724917697; bh=TV/I43VQ8eu6d2A1GBhuew+wt0Fff2w0hMTicC2ayh0=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=Zxxz3QfSsdS8D+S+h9euprRrxZeOcCAgAvWEgQc+riy6UYrNGeLjMqEE+1WHh9n/fr5JqPpWXM2NRY0Is3dCpH316kzf+qnmzpXBrIz8wtSHv29huin1U4SV/Us0OCdrNUhbazgJlwC4Nq5CS98os/akPbMuegWJaGqODSOydEZoXTC6KBn0NLGRaLEAo+kER30/4S48qYmAM512bFhCuYq3IRCYk5/V17R+kM0mC1+uj+lqsebGeS6NuTY2jAvOJwVDpkOiusSddzH7DngEFKFY24Ib1BUislAJ/SSuAuKu1aYhFYMlai0BYpHccJUPQtx4NrHpueOkiuFq/UJgAQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1724917697; bh=d3VmVfuDu0waUN1Sy0sROACNR/5d6t7+dg5h3rFAUeE=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=C3IdBOZeirKJNfg8oaAVlhN8bPPnNmF4xjfnrEyh7cK0YDJMXEyffTN4gLkQbBCqIlbvdi76ZgIfA6IdrkMoVljbh4P8FaUK6HWla4HOqL8B966Q/iz5+azhS7Qe2jnDPsRNTRbEFdxEc9qaLFQBq31QIlgRM6ypkezM5NPSZ/VDW4uMcG7EDn3TJ5vfVDMWjFitk4m4ZeAP0EKq77dRcr4OMJmLRob/lQgM4JechcQuqnLjxyZW2yH6OcD/SYeqfRZSHEkdOzVPgODYZY276BxfbKNqzxdGh3txxSvA1GIEQFPOHP6q1e/IQqzV3itxzYpzX6X3326+U4tm++FPJA== X-YMail-OSG: YV7iqWoVM1kO.HcKlgkZbg1usf473cIfJCETZKiKxy_JsFhA5aobKBDmk01NlNx mlviKhSqz3pUbcQl6VSdxvISnzcFb8Fe_75IN_XaZa48TaMcjNdwGAarnhMWZ0ksHbLPFzEX0oZl yXQUjkwCGB5vNz_yafeXRM90b7UcDr5mNK.URuSEUY6MRgHI0EaLbbwuM3NE4cMBRFuoC.BANqIx j8_BN5oQ5aPX.k1dglctefdSnSprRQUFvCnw1GxCxXnhQV2YVbmlXPZcW015fS4g10hyjglKSobm o51R1x0NDt7xgUmQYCEh6mGdIlFFDn2hmPXyyahKMQujq.k32YARNV6snTZAJWAWgi1E44oJifht RSu5xiTIXOV8rWt_I__auRt7M7.a5Wsa.dRusoSaUSimudBBGpUkeZNLPCnY9Qs3rI3NPXcoipmw gNmRNdtjMptZGQ_uc4o58b6YVI454zG1WvYtiM6aTo7Vwg0wY7Xz1wfz2wOMs9MpTgvMrs8Yxfom wSrmtIHJjzlfQeiC6QeeUOoI4YtMoXblTBMd4Uq9frL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LWnthIzQ8kjj.xAuBCh07vj5oV r4.CBBDHYctdUoxcZVaJn_pdFWU7jpBjGu7Hhi5OpAZv.UuYmXe0gUWYGpKVFuiiI_XeL6M..Qvt eF.8gcbL_lrwaFKbmdXdU4vjIw0zsODhGHMNng5HHt6MQXWuA2YbUpi1C9cG2sAoaxW1TyK_ioC1 Ym6xtb3UkVljTg40lRg9qDpW7SJFD6zrV07bilcrpTBOnIiCYZubqvQcoge10JQdW1ddpo01mdFD BSU8jb70_swF_El1J0KOihaixCx5JOahq.TgFwOV7_VOgjzm0NJrDrpeWn1PVBC.nWcUtM52Lkcv SZlw5rEG79CknnxNFoWcHcMdSZpnGweVNrN0oJbkARQaLf9QOBPM_Pz23PvZU0GDd4Ee9I3clCNq LlL8hj.DJ7pzn3barkvsaGTeIedvMSIBEQBczgIHgroHe7k32iewE._9KeLHW_P.S_FlnGfrQLuJ sqonrEuklr_xD.6tT9mycoMzd1gF9ebSeVTB.17wGIyjMYuj6J9UsddHRvOGfFxqzev6aQL40VDt 6sVFcapG1QJbbjGGwrHKj7jblZpSFiKKmmZM4x10TCCyg6QNK8K5dLQ.ap6wDjUM3FPeplpLMb8Y k0PRZriv8RXVL6Wq_mMPfALPbe7gJ23I4M24pg6198fJY.517z.nkqbjCYzb8cViqk.ofn5CXMtJ UBdECd76XZvfuLom8ckceQg-- X-Sonic-MF: X-Sonic-ID: e5bf81c3-6637-40a6-b5a3-379dadce0242 Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Thu, 29 Aug 2024 07:48:17 +0000 Received: by hermes--production-gq1-5d95dc458-7jxgc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1aa3b0f325db680bcd85a722ded5cfed; Thu, 29 Aug 2024 07:48:11 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: security/nss targeting armv7 tries to compile armv8-a source code: nss/lib/freebl/aes-armv8.c Message-Id: <4C7FBDDC-35E8-46E2-A424-58F5779199F8@yahoo.com> Date: Thu, 29 Aug 2024 00:48:00 -0700 Cc: Tomoaki AOKI , Brooks Davis To: " gecko@freebsd.org" , FreeBSD ARM List , FreeBSD Mailing List X-Mailer: Apple Mail (2.3776.700.51) References: <4C7FBDDC-35E8-46E2-A424-58F5779199F8.ref@yahoo.com> X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_FROM(0.00)[yahoo.com]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.148:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.148:from]; RCPT_COUNT_FIVE(0.00)[5] X-Rspamd-Queue-Id: 4WvYLJ4ZSsz43rt nss/lib/freebl/Makefile has: ifeq ($(CPU_ARCH),arm) $(OBJDIR)/$(PROG_PREFIX)aes-armv8$(OBJ_SUFFIX): CFLAGS +=3D = -march=3Darmv8-a -mfpu=3Dcrypto-neon-fp-armv8 $(OBJDIR)/$(PROG_PREFIX)gcm-arm32-neon$(OBJ_SUFFIX): CFLAGS +=3D = -mfpu=3Dneon endif but targeting -mcpu=3Dcortex-a7 (an armv7) results in the likes of: cc -o FreeBSD15.0_OPT.OBJ/FreeBSD_SINGLE_SHLIB/aes-armv8.o -c -std=3Dc99 = -O2 -gline-tables-only -pipe -mcpu=3Dcortex-a7 . . . . -march=3Darmv8-a = -mfpu=3Dcrypto-neon-fp-armv8 aes-armv8.c cc: warning: ignoring extension 'sha2' because the 'armv7-a' = architecture does not support it [-Winvalid-command-line-argument] cc: warning: ignoring extension 'aes' because the 'armv7-a' architecture = does not support it [-Winvalid-command-line-argument] aes-armv8.c:14:2: error: "Compiler option is invalid" 14 | #error "Compiler option is invalid" | ^ from nss/lib/freebl/aes-armv8.c: . . . #include "secerr.h" #include "rijndael.h" #if ((defined(__clang__) || \ (defined(__GNUC__) && defined(__GNUC_MINOR__) && \ (__GNUC__ > 4 || (__GNUC__ =3D=3D 4 && __GNUC_MINOR__ > 8)))) && = \ defined(IS_LITTLE_ENDIAN)) #ifndef __ARM_FEATURE_CRYPTO #error "Compiler option is invalid" #endif #include . . . (The example happens to be for 3.103 .) Seems odd to me to have armv7 targeting have any dependency on armv8 encoded instructions that from well after armv7 was defined. (Even if the goal is to have the processor reject the instructions.) Note: I ran into this trying to see if I could build www/firefox in a armv7 jail on a aarch64 that supports armv7 code. BE_WASM for llvm*'s may be a waste of resources if armv7 based builds are just not going to work. (I do not normally build firefox.) =3D=3D=3D Mark Millard marklmi at yahoo.com