Created attachment 153152 [details] fix build on armv6 Hi, 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: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190848 build log with my patch applied: http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/gnupg1-1.4.18_2.log
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: http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/gnupg1-1.4.19_101i386.log http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/gnupg1-1.4.19_101amd64.log
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.
take
A commit references this bug: Author: mmoll Date: Fri Nov 27 17:52:56 UTC 2015 New revision: 402488 URL: https://svnweb.freebsd.org/changeset/ports/402488 Log: security/gnupg1: fix build on arm PR: 197793 Submitted by: Mikael Urankar <mikael.urankar@gmail.com> Approved by: kuriyama (maintainer, timeout) Changes: head/security/gnupg1/files/patch-mpi_longlong.h
commited, thanks!