Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jan 2020 22:12:14 +0100
From:      =?UTF-8?Q?Mika=C3=ABl_Urankar?= <mikael.urankar@gmail.com>
To:        Renato Botelho <garga@freebsd.org>
Cc:        Jan Beich <jbeich@freebsd.org>, ports-committers@freebsd.org,  svn-ports-all@freebsd.org, svn-ports-head@freebsd.org,  Glen Barber <gjb@freebsd.org>
Subject:   Re: svn commit: r524147 - in head/security: ca_root_nss nss
Message-ID:  <CAJwjRmS_S5L-7xHB8E%2B_D9FucSzVWL3U_omf9nMZOpu5zq42hQ@mail.gmail.com>
In-Reply-To: <35c29ce8-67ab-61ea-b895-f70d2b6044fa@FreeBSD.org>
References:  <202001260020.00Q0K1cG087750@repo.freebsd.org> <35c29ce8-67ab-61ea-b895-f70d2b6044fa@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Le lun. 27 janv. 2020 =C3=A0 19:16, Renato Botelho <garga@freebsd.org> a =
=C3=A9crit :
>
> On 25/01/20 21:20, Jan Beich wrote:
> > Author: jbeich
> > Date: Sun Jan 26 00:20:01 2020
> > New Revision: 524147
> > URL: https://svnweb.freebsd.org/changeset/ports/524147
> >
> > Log:
> >    security/nss: update to 3.49.2
> >
> >    Changes:   https://developer.mozilla.org/docs/Mozilla/Projects/NSS/N=
SS_3.49.2_release_notes
> >    Changes:   https://hg.mozilla.org/projects/nss/shortlog/NSS_3_49_2_R=
TM
> >    ABI:               https://abi-laboratory.pro/tracker/timeline/nss/
> >    Reported by:       Repology
>
> After this change it started failing to build on 11.3-STABLE armv6 with
> the following error:
>
> /nxb-bin/usr/bin/cc -o
> FreeBSD11.3_OPT.OBJ/FreeBSD_SINGLE_SHLIB/gcm-arm32-neon.o -c -std=3Dc99
> -O2 -pipe  -I/usr/local/include/nspr -fstack-protector-strong
> -fno-strict-aliasing   -fPIC -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR
> -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments
> -Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression
> -Werror -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
> -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
> -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
> -I./../dist/FreeBSD11.3_OPT.OBJ/include -I./../dist/public/
> -I./../dist/private/   -fPIC -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR
> -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments
> -Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression
> -Werror -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
> -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
> -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
> -I../../dist/FreeBSD11.3_OPT.OBJ/include -I../../dist/public/
> -I../../dist/private/   -fPIC -Wall -Wno-switch -DFREEBSD
> -DHAVE_STRERROR -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments
> -Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression
> -Werror -DXP_UNIX -DSHLIB_SUFFIX=3D\"so\" -DSHLIB_PREFIX=3D\"lib\"
> -DSHLIB_VERSION=3D\"3\" -DSOFTOKEN_SHLIB_VERSION=3D\"3\"
> -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
> -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
> -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DFREEBL_LOWHASH
> -DUSE_HW_AES -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
> -DMP_USE_UINT_DIGIT -DSHA_NO_LONG_LONG  -DKRML_NOUINT128
> -DMP_API_COMPATIBLE -I../../../dist/FreeBSD11.3_OPT.OBJ/include
> -I../../../dist/public/nss -I../../../dist/private/nss -Impi -Iecl
> -Iverified   -fPIC -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR
> -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments
> -Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression
> -Werror -DXP_UNIX -DSHLIB_SUFFIX=3D\"so\" -DSHLIB_PREFIX=3D\"lib\"
> -DSHLIB_VERSION=3D\"3\" -DSOFTOKEN_SHLIB_VERSION=3D\"3\"
> -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
> -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
> -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DFREEBL_LOWHASH
> -DUSE_HW_AES -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
> -DMP_USE_UINT_DIGIT -DSHA_NO_LONG_LONG  -DKRML_NOUINT128
> -DMP_API_COMPATIBLE -I../../../dist/FreeBSD11.3_OPT.OBJ/include
> -I../../../dist/public/nss -I../../../dist/private/nss -Impi -Iecl
> -Iverified  -mfpu=3Dneon gcm-arm32-neon.c
> In file included from gcm-arm32-neon.c:16:
> /nxb-bin/usr/lib/clang/8.0.1/include/arm_neon.h:28:2: error: "NEON
> support not enabled"
> #error "NEON support not enabled"
>   ^
> 1 error generated.
> gmake[4]: *** [../../coreconf/rules.mk:393:
> FreeBSD11.3_OPT.OBJ/FreeBSD_SINGLE_SHLIB/gcm-arm32-neon.o] Error 1
> gmake[4]: Leaving directory
> '/wrkdirs/usr/ports/security/nss/work/nss-3.49.2/nss/lib/freebl'
> gmake[3]: *** [Makefile:655: libs] Error 2
> gmake[3]: Leaving directory
> '/wrkdirs/usr/ports/security/nss/work/nss-3.49.2/nss/lib/freebl'
> gmake[2]: *** [../coreconf/rules.mk:101: libs] Error 2
> gmake[2]: Leaving directory
> '/wrkdirs/usr/ports/security/nss/work/nss-3.49.2/nss/lib'
> gmake[1]: *** [coreconf/rules.mk:101: libs] Error 2
> gmake[1]: Leaving directory
> '/wrkdirs/usr/ports/security/nss/work/nss-3.49.2/nss'
> *** Error code 1

Try this patch : http://mikael.urankar.free.fr/FreeBSD/arm/security_nss.pat=
ch
Clang only compiles neon code for armv7+, we need to compile
gcm-arm32-neon.c with march=3Darmv7.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJwjRmS_S5L-7xHB8E%2B_D9FucSzVWL3U_omf9nMZOpu5zq42hQ>