Bug 48953 - gstreamer-0.8.1 compile failure with gcc-3.4: error: PIC register `ebx' clobbered in `asm'
Bug#: 48953 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gnome@gentoo.org Reported By: ed@catmur.co.uk
Component: Applications
URL:  http://bugzilla.gnome.org/show_bug.cgi?id=141083
Summary: gstreamer-0.8.1 compile failure with gcc-3.4: error: PIC register `ebx' clobbered in `asm'
Keywords:  
Status Whiteboard: 
Opened: 2004-04-25 10:07 0000
Description:   Opened: 2004-04-25 10:07 0000
On x86 (i686-pc-linux-gnu):

if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..   
-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2
  -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I..  -Wall
-DGST_DISABLE_DEPRECATED -g -I../libs -I../include 
-DG_LOG_DOMAIN=g_log_domain_gstreamer -DGST_MAJORMINOR=\""0.8"\"  -O2 -pipe
-march=athlon-xp -fprefetch-loop-arrays -MT libgstreamer_0.8_la-gstelement.lo
-MD -MP -MF ".deps/libgstreamer_0.8_la-gstelement.Tpo" \
  -c -o libgstreamer_0.8_la-gstelement.lo `test -f 'gstelement.c' || echo
'./'`gstelement.c; \
then mv -f ".deps/libgstreamer_0.8_la-gstelement.Tpo"
".deps/libgstreamer_0.8_la-gstelement.Plo"; \
else rm -f ".deps/libgstreamer_0.8_la-gstelement.Tpo"; exit 1; \
fi
gstcpu.c: In function `gst_cpuid_i386':
gstcpu.c:72: error: PIC register `ebx' clobbered in `asm'

Also in gst/gsttrashstack.h.

Tentative patch attached (needs review by someone who groks x86 asm)

Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=141083

------- Comment #1 From Martin Schlemmer (RETIRED) 2004-04-26 16:00:13 0000 -------
From my limited experience with at&t asm, it looks OK.  Btw, its always been
an issue with -fprefetch-loop-arrays since some time back if Im not mistaken
(even 0.6).

Can the gnome guys apply?

------- Comment #2 From Martin Schlemmer (RETIRED) 2004-04-26 16:00:48 0000 -------
Patch is here btw:

  http://bugzilla.gnome.org/attachment.cgi?id=27080&action=view

------- Comment #3 From Aaron Gyes 2004-04-26 17:07:12 0000 -------
The gnome guys put it in cvs 3 hours ago.

------- Comment #4 From Martin Schlemmer (RETIRED) 2004-04-26 17:12:48 0000 -------
Talking about the Gentoo Gnome team ...

------- Comment #5 From foser (RETIRED) 2004-04-27 05:41:22 0000 -------
patch added to gstreamer-0.8.1 ebuild

thanks for the report & fix