[openssl.org #1493] -march=ultrasparc doesn't work on Solaris 9

2007-02-24 Thread Stephen Henson via RT
 [guest - Sat Feb 24 04:06:10 2007]:
 
 
 -mcpu was replaced with -march in the 0.9.7 branch only.  This change
 was never made to the 0.9.8 branch (which builds successfully for me).
 If
 I switch -march back to -mcpu in the generated Makefile then
 everything works again.
 
 

Can you upgrade to a newer version of gcc? More recent versions of gcc
give endless warnings about the -mcpu option being deprecated.
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: [openssl.org #1493] -march=ultrasparc doesn't work on Solaris 9

2007-02-24 Thread [EMAIL PROTECTED] via RT
According to http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Option- 
Summary.html#Option-Summary:

SPARC Options

   -mcpu=cpu-type
   -mtune=cpu-type
   -mcmodel=code-model
   -m32  -m64  -mapp-regs  -mno-app-regs
   -mfaster-structs  -mno-faster-structs
   -mfpu  -mno-fpu  -mhard-float  -msoft-float
   -mhard-quad-float  -msoft-quad-float
   -mimpure-text  -mno-impure-text  -mlittle-endian
   -mstack-bias  -mno-stack-bias
   -munaligned-doubles  -mno-unaligned-doubles
   -mv8plus  -mno-v8plus  -mvis  -mno-vis
   -threads -pthreads -pthread

-mcpu wasn't deprecated on SPARC.  I think it was only deprecated  
on i386.


__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: [openssl.org #1493] -march=ultrasparc doesn't work on Solaris 9

2007-02-24 Thread [EMAIL PROTECTED] via RT
 Can you upgrade to a newer version of gcc? More recent versions of gcc
 give endless warnings about the -mcpu option being deprecated.

I'm running gcc 4.1.2, the latest release according to http:// 
gcc.gnu.org/


__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


[openssl.org #1493] -march=ultrasparc doesn't work on Solaris 9

2007-02-24 Thread Stephen Henson via RT
 
 -mcpu wasn't deprecated on SPARC.  I think it was only deprecated  
 on i386.
 

Seems that some platforms support -mcpu and others -march, ugh. I've
reverted the sparc changes to the Configure script. Please try this patch:

http://cvs.openssl.org/chngview?cn=15967

or the next snapshot.

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: [openssl.org #1493] -march=ultrasparc doesn't work on Solaris 9

2007-02-24 Thread Stefan . Neis
Hi,

  -mcpu wasn't deprecated on SPARC.  I think it was only deprecated
  on i386.
 

 Seems that some platforms support -mcpu and others -march, ugh. I've
 reverted the sparc changes to the Configure script.

BTW, you might want to double check (in general), whether you want to use
-march, -mtune, or -mcpu flags. It's apparently not only platform/version
specific, which of the three flags are supported, but especially the
meaning of -mcpu seems to depend on the platform as well. E.g. on
Intel, -mcpu seems to behave like Sparc's -mtune option (optimize
e.g. scheduling for that CPU but don't use CPU specific commands) while
Sparc's -mcpu option behaves like Intel's -march option (do use CPU specific
commands).
BTW, at least for gcc-3.3.5, the info file does not state anything about
-mcpu being deprecated on Intel, on the contrary, -mcpu and -march even
have different meaning. What is mentioned as deprecated, though, is the
use of -m386, -mpentium and the like which should be replaced by -mcpu=i386,
-mcpu=pentium and the like.

Regards,
Stefan



__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: [openssl.org #1493] -march=ultrasparc doesn't work on Solaris 9

2007-02-24 Thread Dr. Stephen Henson
On Sat, Feb 24, 2007, [EMAIL PROTECTED] wrote:

 Hi,
 
   -mcpu wasn't deprecated on SPARC.  I think it was only deprecated
   on i386.
  
 
  Seems that some platforms support -mcpu and others -march, ugh. I've
  reverted the sparc changes to the Configure script.
 
 BTW, you might want to double check (in general), whether you want to use
 -march, -mtune, or -mcpu flags. It's apparently not only platform/version
 specific, which of the three flags are supported, but especially the
 meaning of -mcpu seems to depend on the platform as well. E.g. on
 Intel, -mcpu seems to behave like Sparc's -mtune option (optimize
 e.g. scheduling for that CPU but don't use CPU specific commands) while
 Sparc's -mcpu option behaves like Intel's -march option (do use CPU specific
 commands).
 BTW, at least for gcc-3.3.5, the info file does not state anything about
 -mcpu being deprecated on Intel, on the contrary, -mcpu and -march even
 have different meaning. What is mentioned as deprecated, though, is the
 use of -m386, -mpentium and the like which should be replaced by -mcpu=i386,
 -mcpu=pentium and the like.
 

On gcc 4.02, i386-redhat-linux using -mcpu gives the warning:

`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: [openssl.org #1493] -march=ultrasparc doesn't work on Solaris 9

2007-02-24 Thread [EMAIL PROTECTED] via RT
 Seems that some platforms support -mcpu and others -march, ugh. I've
 reverted the sparc changes to the Configure script. Please try this patch:
 
 http://cvs.openssl.org/chngview?cn=15967
 
 or the next snapshot.

Works great.  Thanks!


__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


[openssl.org #1493] -march=ultrasparc doesn't work on Solaris 9

2007-02-23 Thread via RT
I'm trying to build 0.9.7m with gcc 4.1.2 on Solaris 9 as follows:

$ ./Configure --prefix=/opt/openssl-0.9.7m shared solaris-sparcv9-gcc
$ make
[...]
making all in crypto...
make[1]: Entering directory `/src/security/openssl-0.9.7m/crypto'
gcc -I. -I.. -I../include -DOPENSSL_SYSNAME_ULTRASPARC -fPIC -DOPENSSL_PIC 
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -
DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -m32 -march=ultrasparc -O3 -fomit-frame-pointer 
-Wall -DB_ENDIAN -DBN_DIV2W -DMD5_ASM   -c -
o cryptlib.o cryptlib.c
cc1: error: unrecognized command line option -march=ultrasparc
make[1]: *** [cryptlib.o] Error 1
make[1]: Leaving directory `/src/security/openssl-0.9.7m/crypto'
make: *** [sub_all] Error 1

According to:

http://marc2.theaimsgroup.com/?l=openssl-cvsm=116895528425044w=2

-mcpu was replaced with -march in the 0.9.7 branch only.  This change was never 
made to the 0.9.8 branch (which builds successfully for me).  If 
I switch -march back to -mcpu in the generated Makefile then everything works 
again.
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]