> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Yuliya Shulman
> Sent: Thursday, July 17, 2008 7:27 AM
> To: openssl-users@openssl.org
> Subject: RE: Prime number generation on FreeBSD-sparc64
> 
> 
> Yes, I understand the list of prime numbers is known; unfortunately, I
> can only implement the solutions my management agrees with. This code
> path is used for login authentication and has been used for a while, so
> I guess everybody thinks it's OK to use it.
> 
> Unfortunately, I also spoke too soon. I had a hack in the code I forgot
> about. When I removed it, the program still hanged, regardless of
> whether I was using v7 or v8 flags. They don't build 32-bit executables,
> do they?


No, they tell gcc to use instructions that generate code for the
Sparc V8 chip which is a 32 bit chip.
I don't even know if cross compiling from 64 to 32 bit is even
supported on the Sparc version of gcc, and if it is if they use
the -m32 flag or not for it.  On the Intel port of gcc, gcc has to
be built to allow for 64 to 32 bit cross compiling, if it is not
then -m32 doesen't work on that either.  I suggested
-mv8 as a cheap hack.  Since it didn't work your going to have to
research gcc and see first if you can even do a cross compile on
the Sparc architecture, (likely you can) and if you can, what flags,
and if those flags don't work then your going to have to build your
own copy of gcc that has the extra stuff to allow for this to work.
(enable multilib?)  Lastly, I don't know if freebsd64 for the Sparc
will even run freebsd32 for the Sparc binaries.

I guess it boils down to muck with the compiler or fix the OpenSSL
code.  Sorry I don't have any more cheap fixes to try. :-(

Ted
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to