Page MenuHome GnuPG

Compilation problems on AIX 5.1
Closed, ResolvedPublic

Description

Release: 1.2.4

Environment

IBM AIX 5.1 - AIX fred 1 5 0007B06F4C00

Using GCC 3.3.2, GNU Make

Description

Will not compile...

make[2]: Entering directory `/opt/OXRS/Sources/gnupg-1.2.4/mpi'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -g -O2 -Wall -MT mpih-div.o -MD -MP -MF ".deps/mpih-div.Tpo" \

-c -o mpih-div.o `test -f 'mpih-div.c' || echo './'`mpih-div.c; \

then mv -f ".deps/mpih-div.Tpo" ".deps/mpih-div.Po"; \
else rm -f ".deps/mpih-div.Tpo"; exit 1; \
fi
mpih-div.c: In function `mpihelp_mod_1':
mpih-div.c:86: warning: implicit declaration of function `__udiv_w_sdiv'
mpih-div.c:100: error: can't find a register in class MQ_REGS' while reloading asm'
mpih-div.c:100: error: can't find a register in class MQ_REGS' while reloading asm'
mpih-div.c:106: error: can't find a register in class MQ_REGS' while reloading asm'
mpih-div.c:106: error: can't find a register in class MQ_REGS' while reloading asm'
mpih-div.c:136: error: can't find a register in class MQ_REGS' while reloading asm'
mpih-div.c:136: error: can't find a register in class MQ_REGS' while reloading asm'
make[2]: * [mpih-div.o] Error 1
make[2]: Leaving directory `/opt/OXRS/Sources/gnupg-1.2.4/mpi'
make[1]:
* [all-recursive] Error 1
make[1]: Leaving directory `/opt/OXRS/Sources/gnupg-1.2.4'
make: *** [all] Error 2

Fix

I hear reports that IBM Visual Age C does not experience the same problems...

Event Timeline

AFAIK, this is a problem with a mixed toolchain; i.e. using gcc with the AIX as(1).

Nothing we can do about it. It is a toolchain problem.

The problem is described in the README file along with a
solution.

I was wrong. The problem is that gcc does not define ARCH_PPC but our code relies on that.

werner removed a project: Stalled.