Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Can't emerge mplayer2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Tvin
n00b
n00b


Joined: 15 Sep 2010
Posts: 20

PostPosted: Mon Feb 20, 2012 10:25 am    Post subject: [solved] Can't emerge mplayer2 Reply with quote

I can't emerge mplayer2.

Output of 'emerge --info =media-video/mplayer2-2.0_p20111126' is here: http://paste.pocoo.org/show/553849/;
'emerge -pqv =media-video/mplayer2-2.0_p20111126' is here: http://paste.pocoo.org/show/553858/;
'cat /var/tmp/portage/media-video/mplayer2-2.0_p20111126/temp/build.log' is here: http://paste.pocoo.org/show/553860/.

I treid to re-emerge @installed set and mplayer2 with and without 'crypt' flag because the error pointed to gcry_control, but the result was just the same. What should I do?[/b]


Last edited by Tvin on Tue Feb 21, 2012 5:04 pm; edited 2 times in total
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 188
Location: Zurich, Switzerland

PostPosted: Mon Feb 20, 2012 10:41 am    Post subject: Reply with quote

What happens if you replace this :
Code:
CFLAGS="-march=amdfam10 -O2 -mabm -msse3 -msse4a -pipe"

with this:
Code:
CFLAGS="-march=native -O2 -pipe"

?
Back to top
View user's profile Send private message
Tvin
n00b
n00b


Joined: 15 Sep 2010
Posts: 20

PostPosted: Mon Feb 20, 2012 12:41 pm    Post subject: Reply with quote

If I try 'CFLAGS="-march=native -O2 -pipe" emerge mplayer2' I get the same error.

Or should I re-emerge @system and @world with new CFLAGS and then emerge mplayer2?
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 188
Location: Zurich, Switzerland

PostPosted: Mon Feb 20, 2012 1:57 pm    Post subject: Reply with quote

Quote:
Or should I re-emerge @system and @world with new CFLAGS and then emerge mplayer2?

that might help. should take only few hours on that phenom x6 1100T :-)

it has to be something about the CFLAGS.

I have seen ppl using gcc 4.5.3 and buldozer march having issues compiling.

http://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc.pdf

amdfam10, barcelona
AMD Family 10h core based CPUs with x86-64 instruction set sup-
port. (This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3DNow!,
enhanced 3DNow!, ABM and 64-bit instruction set extensions.)

do this test
Code:
risko@t3400 ~ $ echo 'int main(){return 0;}' > test.c && gcc -v -Q -march=native -O2 test.c -o test && rm test.c test


find this line
Code:
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.2/cc1 -v test.c -march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=core2 -dumpbase test.c -auxbase test -O2 -version -o /tmp/ccOqZn0l.s
GNU C (Gentoo 4.6.2 p1.1, pie-0.4.5) version 4.6.2 (x86_64-pc-linux-gnu)

it will tell you which march and mtune will the native autodetect and that should be the best for you.
Back to top
View user's profile Send private message
Tvin
n00b
n00b


Joined: 15 Sep 2010
Posts: 20

PostPosted: Mon Feb 20, 2012 7:40 pm    Post subject: Reply with quote

Thank you for your advise. I'll rebuild all my system tonight and tell you about results.
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 188
Location: Zurich, Switzerland

PostPosted: Mon Feb 20, 2012 8:42 pm    Post subject: Reply with quote

I have got newer gcc 4.6.2 than your 4.5.3 and similar CPU Phenom X6 1090T at home.
Here is what i get with the -march native

Code:
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.2/cc1 -v test.c -march=amdfam10 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10 -dumpbase test.c -auxbase test -O2 -version -o /tmp/ccz34uJ4.s



if you use the -march=amdfam10 specified manually the rest like sse3 sse4a etc is implied from this march and you don't need to specify it.


Last edited by Kaso_da_Zmok on Mon Feb 20, 2012 8:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 188
Location: Zurich, Switzerland

PostPosted: Mon Feb 20, 2012 8:48 pm    Post subject: Reply with quote

and also the same mplayer2 compiled fine on that 1090T

emerge --info media-video/mplayer2

http://pastebin.com/wwq7TSQC
Back to top
View user's profile Send private message
Tvin
n00b
n00b


Joined: 15 Sep 2010
Posts: 20

PostPosted: Tue Feb 21, 2012 1:10 pm    Post subject: Reply with quote

Kaso_da_Zmok, thank you for your help. You were absolutely right - changing cflags and re-emergering all packets solved the problem :)

I took my previous cflags from gentoo-wiki.com and other web resoucers, because an option 'march=native' is said to work incorrectly some times.

One more question: how can I change the topic name in order to add 'solved' word?
Back to top
View user's profile Send private message
Chiitoo
l33t
l33t


Joined: 28 Feb 2010
Posts: 887
Location: Here and Away Again

PostPosted: Tue Feb 21, 2012 3:31 pm    Post subject: Reply with quote

Tvin wrote:
One more question: how can I change the topic name in order to add 'solved' word?

By editing your initial post. ^^
_________________
Kind Regards,
~ The Noob Unlimited ~

Sore wa sore, kore wa kore.
Back to top
View user's profile Send private message
Meet Joe Black
n00b
n00b


Joined: 19 Mar 2005
Posts: 20

PostPosted: Sat Mar 31, 2012 8:40 am    Post subject: Reply with quote

LOL. Sometimes you just need to recompile media-libs/x264, media-video/ffmpeg etc. Then mplayer compiles without any problems. :wink:
_________________
Some strange sentences ? Grammar mistakes ?
I'll be happy if you write a short PM, I always try to improve my English.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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