Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

libmpeg3-1.5.2 error

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
32 posts
  • 1
  • 2
  • Next
Author
Message
Asmdroid
n00b
n00b
User avatar
Posts: 8
Joined: Fri Apr 01, 2005 9:38 am

libmpeg3-1.5.2 error

  • Quote

Post by Asmdroid » Mon Apr 04, 2005 8:20 pm

Hello, I get an error when trying to emerge libmpeg which originally appeared to be required for an E17 library.
I am using:

Code: Select all

gcc --version
gcc (GCC) 4.0.0-beta20050402 (Gentoo Linux 4.0.0_beta20050402)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Here is the error I recieve when trying to emerge:

Code: Select all

video/output.c:210: warning: integer constant is too large for 'long' type
video/output.c:212: warning: integer constant is too large for 'long' type
video/output.c:214: warning: integer constant is too large for 'long' type
video/output.c:301: warning: integer constant is too large for 'long' type
video/output.c:303: warning: integer constant is too large for 'long' type
video/output.c: In function 'mpeg3video_ditherframe':
video/output.c:722: error: invalid lvalue in increment
video/output.c:747: error: invalid lvalue in increment
video/output.c:787: error: invalid lvalue in increment
video/output.c:812: error: invalid lvalue in increment
make: *** [i686/video/output.o] Error 1

!!! ERROR: media-libs/libmpeg3-1.5.2 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message. 
Any help is much appreciated.
Top
hjnenc
Veteran
Veteran
User avatar
Posts: 1599
Joined: Sun Aug 15, 2004 5:49 am
Location: Vienna, Austria

  • Quote

Post by hjnenc » Mon Apr 04, 2005 9:30 pm

Do you get the same error with a stable compiler (e.g. gcc 3.3.5)?
Top
xcable
Guru
Guru
User avatar
Posts: 424
Joined: Thu Aug 15, 2002 4:47 pm
Location: College Station, Texas
Contact:
Contact xcable
Website

  • Quote

Post by xcable » Sat Mar 25, 2006 5:50 pm

Asmdroid you will have to compile libmpeg3 with a different version of gcc (older).

Code: Select all

