Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52384 - xawtv fails to compile under gcc 3.4
Summary: xawtv fails to compile under gcc 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 12:24 UTC by Bret Towe
Modified: 2004-07-28 19:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xawtv-gcc34.patch (xawtv-gcc34.patch,2.74 KB, patch)
2004-06-09 19:30 UTC, Bret Towe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bret Towe 2004-05-29 12:24:51 UTC
xawtv bombs out when compiling on gcc 3.4
the error msg is below
same problem for stable version of xawtv for x86

  LD      libng/contrib-plugins/cubic.so
  CC      libng/contrib-plugins/linear-blend.o
libng/contrib-plugins/linear-blend.c: In function `frame':
libng/contrib-plugins/linear-blend.c:43: error: PIC register `%ebx' clobbered in `asm'
make: *** [libng/contrib-plugins/linear-blend.o] Error 1

!!! ERROR: media-tv/xawtv-3.91 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! (no error message)
Comment 1 Bret Towe 2004-05-29 13:13:26 UTC
on closer look its some asm to use mmx it does have a #ifdef
so in theory adding -mmx to use flag could allow this to compile
for those that need it now
Comment 2 Genady Okrain 2004-06-09 10:29:25 UTC
same problem here
Comment 3 Bret Towe 2004-06-09 19:30:15 UTC
Created attachment 33005 [details, diff]
xawtv-gcc34.patch

here is a patch that applys and compiles
im not sure where this segment of code is used so i dont think i ran it
for what i use xawtv for tho it still worked

standard disclaimer: if it blows up your computer its your problem not mine
you have been warned
Comment 4 Martin Mokrejš 2004-06-27 13:34:05 UTC
-mmmx doesn't help

-msse3 neither

I have seen same bug for both, xawtv-3.91-r1 and xawtv-3.86-r1.

The patch works for me to get it compiled under xawtv-3.91-r1.

Comment 5 Disenchanted (RETIRED) gentoo-dev 2004-06-28 11:53:30 UTC
USE=-mmx emerge xawtv   works (compiles) here on x86

someone might like to test if there is enough difference between gcc 3.3.3 and +mmx and gcc 3.4.0 -mmx to warrant keeping this bug open

Comment 6 Disenchanted (RETIRED) gentoo-dev 2004-06-28 12:42:58 UTC
dev.gentoo.org/~morfic/xawtv-3.91-r1.ebuild
can you please test this with the supplied patch from this bug (comment #3) in:
 
/usr/portage/media-tv/xawtv/files ?



'ebuild /usr/portage/media-tv/xawtv/xawtv-3.91-r1.ebuild digest' if it complains about the file xawtv-gcc34.patch that was added to files dir

need feedback as i dont own the hardware to test functionality, compilation works flawless on x86 as bret already stated

Comment 7 Aaron Peterson 2004-07-26 01:33:58 UTC
version 3.93 compiled for me (3.4.1-r1)
See:
bug 58002

(close this bug?)
Comment 8 Travis Tilley (RETIRED) gentoo-dev 2004-07-26 03:54:30 UTC
x86 specific. *pokes morfic*
Comment 9 Disenchanted (RETIRED) gentoo-dev 2004-07-28 19:43:40 UTC
Commiting xawtv 3.93 which has upstream fixes, compiles flawless and works for others see comment 58002

Thanks Aaron