Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openssl-0.9.7d-r1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
smart
Guru
Guru


Joined: 19 Nov 2002
Posts: 455

PostPosted: Wed Jul 07, 2004 5:36 pm    Post subject: openssl-0.9.7d-r1 Reply with quote

Just had a fiddly experience with that one...
my gcc 3.3.3 failed compiling tmdiff.c in the crypto folder. The assembler was complaining that as target, v9 is specified where it expects v9a or v9b.
In the "Configure" script in the main directory (work/openssl-0.9.7d) there are specifications for the compilers commandline options. Amongst these, there is an advice to gcc's assembler that goes like this:
-Wa,Asparcv8plus
in the section for "linux-sparcv9". I changed it to
-Wa,Av9a
and it seems to do it.
It succeeded on all its builtin tests so i assume its fine.
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Thu Jul 08, 2004 2:34 am    Post subject: Reply with quote

What are your CFLAGS and CHOST in make.conf?
Back to top
View user's profile Send private message
smart
Guru
Guru


Joined: 19 Nov 2002
Posts: 455

PostPosted: Thu Jul 08, 2004 5:53 pm    Post subject: Reply with quote

CHOST="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -mvis -pipe -fomit-frame-pointer"
Blade 100
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Fri Jul 09, 2004 12:01 am    Post subject: Reply with quote

what gcc are you using? -mvis doesn't seem to be a valid flag from what I can see.
Back to top
View user's profile Send private message
smart
Guru
Guru


Joined: 19 Nov 2002
Posts: 455

PostPosted: Fri Jul 09, 2004 6:31 am    Post subject: Reply with quote

gcc 3.3.3

-mvis

enables comiling for the VIS instruction set, which is a similar extension like MMX or 3Dnow.

http://www.sun.com/processors/UltraSPARC-IIe/specs.xml#ARCHITECTURE

Rechecking i must admit tho, that it seems not available before gcc 3.4.0

http://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/SPARC-Options.html#SPARC%20Options

However, all other compilations seem to ignore it, if it is really not in 3.3.3, and go fine. At the same time, the openssl 0.9.7d configure scripts themselves activate -mvis for you if you don't have it in your options.
Back to top
View user's profile Send private message
smart
Guru
Guru


Joined: 19 Nov 2002
Posts: 455

PostPosted: Fri Sep 10, 2004 7:17 pm    Post subject: Reply with quote

Could this be applied to gentoo pls ? Just hit the same thing again when i tried to recompile with new glibc....
Back to top
View user's profile Send private message
smart
Guru
Guru


Joined: 19 Nov 2002
Posts: 455

PostPosted: Sat Sep 11, 2004 5:43 pm    Post subject: Reply with quote

...just found the same thing in tvtime
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum