Environment
IBM AIX 5.1L (PowerPC)
Description
when compiling gnupg with gcc, make fails with the following error :
mpih-div.c: In function `mpihelp_mod_1':
mpih-div.c:87: warning: implicit declaration of function `__udiv_w_sdiv'
mpih-div.c:103: error: can't find a register in class `MQ_REGS' while
reloading `asm'
mpih-div.c:103: error: can't find a register in class `MQ_REGS' while
reloading `asm'
mpih-div.c:108: error: can't find a register in class `MQ_REGS' while
reloading `asm'
mpih-div.c:108: error: can't find a register in class `MQ_REGS' while
reloading `asm'
mpih-div.c:137: error: can't find a register in class `MQ_REGS' while
reloading `asm'
mpih-div.c:137: error: can't find a register in class `MQ_REGS' while
reloading `asm'
In fact, gnupg relies on the _ARCH_PPC definition in order to adapt his code to the powerpc platform. But gcc doesn't set this declaration by default
How To Repeat
./configure
make
Fix
Add -mcpu=powerpc to CFLAGS and CPPFLAGS solve the problem. A good solution would be to test defines provided by gcc and add this flag on AIX
Release Note
There is a note in the README file since some time.