GNOME Bugzilla – Bug 123597
gst-plugins mjpeg.c compile fails for Solaris-8 with gcc-3.3.1
Last modified: 2005-08-15 01:46:59 UTC
I am trying to build gst-plugins-0.6.3 on Solaris-8 with gcc-3.3.1 and get the below errors. To build gstreamer-0.6.3 I had to patch from bug 120960 and in tools/Makefile removed -Wall and -Werror in GST_CFLAGS and LIBGST_CFLAGS. Any suggestions? gmake[6]: Entering directory `/home/jjones1/usr/src/gnome-2.4/gst-plugins-0.6.3/gst-libs/ext/ffmpeg/ffmpeg/libavcodec' gcc -O3 -mcpu=ultrasparc -I/home/jjones1/usr/gnome-2.4/include -I/home/jjones1/usr/include -Wno-error -Wall -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mjpeg.o mjpeg.c /usr/ccs/bin/as: "/var/tmp//ccnRun5p.s", line 9990: error: shift count negative or too big: 32 gmake[6]: *** [mjpeg.o] Error 1 gmake[6]: Leaving directory `/home/jjones1/usr/src/gnome-2.4/gst-plugins-0.6.3/gst-libs/ext/ffmpeg/ffmpeg/libavcodec' make[5]: *** [lib] Error 2 make[5]: Leaving directory `/home/jjones1/usr/src/gnome-2.4/gst-plugins-0.6.3/gst-libs/ext/ffmpeg/ffmpeg' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/jjones1/usr/src/gnome-2.4/gst-plugins-0.6.3/gst-libs/ext/ffmpeg' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/jjones1/usr/src/gnome-2.4/gst-plugins-0.6.3/gst-libs/ext' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/jjones1/usr/src/gnome-2.4/gst-plugins-0.6.3/gst-libs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jjones1/usr/src/gnome-2.4/gst-plugins-0.6.3' make: *** [all] Error 2
Could you add -save-temps to CFLAGS in gst-libs/ext/ffmpeg/ffmpeg/libavcodec/Makefile, recompile, and attach the resulting mjpeg.s? It's unlikely that we will be able to fix this bug, since we don't maintain ffmpeg. However, you can disable ffmpeg by using --disable-ffmpeg when running configure. Please also note bug #121184, although it's not directly applicable.
Created attachment 20506 [details] File to assist debug of ffmpeg on gcc-3.3.1
When adding -save-temps to CFLAGS in the Makefile, I get the following output. Building with --disable-ffmpeg did work around the problem. gcc -O3 -mcpu=ultrasparc -I/home/jjones1/usr/gnome-2.4/include -I/home/jjones1/usr/include -Wall -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -save-temps -c -o mjpeg.o mjpeg.c /usr/ccs/bin/as: "mjpeg.s", line 9990: error: shift count negative or too big: 32 make: *** [mjpeg.o] Error 1
Adding the portability keyword.
I'm pretty sure this is still a problem in 0.8.0, as I don't remember anything done to fix it.
We updated the ffmpeg snapshot. Please retry. If still a problem, I'll notify upstream.
Ping...
I have to apologize. I have been moved to an Intel/Linux box now, I am no longer using the SPARC/Solaris box. I will be unable to provide future information. Sorry for the inconvenience.