Paul Tedaldi wrote:
installation of gpc-20010111 on AIX 4.3.3 had the following problems:
- while linking gpc1 the TOC overflows: ld: d: 0711-781 ERROR: TOC overflow. TOC size: 67732 Maximum size: 65536 The problem can be circumvented by adding the "-Wl,'-bbigtoc'" flag to LDFLAG (assuming gcc is used to call ld, for xlc it's just "-bbigtoc") It strikes me as odd that all other gcc compilers (gcc, g++, f77, objective c and java do not overflow the TOC during install.
Apparently they're less complex...
while compiling the RTS with xgpc, rts/internal.pas produces invalid assembler code. rts/internal.pas contains
procedure RunFinalizers (var AtExitProcs : PProcList); asmname 'gpc$runfinaliz
ers';
The AIX assembler does not allow "$" in symbols ! After changing "gpc$runfinalizers" to "_p_runfinalizers" the RTS could be built. Of course the magic name is now destroyed.
Is it possible to fix the above problems in the distribution so that GPC can be installed on AIX in a standard manner ?
I'm changing the latter (the magic was supposed to be used for debugging, but hasn't really spread yet, so this doesn't seem to be a problem).
I don't see what we could do about the former, except simplifying GPC (which is planned, anyway, but will not happen too soon), or documenting the issue...
Frank