Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105040 - gst-plugins-ffmpeg-0.8.7 with CFLAGS="-g" fails with: can't find a register in class `GENERAL_REGS' while re loading `asm'
Summary: gst-plugins-ffmpeg-0.8.7 with CFLAGS="-g" fails with: can't find a register i...
Status: RESOLVED DUPLICATE of bug 190800
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords: QAcanfix
Depends on:
Blocks:
 
Reported: 2005-09-06 09:48 UTC by Ed Catmur
Modified: 2007-08-30 18:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2005-09-06 09:48:34 UTC
Same as usual:

if /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I../.. -I../../libavcodec -DHAVE_AV_CONFIG_H=1
-fomit-frame-pointer -Wall -Wno-switch   -msse -ggdb3 -fno-pie -fno-pie -MT
libmmxsse_la-dsputil_mmx.lo -MD -MP -MF ".deps/libmmxsse_la-dsputil_mmx.Tpo" -c
-o libmmxsse_la-dsputil_mmx.lo `test -f 'dsputil_mmx.c' || echo
'./'`dsputil_mmx.c; \
then mv -f ".deps/libmmxsse_la-dsputil_mmx.Tpo"
".deps/libmmxsse_la-dsputil_mmx.Plo"; else rm -f
".deps/libmmxsse_la-dsputil_mmx.Tpo"; exit 1; fi
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libavcodec
-DHAVE_AV_CONFIG_H=1 -fomit-frame-pointer -Wall -Wno-switch -msse -ggdb3
-fno-pie -fno-pie -MT libmmxsse_la-dsputil_mmx.lo -MD -MP -MF
.deps/libmmxsse_la-dsputil_mmx.Tpo -c dsputil_mmx.c  -fPIC -DPIC -o
.libs/libmmxsse_la-dsputil_mmx.o
dsputil_mmx.c: In function `transpose4x4':
dsputil_mmx.c:618: error: can't find a register in class `GENERAL_REGS' while
reloading `asm'

This is with CFLAGS="-ggdb3", but any CFLAGS that do not include an -O setting
also cause compile to fail.

I think the gst-plugins-ffmpeg ebuild handles this for -O0, but CFLAGS can also
have no -O setting.

I guess the ebuild needs to be changed to:

	if use x86 ; then
		replace-flags -O0 -O2
		replace-flags -O3 -O2
		if ! is-flag -O1 && ! is-flag -O2 && ! is-flag -Os ; then
			append-flags -O1
		fi
	fi
Comment 1 Ed Catmur 2005-09-06 09:59:15 UTC
No, that doesn't work; is-flag also detects flags in CXXFLAGS.

Maybe:

	if use x86 ; then
		replace-flags -O0 -O2
		replace-flags -O3 -O2
		# prepend -O1; we need optimizations turned on
		CFLAGS="-O1 $CFLAGS"
		CXXFLAGS="-O1 $CXXFLAGS"
	fi
Comment 2 Zaheer Abbas Merali (RETIRED) gentoo-dev 2005-11-27 06:37:13 UTC
try with gst-plugins-ffmpeg 0.8.7
Comment 3 Ed Catmur 2006-02-14 11:53:31 UTC
Still exists with 0.8.7. Not that it matters all that much.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-06-28 06:03:46 UTC
This needs something like is-flag -O[s123] || append-flags -O2; either add this or WONTFIX this bug please, it's been sitting here for ages.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2007-08-30 18:07:57 UTC

*** This bug has been marked as a duplicate of bug 190800 ***