On Fri, Mar 18, 2016 at 1:44 PM, Bill Allombert <Bill.Allombert@math.u-bordeaux.fr> wrote:
On Fri, Mar 18, 2016 at 01:35:18PM -0400, Igor Schein wrote:
> On Fri, Mar 18, 2016 at 1:02 PM, Bill Allombert <
> Bill.Allombert@math.u-bordeaux.fr> wrote:
>
> > On Fri, Mar 18, 2016 at 10:43:54AM -0400, Igor Schein wrote:
> > > Actually, this one is more pressing - happens with the stock g++
> > compiler:
> >
> > Which one ? I cannot reproduce this with g++ 5.3 and g++ 6
> > gcc version 6.0.0 20160125 (experimental) [trunk revision 232803]
> > (Debian 20160125-1)
> >
> > Cheers,
> > Bill
> >
>
> g++-4.8.2

Is it on Solaris ?  Then maybe you have different headers file than
on Linux. It would be nice to be able to reproduce them on the pari
server.

Cheers,
Bill.

I am not sure what you mean by "reproduce".  The errors are clearly Solaris-specific.
I built g++-5.3 on Solaris, and the errors still occur.  Here's the latest (shorter than before) list of compilation errors:

../src/basemath/arith2.c:1502:14: error: expected unqualified-id before numeric constant
../src/basemath/arith2.c:1547:31: error: invalid types ‘int[long unsigned int]’ for array subscript
../src/basemath/base2.c:663:17: error: expected unqualified-id before numeric constant
../src/basemath/base2.c:665:29: error: invalid conversion from ‘int’ to ‘GEN {aka long int*}’ [-fpermissive]
../src/basemath/base2.c:669:42: error: invalid conversion from ‘int’ to ‘GEN {aka long int*}’ [-fpermissive]
../src/basemath/buch2.c:3987:21: error: call of overloaded ‘log(long int&)’ is ambiguous
../src/basemath/modsym.c:608:52: error: call of overloaded ‘sqrt(long int&)’ is ambiguous
../src/basemath/modsym.c:688:24: error: call of overloaded ‘sqrt(pari_ulong&)’ is ambiguous
../src/basemath/polclass.c:446:19: error: call of overloaded ‘log(long int&)’ is ambiguous
../src/basemath/polclass.c:584:75: error: call of overloaded ‘sqrt(long unsigned int)’ is ambiguous
../src/basemath/polclass.c:613:77: error: call of overloaded ‘sqrt(long unsigned int)’ is ambiguous
../src/basemath/polclass.c:757:29: error: call of overloaded ‘log(long int)’ is ambiguous
../src/basemath/polclass.c:1235:22: error: call of overloaded ‘log(long int)’ is ambiguous
../src/basemath/polmodular.c:1873:23: error: call of overloaded ‘sqrt(long int)’ is ambiguous
../src/basemath/polmodular.c:2240:45: error: call of overloaded ‘sqrt(long int&)’ is ambiguous
../src/basemath/polmodular.c:3341:63: error: call of overloaded ‘sqrt(long int)’ is ambiguous

Almost there..

Thanks

Igor