Bill Allombert on Wed, 22 Feb 2012 21:10:02 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Compiling PARI on AIX 7.1


On Fri, Jan 27, 2012 at 10:37:34AM +0000, Michael Wulff wrote:
> Hello,
> 
> I am trying to build PARI 2.5.0 on AIX 7.1 TL01 64 Bit using vac compiler
> v11.1.0.8. Running "make gp" I first received the following error messages
> concerning three functions in pariinl.h:
> 
>         /usr/vac/bin/cc  -c -O2 -qtune=auto -qmaxmem=8192 -qlanglvl=ansi     -I. -I../src/headers -o mp.o mp.c
> "../src/headers/pariinl.h", line 1727.43: 1506-1332 (S) A function with return type "void" may not return a value of type "void".
> "../src/headers/pariinl.h", line 1730.41: 1506-1332 (S) A function with return type "void" may not return a value of type "void".
> "../src/headers/pariinl.h", line 1733.40: 1506-1332 (S) A function with return type "void" may not return a value of type "void".
> make: 1254-004 The error code from the last command is 1.
> 
> I then deleted three "return" statements from the lines quoted:
> 
> INLINE void
> F2v_clear(GEN x,long v) { return F2x_clear(x,v-1); }

Hello Michael,
We have just released PARI 2.5.1 which fix this problem.

> But now "make gp" runs into the following error:
> 
>         /usr/vac/bin/cc  -o gp-dyn -O2 -qtune=auto -qmaxmem=8192 -qlanglvl=ansi   --export-dynamic  gp.o gp_init.o gp_rl.o highlvl.o whatnow.o plotX.o plotport.o -rpath "/usr/local/source/pari-2.5.0"/Oaix-ppc:"/usr/local/lib":/usr/lib -L"/usr/local/source/pari-2.5.0/Oaix-ppc"  -lpari -L/usr/lib -lX11   -lm 
> /usr/vac/bin/cc: 1501-216 (W) command option --export-dynamic is not recognized - passed to ld
> /usr/vac/bin/cc: 1501-210 (W) command option t contains an incorrect subargument
> /usr/vac/bin/cc: 1501-228 (W) input file /usr/local/source/pari-2.5.0/Oaix-ppc:/usr/local/lib:/usr/lib not found
> make: 1254-004 The error code from the last command is 252.
> 
> Any ideas?

Yes, you should just remove --export-dynamic and
-rpath "/usr/local/source/pari-2.5.0"/Oaix-ppc:"/usr/local/lib":/usr/lib -L"/usr/local/source/pari-2.5.0/Oaix-ppc" from the compiler option.  

What linker are you using ?
Could you send us the whole output of Configure ?
This would allow us to improve support for AIX.

Cheers,
Bill.