gnupg 1.4 built with gcc 7.0.1 fails the tests on ARM
Closed, ResolvedPublic

Description

When Fedora moved to using gcc 7.0.1, the gnupg 1.4 ARM build started failing the tests. If it is built using -O1 they pass, if you use -O2 they fail. I filed a bug with our gcc maintainers and they tracked it down to the old mpi/longlong.h header. See https://bugzilla.redhat.com/show_bug.cgi?id=1424619 and the fix is supposed to be https://gcc.gnu.org/ml/gcc-patches/2005-10/msg00546.html

I see that longlong.h has been patched for libgcrypt (https://dev.gnupg.org/rC8aa4f2161cf643ce36d87d2e2786b546736f8232) but that it is slightly different. I'd give patching it a try myself, but I don't know anything about ARM assembly or what _CLOBBER_CC is supposed to do.

Could someone take a look at this and port the changes to the 1.4 stable branch? Thanks!

bcl created this task.May 26 2017, 10:56 PM
werner added a project: asm.Jun 1 2017, 9:38 PM
werner assigned this task to marcus.Jun 7 2017, 1:15 PM
werner triaged this task as Normal priority.
werner added a project: gnupg (gpg14).
werner added a subscriber: werner.

Marcus, can you please check this?

Should be fixed in 782f804765b6f4226fd77843e59f57dcca61b6fb, can you verify that? Thanks!

marcus changed the task status from Open to Testing.Jul 4 2017, 11:25 PM
marcus closed this task as Resolved.Aug 15 2017, 5:44 PM

It's been a month since last release, no error reports so far.