[Gstreamer-bugs] [Bug 122952] New - Apple's gcc doesn't like the assembly code in gstatomic_impl.h and gstarch.h

bugzilla-daemon at widget.gnome.org bugzilla-daemon at widget.gnome.org
Mon Sep 22 10:24:37 PDT 2003


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

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

Changed by jtalkington at users.sourceforge.net.

--- shadow/122952	Mon Sep 22 13:24:37 2003
+++ shadow/122952.tmp.11024	Mon Sep 22 13:24:37 2003
@@ -0,0 +1,84 @@
+Bug#: 122952
+Product: GStreamer
+Version: 0.3.3
+OS: Macintosh
+OS Details: MacOS X 10.2.6 dual G4 PPC
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: don't know
+AssignedTo: gstreamer-maint at bugzilla.gnome.org                            
+ReportedBy: jtalkington at users.sourceforge.net               
+QAContact: gstreamer-maint at bugzilla.gnome.org
+TargetMilestone: HEAD
+URL: 
+Summary: Apple's gcc doesn't like the assembly code in gstatomic_impl.h and gstarch.h
+
+I'm getting errors related to the assembly code while trying to compile on
+Darwin.  First off I get:
+
+cc -DHAVE_CONFIG_H -I. -I. -I.. -I/Users/garnome/garnome/include
+-I/Users/garnome/garnome/X11R6/include -no-cpp-precomp
+-I/Users/garnome/garnome/include -I/usr/X11R6/include -D_GNU_SOURCE
+-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+-I/Users/garnome/garnome/include/libxml2 -pthreads
+-I/Users/garnome/garnome/include/glib-2.0
+-I/Users/garnome/garnome/lib/glib-2.0/include -I.. -DGST_DISABLE_DEPRECATED
+-g -I../libs -I../include -DG_LOG_DOMAIN=g_log_domain_gstreamer
+-DGST_CACHE_DIR=\"/Users/garnome/garnome/var/cache/gstreamer-0.6\" -O2 -g
+-c gstatomic.c -Wp,-MD,.deps/libgstreamer_0.6_la-gstatomic.TPlo 
+-fno-common -DPIC -o libgstreamer_0.6_la-gstatomic.lo
+cc: unrecognized option `-pthreads'
+/var/tmp//cctLjkSm.s:185:Parameter syntax error (parameter 3)
+/var/tmp//cctLjkSm.s:205:Parameter syntax error (parameter 3)
+/var/tmp//cctLjkSm.s:224:Parameter syntax error (parameter 3)
+make[5]: *** [libgstreamer_0.6_la-gstatomic.lo] Error 1
+
+Just for kicks, I added -save-temps to the CFLAGS, and took a look at the
+.s that was created.  It seems that Apple's gcc doesn't like the #blah
+comments in the assembly code (I know nothing about assembly, so this could
+be totally off base.)
+
+I created a patch removing those comments, and it compiled fine.
+
+Next error I get is:
+cc -DHAVE_CONFIG_H -I. -I. -I.. -I/Users/garnome/garnome/include
+-I/Users/garnome/garnome/X11R6/include -no-cpp-precomp
+-I/Users/garnome/garnome/include -I/usr/X11R6/include -D_GNU_SOURCE
+-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+-I/Users/garnome/garnome/include/libxml2 -pthreads
+-I/Users/garnome/garnome/include/glib-2.0
+-I/Users/garnome/garnome/lib/glib-2.0/include -I.. -DGST_DISABLE_DEPRECATED
+-g -I../libs -I../include -DG_LOG_DOMAIN=g_log_domain_gstreamer
+-DGST_CACHE_DIR=\"/Users/garnome/garnome/var/cache/gstreamer-0.6\" -O2 -g
+-c cothreads.c -Wp,-MD,.deps/libcothreads_la-cothreads.TPlo  -fno-common
+-DPIC -o libcothreads_la-cothreads.lo
+cc: unrecognized option `-pthreads'
+/var/tmp//ccKDGD7C.s:2731:Parameter syntax error (parameter 1)
+/var/tmp//ccKDGD7C.s:2735:Parameter syntax error (parameter 1)
+/var/tmp//ccKDGD7C.s:2736:Parameter syntax error (parameter 2)
+make[5]: *** [libcothreads_la-cothreads.lo] Error 1
+
+Looking in the save file, I see this:
+L167:
+        .stabd  68,0,643
+        lwz r10,64(r1)
+        lwz r9,28(r10)
+        addi r0,r9,-16
+        stw r0,28(r10)
+        stw r11,-16(r9)
+        .stabd  68,0,644
+        lwz 1,28(r10)
+        .stabd  68,0,646
+        addis r9,r31,ha16(L_cothread_stub$non_lazy_ptr-L9$pb)
+        lwz r9,lo16(L_cothread_stub$non_lazy_ptr-L9$pb)(r9)
+        mr 0,r9
+        mtlr 0
+        blrl
+        .stabd  68,0,649
+
+It looks like the lwz from gstarch.h (3rd one down) is not what is expected
+(but again, I don't know jack squat about assembly.)
+
+I can upload the entire cothreads.s (or anything else) if needed.




More information about the Gstreamer-bugs mailing list