Problems compiling on HPE NonStop
Randall S. Becker
rsbecker at nexbridge.com
Fri Dec 11 17:02:49 UTC 2020
On December 11, 2020 4:20 AM, Torbjörn wrote:
> To: Randall S. Becker <rsbecker at nexbridge.com>
> Cc: gmp-bugs at gmplib.org
> Subject: Re: Problems compiling on HPE NonStop
>
> OK, I see a pretty garbled output from the configure run (which incidentally
> seem to trigger some elementary limitations of the sed command). I also
> see an error message, which I understand comes from a compiler which
> presumably is c99 compiant.
>
> The error message makes little sense. The function __gmpz_inp_str_nowhite
> is declared in the included file gmp-impl.h. If it ends up not being declared,
> that must be due to the fact that we never ported GMP to "nonstop",
> resulting in that gmp-impl.h does not detect that stdio.h was included.
>
> You need to debug the sed problem and see if you can generalise the stdio.h
> detection mechanism of the include files.
The c99 compiler is pretty compliant, if I a bit strict.
The sed issue is pretty common on the platform but does not seem to block any other Open Source configure script. It looks like a ^M issue but I can't figure out how or why yet. We're on GNU sed 4.2.2, which I admit is 8 years old - outside of my control.
The issue seems to be in stdio.h, which exists. I think the critical missing line is as follows in gmp-h.in, which needs to be added.
|| defined (_STDIO) /* HPE NonStop */ \
With that change, compiles succeed, with a few warnings about the _dummy variable. make check all passes. I think we could consider GMP "ported" now.
Thanks,
Randall
More information about the gmp-bugs
mailing list