Created attachment 153152 [details]
fix build on armv6
The port currently fails to build:
mpih-div.c:99:3: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
UDIV_QRNND_PREINV(dummy, r, r,
The patch in this PR fixes the build:
build log with my patch applied:
Auto-assigned to maintainer kuriyama@FreeBSD.org
Does this build normally for amd64/i386?
I'd like an eyeball on these ASM changes please.
(In reply to Sean Bruno from comment #2)
build logs for i386/amd64:
This is still an issue.
It looks like the mpi code in the security/libgcrypt port used to have the same problems, but now it builds on armv6 with just a few warnings, nothing major. Perhaps whatever was done to make mpi build on armv6 in the libgcrypt port should be mirrored in the gnupg1 port?
(In reply to mike from comment #6)
Apologies; my suggestion was redundant. I commented before noticing that the libgcrypt patch was referenced by the OP. I think it should be OK to commit this. We need to get this port working for mail/spamassassin.
A commit references this bug:
Date: Fri Nov 27 17:52:56 UTC 2015
New revision: 402488
security/gnupg1: fix build on arm
Submitted by: Mikael Urankar <firstname.lastname@example.org>
Approved by: kuriyama (maintainer, timeout)