Unix Technical Forum

emerge mplayer failed

This is a discussion on emerge mplayer failed within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> I get this when emreging the new mplayer: msmpeg4.c: In function `msmpeg4_pred_dc': msmpeg4.c:720: error: can't find a register in ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 10:42 AM
Eggert Ehmke
 
Posts: n/a
Default emerge mplayer failed

I get this when emreging the new mplayer:

msmpeg4.c: In function `msmpeg4_pred_dc':
msmpeg4.c:720: error: can't find a register in class `GENERAL_REGS' while
reloading `asm'
make[1]: *** [msmpeg4.o] Error 1
make[1]: Leaving directory
`/tmp/portage/mplayer-1.0_pre6-r4/work/MPlayer-1.0pre6a/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2

!!! ERROR: media-video/mplayer-1.0_pre6-r4 failed.
!!! Function src_compile, Line 509, Exitcode 2


on a toshiba a40 laptop with Intel Celeron processor. Any idea?
Eggert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 10:42 AM
Arnd
 
Posts: n/a
Default Re: emerge mplayer failed

Eggert Ehmke wrote:
> I get this when emreging the new mplayer:
>
> msmpeg4.c: In function `msmpeg4_pred_dc':
> msmpeg4.c:720: error: can't find a register in class `GENERAL_REGS' while
> reloading `asm'
> make[1]: *** [msmpeg4.o] Error 1
> make[1]: Leaving directory
> `/tmp/portage/mplayer-1.0_pre6-r4/work/MPlayer-1.0pre6a/libavcodec'
> make: *** [libavcodec/libavcodec.a] Error 2
>
> !!! ERROR: media-video/mplayer-1.0_pre6-r4 failed.
> !!! Function src_compile, Line 509, Exitcode 2
>
>
> on a toshiba a40 laptop with Intel Celeron processor. Any idea?
> Eggert

Hi
I had the same problem, but playing with USE flags didn't help. Get the
sources and compile mplayer by hand. That helped me. Any other idea what
to do would help me also so I'll wait for further answers.
Arnd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 10:42 AM
Lars H.
 
Posts: n/a
Default Re: emerge mplayer failed

Hi, just what I do to make mplayer compile ok.

If you have any of there in /etc/make.conf then just uncomment these lines,
and emerge mplayer.

#CFLAGS="-O2 -mcpu=i686 -march=pentium4 -pipe"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed"

Remember to re-enable the lines after emerge of mplayer.

Eggert Ehmke wrote:

> I get this when emreging the new mplayer:
>
> msmpeg4.c: In function `msmpeg4_pred_dc':
> msmpeg4.c:720: error: can't find a register in class `GENERAL_REGS' while
> reloading `asm'
> make[1]: *** [msmpeg4.o] Error 1
> make[1]: Leaving directory
> `/tmp/portage/mplayer-1.0_pre6-r4/work/MPlayer-1.0pre6a/libavcodec'
> make: *** [libavcodec/libavcodec.a] Error 2
>
> !!! ERROR: media-video/mplayer-1.0_pre6-r4 failed.
> !!! Function src_compile, Line 509, Exitcode 2
>
>
> on a toshiba a40 laptop with Intel Celeron processor. Any idea?
> Eggert


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 10:43 AM
Lars H.
 
Posts: n/a
Default Re: emerge mplayer failed

Well,
"custom-cflags"
Have you looked at this USE flag for mplayer?

"cat /usr/portage/profiles/use.* |grep -i cflags"
media-video/mplayer:custom-cflags - Enables custom cflags

However, still this is what I do before emerging mplayer
Compiling mplayer by use of emerge works just fine for me when, running
without settings for CFLAGS and LDFLAGS (in /etc/make.conf - "emerge
--info" show ALL the current settings).



> Eggert Ehmke wrote:
>> I get this when emreging the new mplayer:
>>
>> msmpeg4.c: In function `msmpeg4_pred_dc':
>> msmpeg4.c:720: error: can't find a register in class `GENERAL_REGS' while
>> reloading `asm'
>> make[1]: *** [msmpeg4.o] Error 1
>> make[1]: Leaving directory
>> `/tmp/portage/mplayer-1.0_pre6-r4/work/MPlayer-1.0pre6a/libavcodec'
>> make: *** [libavcodec/libavcodec.a] Error 2
>>
>> !!! ERROR: media-video/mplayer-1.0_pre6-r4 failed.
>> !!! Function src_compile, Line 509, Exitcode 2
>>
>>
>> on a toshiba a40 laptop with Intel Celeron processor. Any idea?
>> Eggert

> Hi
> I had the same problem, but playing with USE flags didn't help. Get the
> sources and compile mplayer by hand. That helped me. Any other idea what
> to do would help me also so I'll wait for further answers.
> Arnd


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 10:43 AM
Eggert Ehmke
 
Posts: n/a
Default Re: emerge mplayer failed

"Lars H." <lars.hesdorf@mail.dk> schrieb:

>If you have any of there in /etc/make.conf then just uncomment these lines,
>and emerge mplayer.
>
>#CFLAGS="-O2 -mcpu=i686 -march=pentium4 -pipe"
>#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
>
>Remember to re-enable the lines after emerge of mplayer.


Ok, that did work, thanks. But is seems not to be a clean Gentoo way?
Eggert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 10:43 AM
Lars H.
 
Posts: n/a
Default Re: emerge mplayer failed

Eggert Ehmke wrote:

> "Lars H." <lars.hesdorf@mail.dk> schrieb:
>
>>If you have any of there in /etc/make.conf then just uncomment these
>>lines, and emerge mplayer.
>>
>>#CFLAGS="-O2 -mcpu=i686 -march=pentium4 -pipe"
>>#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
>>
>>Remember to re-enable the lines after emerge of mplayer.

>
> Ok, that did work, thanks. But is seems not to be a clean Gentoo way?
> Eggert


I know, but have so far only found workarounds for emerge.
* My old believe in this situation was that the portage system and emerge in
particular needs support to handle CFLAGS and LFLAGS per *.ebuild package.
* This understanding of the situation has changed into that I now believe
that it is the mplayer .ebuild package that has to be more smart.

I will, when I know more about portage and ebuild's, probably find the
"real" understanding of this and a solution... but things takes time.

Anyone having suggestions of what to read to get more information on portage
and writing ebuild's?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 10:43 AM
Martin Vaeth
 
Posts: n/a
Default Re: emerge mplayer failed

Lars H. <lars.hesdorf@mail.dk> wrote:

> * My old believe in this situation was that the portage system and emerge in
> particular needs support to handle CFLAGS and LFLAGS per *.ebuild package.


Write your own /etc/portage/bashrc which sets up the CFLAGS and LDFLAGS
based on entries in some file like /etc/portage/package.cflags
There are such scripts already in the net, and you can easily simplify
them for your needs.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:55 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com