NetBSD Problem Report #55158
From www@netbsd.org Thu Apr 9 07:02:43 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id C40B01AEB87
for <gnats-bugs@gnats.NetBSD.org>; Thu, 9 Apr 2020 07:02:43 +0000 (UTC)
Message-Id: <20200409070242.AB5811AEB8F@mollari.NetBSD.org>
Date: Thu, 9 Apr 2020 07:02:42 +0000 (UTC)
From: jun@soum.co.jp
Reply-To: jun@soum.co.jp
To: gnats-bugs@NetBSD.org
Subject: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
X-Send-Pr-Version: www-1.0
>Number: 55158
>Category: pkg
>Synopsis: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 09 07:05:00 +0000 2020
>Closed-Date: Mon Apr 27 12:44:04 +0000 2020
>Last-Modified: Mon Apr 27 12:44:04 +0000 2020
>Originator: Jun Ebihara
>Release: pkgsrc Apr.9 6:00 UTC 2020
>Organization:
SOUM Corporation
>Environment:
earmv6hf: NetBSD rpi 9.99.52 NetBSD 9.99.52 (RPI2)
earmv7hf: NetBSD armv7 9.99.52 NetBSD 9.99.52
aarch64: NetBSD pinebook 9.99.52
>Description:
nss 3.51 compile failed on earmv6hf/v7hf and aarch64
earmv6hf/earmv7hf:
pkgsrc/devel/nss/work.earmv6hf/nss-3.51/nss/cmd/shlibsign/NetBSD9.99.52_OPT.OBJ/shlibsign -v -i /mnt/earmv6hf/pkgsrc/devel/nss/work.earmv6hf/nss-3.51/nss/cmd/shlibsign/../../../dist/NetBSD9.99.52_OPT.OBJ/lib/libsoftokn3.so
moduleSpec configdir='' certPrefix='' keyPrefix='' secmod='' flags=noCertDB, noModDB
C_Initialize failed: 0x00000030, CKR_DEVICE_ERROR
NSPR error code: -5977: Failure to load dynamic library
Initiailzing softoken failed: 0x00000030, CKR_DEVICE_ERROR
aarch64:
-march=armv8-a+crypto gcm-aarch64.c
{standard input}: Assembler messages:
{standard input}:29: Error: selected processor does not support `pmull v6.1q,v0.1d,v20.1d'
{standard input}:30: Error: selected processor does not support `pmull2 v4.1q,v0.2d,v7.2d'
{standard input}:31: Error: selected processor does not support `pmull v0.1q,v0.1d,v19.1d'
{standard input}:32: Error: selected processor does not support `pmull2 v2.1q,v2.2d,v16.2d'
{standard input}:36: Error: selected processor does not support `pmull2 v1.1q,v3.2d,v18.2d'
{standard input}:39: Error: selected processor does not support `pmull v4.1q,v4.1d,v17.1d'
gmake[3]: *** [../../coreconf/rules.mk:393: NetBSD9.99.52_64_OPT.OBJ/NetBSD_SINGLE_SHLIB/gcm-aarch64.o] Error 1
gmake[3]: Leaving directory 'pkgsrc/devel/nss/work.aarch64/nss-3.51/nss/lib/freebl'
>How-To-Repeat:
cd pkgsrc/devel/nss
make
on earmv6hf/earmv7hf/aarch64
>Fix:
>Release-Note:
>Audit-Trail:
From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@netbsd.org, gnats-admin@netbsd.org
Cc:
Subject: Re: pkg/55158: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
Date: Fri, 17 Apr 2020 08:57:06 +0900 (JST)
From: gnats-admin@netbsd.org
Subject: Re: pkg/55158: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
Date: Thu, 9 Apr 2020 07:05:00 +0000 (UTC)
>>Synopsis: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
On aarch64:
fix build with "interim NetBSD/aarch64 build fix"
http://mail-index.netbsd.org/pkgsrc-changes/2020/04/12/msg210531.html
thanx!
From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@netbsd.org, gnats-admin@netbsd.org
Cc:
Subject: Re: pkg/55158: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
Date: Tue, 21 Apr 2020 09:21:50 +0900 (JST)
From: Jun Ebihara <jun@soum.co.jp>
Subject: Re: pkg/55158: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
Date: Fri, 17 Apr 2020 08:57:06 +0900 (JST)
>>>Synopsis: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
> On aarch64:
> fix build with "interim NetBSD/aarch64 build fix"
> http://mail-index.netbsd.org/pkgsrc-changes/2020/04/12/msg210531.html
Date: Mon, 20 Apr 2020 21:57:22 +0000
From: "matthew green" <mrg@netbsd.org>
Subject: CVS commit: src/external/gpl3/gcc/dist/gcc/common/config/aarch64
To: source-changes@NetBSD.org
Message-Id: <20200420215722.54390FB27@cvs.NetBSD.org>
Module Name: src
Committed By: mrg
Date: Mon Apr 20 21:57:22 UTC 2020
Modified Files:
src/external/gpl3/gcc/dist/gcc/common/config/aarch64: aarch64-common.c
Log Message:
when sorting all_extensions_by_on[] be sure to keep the NULL
entry last. correct the sizeof() to use the right variable
(they were the same size at least.) as-was, with the NULL
entry first, all loops across this array were no-ops.
this should fix PR#55158's arm64 side.
cvs rdiff -u -r1.1.1.6 -r1.2 \
src/external/gpl3/gcc/dist/gcc/common/config/aarch64/aarch64-common.c
From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@netbsd.org, gnats-admin@netbsd.org
Cc:
Subject: Re: pkg/55158: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
Date: Tue, 21 Apr 2020 14:43:24 +0900 (JST)
From: Jun Ebihara <jun@soum.co.jp>
Subject: Re: pkg/55158: nss 3.51 compile failed on earmv6hf/v7hf and aarch64
Date: Tue, 21 Apr 2020 09:21:50 +0900 (JST)
With backout gcm.c,earmv6hf make succeeded on RaspberryPi,
this change deleted on 3.49.1 to 3.49.2
earmv7hf still failed. need fix ifdefs.
--- nss/lib/freebl/gcm.c.orig 2020-01-24 07:22:25.000000000 +0900
+++ nss/lib/freebl/gcm.c 2020-04-21 13:40:49.562785558 +0900
@@ -21,8 +21,11 @@
#if defined(__aarch64__) && defined(IS_LITTLE_ENDIAN) && \
(defined(__clang__) || defined(__GNUC__) && __GNUC__ > 6)
#define USE_ARM_GCM
-#elif defined(__arm__) && defined(IS_LITTLE_ENDIAN)
-/* We don't test on big endian platform, so disable this on big endian. */
+#elif defined(__arm__) && defined(IS_LITTLE_ENDIAN) && \
+ (defined(__ARM_NEON__) || defined(__ARM_NEON))
+/* We don't test on big endian platform, so disable this on big endian.
+ * Also, we don't check whether compiler support NEON well, so this uses
+ * that compiler uses -mfpu=neon only. */
#define USE_ARM_GCM
#endif
From: "Tobias Nygren" <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55158 CVS commit: pkgsrc/devel/nss
Date: Sun, 26 Apr 2020 21:43:43 +0000
Module Name: pkgsrc
Committed By: tnn
Date: Sun Apr 26 21:43:43 UTC 2020
Modified Files:
pkgsrc/devel/nss: distinfo
Added Files:
pkgsrc/devel/nss/patches: patch-nss_coreconf_NetBSD.mk
Log Message:
nss: fix wrong value of CPU_ARCH on NetBSD/evbarm-earmv7hf
Fixes PR pkg/53353 and maybe also PR pkg/55158
To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 pkgsrc/devel/nss/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/nss/patches/patch-nss_coreconf_NetBSD.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Sun, 26 Apr 2020 21:52:22 +0000
State-Changed-Why:
The package builds for me on earmv7hf with the latest change.
Is it OK for you or do we need the ifdef changes also?
From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@netbsd.org, tnn@NetBSD.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/55158 (nss 3.51 compile failed on earmv6hf/v7hf and
aarch64)
Date: Mon, 27 Apr 2020 09:23:03 +0900 (JST)
From: tnn@NetBSD.org
Subject: Re: pkg/55158 (nss 3.51 compile failed on earmv6hf/v7hf and aarch64)
Date: Sun, 26 Apr 2020 21:52:22 +0000 (UTC)
> The package builds for me on earmv7hf with the latest change.
> Is it OK for you or do we need the ifdef changes also?
build well on earmv6hf/v7hf/aarch64,OK for me,thanx!
earmv6hf: NetBSD 9.99.56 rpi3
http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/earmv6hf/2020-04-18/nss-3.51nb1.tgz
earmv7hf: NetBSD 9.99.56 rpi3B+
http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/earmv7hf/2020-04-18/nss-3.51nb1.tgz
aarch64: NetBSD 9.99.56 pinebook
http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/aarch64/2020-04-18/nss-3.51nb1.tgz
--
Jun Ebihara
State-Changed-From-To: feedback->closed
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Mon, 27 Apr 2020 12:44:04 +0000
State-Changed-Why:
Submitter confirmed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.