pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/52444: security/libgcrypt 1.8.0 fails to build on evbarmv6hf (Raspberry Pi B+)
The following reply was made to PR pkg/52444; it has been noted by GNATS.
From: Marek Benc <dusxmt%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/52444: security/libgcrypt 1.8.0 fails to build on evbarmv6hf
(Raspberry Pi B+)
Date: Mon, 31 Jul 2017 13:06:55 +0200
This might be interesting, the compile condition within
libgcrypt-1.8.0/cipher/rijndael-armv8-aarch32-ce.S is:
#if defined(HAVE_ARM_ARCH_V6) && defined(__ARMEL__) && \
defined(HAVE_COMPATIBLE_GCC_ARM_PLATFORM_AS) && \
defined(HAVE_GCC_INLINE_ASM_AARCH32_CRYPTO)
Though obviously, this file requires armv8, not just armv6. Looking at
config.in, it seems that ENABLE_ARM_CRYPTO_SUPPORT should be included in
the condition to prevent it from being built, I'll try and see if it helps.
On 07/31/2017 01:00 PM, Marek Benc wrote:
> The following reply was made to PR pkg/52444; it has been noted by GNATS.
>
> From: Marek Benc <dusxmt%gmx.com@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc:
> Subject: Re: pkg/52444: security/libgcrypt 1.8.0 fails to build on evbarmv6hf
> (Raspberry Pi B+)
> Date: Mon, 31 Jul 2017 12:59:13 +0200
>
> On 07/31/2017 11:15 AM, Leonardo Taccari wrote:
> > The following reply was made to PR pkg/52444; it has been noted by GNATS.
> >
> > From: Leonardo Taccari <leot%NetBSD.org@localhost>
> > To: gnats-bugs%NetBSD.org@localhost
> > Cc:
> > Subject: Re: pkg/52444: security/libgcrypt 1.8.0 fails to build on evbarmv6hf (Raspberry Pi B+)
> > Date: Mon, 31 Jul 2017 11:11:24 +0200
> >
> > Hello Marek,
> >
> > dusxmt%gmx.com@localhost writes:
> > > >Number: 52444
> > > >Category: pkg
> > > >Synopsis: security/libgcrypt 1.8.0 fails to build on evbarmv6hf (=
> > Raspberry Pi B+)
> > > >Confidential: no
> > > >Severity: critical
> > > >Priority: medium
> > > >Responsible: pkg-manager
> > > >State: open
> > > >Class: sw-bug
> > > >Submitter-Id: net
> > > >Arrival-Date: Mon Jul 31 07:50:00 +0000 2017
> > > >Originator: Marek Benc
> > > >Release: Current pkgsrc, 31. 7. 2017
> > > >Organization:
> > > >Environment:
> > > NetBSD dooshki-raspi.homenetwork 7.1 NetBSD 7.1 (RPI.201703111743Z) evba=
> > rm
> > > >Description:
> > > My machine fails to upgrade security/libgcrypt from 1.7.7 to 1.8.0.
> > > =
> >
> > > It appears that it attempts to build some code hand-optimized for ARMv8 =
> > (configure refers to it as "Try using ARMv8 crypto: yes"), but my machi=
> > ne is ARMv6, and the compiler catches it and aborts because of it.
> > > =
> >
> > > [...]
> > > config.status: executing gcrypt-conf commands
> > > =
> >
> > > Libgcrypt v1.8.0 has been configured as follows:
> > > =
> >
> > > Platform: NetBSD (armv6--netbsdelf-eabihf)
> > > Hardware detection module: hwf-arm
> > > [...]
> > > Try using Intel AVX: n/a
> > > Try using Intel AVX2: n/a
> > > Try using ARM NEON: yes
> > > Try using ARMv8 crypto: yes
> > >
> >
> > Can you please try the following patch?:
> >
> > https://www.NetBSD.org/~leot/pkgsrc-patches/libgcrypt-pkg52444.patch
> >
> > Also attached here in-line:
> >
>
> Unfortunately, it didn't help: https://paste.debian.net/979056/
>
> However, when I changed
>
> .if ${MACHINE_ARCH} =3D=3D "arm"
>
> to
>
> .if ${MACHINE_ARCH} == "earmv6hf"
>
> The settings did get passed to configure, but it still decided to
> compile that file for some reason, thus failing:
>
> https://paste.debian.net/979057/
>
> > -----------------8<-----------------8<-----------------8<-----------------
> > Disable NEON and ARMv8 optimizations.
> >
> > Should address PR pkg/52444 reported by Marek Benc.
> >
> > Index: Makefile
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > RCS file: /cvsroot/pkgsrc/security/libgcrypt/Makefile,v
> > retrieving revision 1.91
> > diff -u -p -r1.91 Makefile
> > --- Makefile 23 Jul 2017 17:27:52 -0000 1.91
> > +++ Makefile 31 Jul 2017 09:02:53 -0000
> > @@ -54,6 +54,11 @@ CONFIGURE_ENV+=3D gcry_cv_gcc_inline_asm_
> > . endif
> > .endif
> > =
> >
> > +.if ${MACHINE_ARCH} =3D=3D "arm"
> > +CONFIGURE_ARGS+=3D --disable-neon-support
> > +CONFIGURE_ARGS+=3D --disable-arm-crypto-support
> > +.endif
> > +
> > SUBST_CLASSES+=3D rpath
> > SUBST_FILES.rpath=3D src/libgcrypt-config.in
> > SUBST_STAGE.rpath=3D pre-configure
> >
> >
>
> --
> Marek
>
>
--
Marek
Home |
Main Index |
Thread Index |
Old Index