Page MenuHome GnuPG

build failure on mips with gcc 4.4
Closed, ResolvedPublic

Description

Hi,

Builds on mips and mipsel architectures fail with below error message. This is
diagnosed to be because gcc removed the 'h' constraint for MIPS in gcc-4.4.x
versions.

Attached patch fixes it for us; kindly received from Florian Fainelli
<florian@alphacore.org> of the OpenWRT project:
https://dev.openwrt.org/browser/packages/utils/gnupg/patches/001-mips_gcc4.4.patch

thanks,
Thijs

gcc -DHAVE_CONFIG_H -I. -I../../mpi -I.. -I.. -I../../include -g -O2 -Wall
-Wno-pointer-sign -MT mpih-div.o -MD -MP -MF .deps/mpih-div.Tpo -c -o mpih-div.o
../../mpi/mpih-div.c
../../mpi/mpih-div.c: In function 'mpihelp_mod_1':
../../mpi/mpih-div.c:99: error: impossible constraint in 'asm'
../../mpi/mpih-div.c:99: error: impossible constraint in 'asm'
../../mpi/mpih-div.c:105: error: impossible constraint in 'asm'
../../mpi/mpih-div.c:105: error: impossible constraint in 'asm'
../../mpi/mpih-div.c:135: error: impossible constraint in 'asm'
../../mpi/mpih-div.c:135: error: impossible constraint in 'asm'

Details

Version
1.4.10

Related Objects

Event Timeline

Fixed in svn 5345. Slightly different patch to avoid defining a symbol from the
GNUC name space.

werner claimed this task.