You're correct, it seems to be a compiler optimization issue. Forcing the
openssl build to use -O1 instead of -O3 (-O2 also fails) resolves the issue.
This does not appear to be a problem with the same version of the compiler
on another 64-bit platform, Linux x86_64, so at first blush it appears that
gcc (4.x only?) has issues with 64-bit ABIs on IA64 (the same problem
occurred on Linux IA64 as well).

I suppose the only thing to be done on the openssl side of things, if
anything, is to adjust the linux-ia64 and hpux64-ia64-gcc targets to use -O1
instead of -O3.

To what extent is openssl tested on different platforms and with which
compilers for each release?

> From: Andy Polyakov <[EMAIL PROTECTED]>
> Reply-To: <[email protected]>
> Date: Sun, 21 Oct 2007 16:50:53 +0200
> To: <[email protected]>
> Subject: Re: 0.9.8g testsuite failure: BN_GF2m_mod_mul
> 
>> OS: HP-UX hpux-ia6 B.11.31 U ia64 (HP-UX Itanium IA64)
>> Compiler: gcc 4.2.1 (binary install from HP-UX Porting and Archiving Center)
>> GMP: 4.2.2 built from sources with ABI=64
>>      CFLAGS=-fno-strict-aliasing -fno-omit-frame-pointer -O2
>> 
>> OpenSSL: CFLAGS=-fno-strict-aliasing -fno-omit-frame-pointer -O2
>>         ./Configure hpux64-ia64-gcc
>> 
>> Fails in testsuite:
>> 
>> test BN_GF2m_mod_mul
>> GF(2^m) modular multiplication test failed!
>> 
>> 
>> Same build works fine with GMP built with ABI=32 and OpenSSL configured with
>> hpux-ia64-gcc.
> 
> First of all I find it hard to believe that it has anything to do with
> GMP. Secondly is there evidence that it's not a compiler bug? README
> mentions that you're expected to test removing optimization flags. If it
> helps, then there is little/nothing we can do. A.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [email protected]
> Automated List Manager                           [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to