gcc-config i686-pc-linux-gnu-3.4.5
source /etc/profile
emerge libmpeg3
gcc-config i686-pc-linux-gnu-4.0.1
source /etc/profile
This will switch gcc to 3.4.5 (emerge if you dont' have it), update the enviroment, compile libmpeg3, switch back to the new gcc, and update the enviroment.

This has worked for me.

--
heath
liquidcable.com
Top
maartsen
n00b
n00b
Posts: 1
Joined: Thu Apr 20, 2006 8:18 am

  • Quote

Post by maartsen » Thu Apr 20, 2006 8:25 am

Hi all,

I've got the same problem as Asmdroid, but I'm using the 3.4.6 gcc.

I've tried to use the "USE=hardened emerge --ask libmpeg3", but that give me a different error.
The error looks almost the same, but now it's the "GENERAL_BREG".

So no luck this time :(
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

  • Quote

Post by _loki_ » Thu Apr 20, 2006 10:39 am

bump

Code: Select all

video/seek.c: In function `mpeg3video_seek':
video/seek.c:266: warning: integer constant is too large for "long" type
video/seek.c:268: warning: integer constant is too large for "long" type
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  video/vlc.c -o i686/video/vlc.lo
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  workarounds.c -o i686/workarounds.lo
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  video/mmxidct.S -o i686/video/mmxidct.lo
ar rcs i686/libmpeg3.a `cat i686/objs`
i686-pc-linux-gnu-gcc `cat i686/c_flags` -o i686/mpeg3dump mpeg3dump.c i686/libmpeg3.a -lm -lpthread -L/usr/lib -la52
video/slice.c: In function `mpeg3_decode_slice':
video/slice.c:211: error: can't find a register in class `BREG' while reloading `asm'
make: *** [i686/video/slice.lo] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: media-libs/libmpeg3-1.5.2-r3 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  libmpeg3-1.5.2-r3.ebuild, line 56:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
runnig gcc-3.4.6-r1
Top
prestige
Tux's lil' helper
Tux's lil' helper
Posts: 95
Joined: Sat Sep 24, 2005 7:02 pm

  • Quote

Post by prestige » Thu Apr 20, 2006 2:53 pm

And something similar here:

Code: Select all

...
...
...
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  video/mpeg3video.c -o i686/video/mpeg3video.lo
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  video/output.c -o i686/video/output.lo
video/output.c:210: warning: integer constant is too large for "long" type
video/output.c:212: warning: integer constant is too large for "long" type
video/output.c:214: warning: integer constant is too large for "long" type
video/output.c:301: warning: integer constant is too large for "long" type
video/output.c:303: warning: integer constant is too large for "long" type
video/output.c: In function `mpeg3video_ditherframe':
video/output.c:722: warning: use of cast expressions as lvalues is deprecated
video/output.c:747: warning: use of cast expressions as lvalues is deprecated
video/output.c:787: warning: use of cast expressions as lvalues is deprecated
video/output.c:812: warning: use of cast expressions as lvalues is deprecated
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  video/reconstruct.c -o i686/video/reconstruct.lo
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  video/seek.c -o i686/video/seek.lo
video/seek.c: In function `mpeg3video_seek':
video/seek.c:266: warning: integer constant is too large for "long" type
video/seek.c:268: warning: integer constant is too large for "long" type
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  video/slice.c -o i686/video/slice.lo
video/slice.c: In function `mpeg3_decode_slice':
video/slice.c:211: error: can't find a register in class `BREG' while reloading `asm'
make: *** [i686/video/slice.lo] Error 1

!!! ERROR: media-libs/libmpeg3-1.5.2-r3 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  libmpeg3-1.5.2-r3.ebuild, line 56:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Code: Select all

emerge --info
Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-ck6-prestige i686)
gcc-3.4.6-r1
zen-sources - whole new world discovered
Top
ausmusj1
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Fri Jan 02, 2004 12:18 am
Contact:
Contact ausmusj1
Website

  • Quote

Post by ausmusj1 » Thu Apr 20, 2006 3:40 pm

Same issue here (BREG error, + Constant too large for long warnings) - gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
Top
hjnenc
Veteran
Veteran
User avatar
Posts: 1599
Joined: Sun Aug 15, 2004 5:49 am
Location: Vienna, Austria

  • Quote

Post by hjnenc » Thu Apr 20, 2006 4:27 pm

Which CFLAGS are you using? For these kinds of errors it sometimes helps to use a more conservative setting. Sometimes, it also helps to use a "lower" -march setting.
Top
moop2000
n00b
n00b
Posts: 7
Joined: Fri Apr 30, 2004 10:02 am
Location: Kensington, MD
Contact:
Contact moop2000
Website

  • Quote

Post by moop2000 » Thu Apr 20, 2006 6:18 pm

I was getting a similar error, turned out to be bug [bug=130557]130557[/bug]. I emerged without the mmx flag, and it worked after that.

EDIT: Sorry, I meant to say mmx use flag.
Last edited by moop2000 on Thu Apr 20, 2006 7:09 pm, edited 1 time in total.
Top
LONGOBARD
n00b
n00b
Posts: 9
Joined: Tue Jun 08, 2004 5:29 am
Location: Russia, SPb

  • Quote

Post by LONGOBARD » Thu Apr 20, 2006 7:08 pm

The same trouble, CFLAGS:

Code: Select all

CFLAGS="-O3 -mtune=pentium4 -mfpmath=sse -fomit-frame-pointer -msse2 -pipe"
Setting CFLAGS to "" give no result :(
Top
red-wolf76
l33t
l33t
User avatar
Posts: 714
Joined: Wed Apr 13, 2005 6:20 pm
Location: Rhein-Main Area

  • Quote

Post by red-wolf76 » Thu Apr 20, 2006 8:34 pm

Confirm setting media-libs/libmpeg3 -mmx in /etc/portage/package.use fixes it. 8)
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

  • Quote

Post by _loki_ » Fri Apr 21, 2006 6:31 am

Code: Select all

USE="-mmx" emerge libmpeg3
solves it..
Top
moop2000
n00b
n00b
Posts: 7
Joined: Fri Apr 30, 2004 10:02 am
Location: Kensington, MD
Contact:
Contact moop2000
Website

  • Quote

Post by moop2000 » Fri Apr 21, 2006 4:39 pm

_loki_ wrote:

Code: Select all

USE="-mmx" emerge libmpeg3
solves it..
red-wolf76's suggestion is better because if you re-emerge it, it will remember the USE flag for that one ebuild.
Top
yamakawa
Guru
Guru
User avatar
Posts: 340
Joined: Mon Jul 28, 2003 3:58 pm

  • Quote

Post by yamakawa » Sat Apr 22, 2006 2:49 pm

The con for the fix is...when the developer(s) fix the problem and we are able to enjoy the advantage of using mmx USE flag, we cannot enjoy it without re-editing the package.keyword file, which we do not usually maintain a lot.
Top
red-wolf76
l33t
l33t
User avatar
Posts: 714
Joined: Wed Apr 13, 2005 6:20 pm
Location: Rhein-Main Area

  • Quote

Post by red-wolf76 » Sat Apr 22, 2006 4:20 pm

That's something I'll live with. The count of packages present in my package.keywords is usually far lower than ten. On the other hand, I'm something of an update-whore and perform a emerge --sync && emerge -uDNpvt world daily to check if stuff needs to be updated.

If I didn't include it in package.keywords, it would pop up all the time.

I agree, it's extra work checking up on the bug fix manually and then deleting it again... But I usually do that before toolchain updates, as I have to spend some time compiling there anyway...
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

  • Quote

Post by _loki_ » Sat Apr 22, 2006 4:57 pm

moop2000:
I'd like to use the mmx FLAG, so I certainly do not include it in package.use and hope there is a fix on this one in the next release..
Top
carpman
Advocate
Advocate
Posts: 2202
Joined: Thu Jun 20, 2002 2:42 pm
Location: London - UK

  • Quote

Post by carpman » Wed May 03, 2006 9:13 am

I have tried
media-libs/libmpeg3 -mmx in /etc/portage/package.use

but emerge still fails?
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Top
Iced-Tux
Apprentice
Apprentice
User avatar
Posts: 183
Joined: Wed Apr 14, 2004 3:36 pm
Location: Germany, Cologne

  • Quote

Post by Iced-Tux » Thu May 04, 2006 7:15 am

added libmpeg3 to portage.keywords and emerged with mmx :) Compiled nicely.

It's the version libmpeg3-1.5.2-r3.

Good luck with it.
!! The road to hell is full of good intentions !!
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

  • Quote

Post by _loki_ » Thu May 04, 2006 7:58 am

what keyword did you set for libmpeg3? Which version did you compile then?
Top
Iced-Tux
Apprentice
Apprentice
User avatar
Posts: 183
Joined: Wed Apr 14, 2004 3:36 pm
Location: Germany, Cologne

  • Quote

Post by Iced-Tux » Thu May 04, 2006 8:06 am

I addes libmpeg3 to the package.keywords so the version installed is now 1.5.2-r3.
I compiled once without mmx and once with mmx. Both tries compield fine.
!! The road to hell is full of good intentions !!
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

  • Quote

Post by _loki_ » Thu May 04, 2006 8:16 am

you have to set a keyword in package.keywords.. fe

Code: Select all

media-libs/libmpeg3 ~x86
or

Code: Select all

media-libs/libmpeg3 -*
but anyway libmpeg3-1.5.2-r3n is marked by ~x86 which is the version that won't compile with mmx for me..

Code: Select all

deo/mpeg3video.lo
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  video/output.c -o i686/video/                                               output.lo
i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags`  video/reconstruct.c -o i686/v                                               ideo/reconstruct.lo
video/output.c: In function `mpeg3video_ditherframe':
video/output.c:741: warning: use of cast expressions as lvalues is deprecated
video/output.c:766: warning: use of cast expressions as lvalues is deprecated
video/output.c:806: warning: use of cast expressions as lvalues is deprecated
video/output.c:831: warning: use of cast expressions as lvalues is deprecated
video/output.c:274: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:274: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:367: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:367: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:231: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:231: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:231: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:231: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:324: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:324: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:324: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:324: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:274: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:274: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:274: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:274: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:367: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:367: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:367: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
video/output.c:367: error: can't find a register in class `GENERAL_REGS' while r                                               eloading `asm'
make: *** [i686/video/output.lo] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: media-libs/libmpeg3-1.5.2-r3 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  libmpeg3-1.5.2-r3.ebuild, line 59:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if rel                                               evant.
..
Top
carpman
Advocate
Advocate
Posts: 2202
Joined: Thu Jun 20, 2002 2:42 pm
Location: London - UK

  • Quote

Post by carpman » Thu May 04, 2006 9:05 am

Iced-Tux wrote:added libmpeg3 to portage.keywords and emerged with mmx :) Compiled nicely.

It's the version libmpeg3-1.5.2-r3.

Good luck with it.
can confirm that adding media-libs/libmpeg3 to package.keywords works with and without mmx, note no ~x86
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

  • Quote

Post by _loki_ » Thu May 04, 2006 10:40 am

and it doesn't work not having it in package.keywords?? That doen't make any sence..!
Top
carpman
Advocate
Advocate
Posts: 2202
Joined: Thu Jun 20, 2002 2:42 pm
Location: London - UK

  • Quote

Post by carpman » Thu May 04, 2006 11:31 am

_loki_ wrote:and it doesn't work not having it in package.keywords?? That doen't make any sence..!
This is not the only file i have that works when in package.keywords without ~x86 but will not work if it is not ?

strange indeed.
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

  • Quote

Post by _loki_ » Thu May 04, 2006 12:04 pm

well take it out and try again.. Shouldn't make any difference. I don't know what having a package in package.keywords without a keyword should do (I'd guess it does nothing), but I cannot have any influence on compilation. If there is one it influences the version you pull with emerge, but anyway libmpeg3-1.5.2-r3 is marked as ~x86, the x86 package is libmpeg3-1.5.2.. For usage of package.keywords see http://gentoo-wiki.com/TIP_package.keywords
The problems still is on, for me compilation with mmx USE-FLAG still fails.. (talking about libmpeg3-1.5.2-r3), if it works for you it cannot be related to package.keywords
Top
Post Reply

32 posts
  • 1
  • 2
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic