Package: ffmpeg Version: 0.cvs20050918-4 Severity: normal In order to debug a bug I tried to build the package with debugging symbols using
DEB_BUILD_OPTIONS="nostrip noopt debug" dpkg-buildpackage -rfakeroot and was surprised to see gcc called with "-O3" and without "-g". I tried to fix this with --- ffmpeg2/ffmpeg-0.cvs20050918/debian/rules Sun Nov 13 16:58:13 2005 +++ ffmpeg/ffmpeg-0.cvs20050918/debian/rules Sun Nov 13 16:49:31 2005 @@ -13,7 +13,14 @@ confflags += --enable-gpl --enable-pp confflags += --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +confflags += --enable-debug +else confflags += --disable-debug +endif +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +confflags += --disable-opts +endif ifneq (,$(findstring risky,$(DEB_BUILD_OPTIONS))) weak-build-deps += liblame-dev but then the build failed with libpostproc/postprocess_template.c: In function 'postProcess_MMX': libpostproc/postprocess_template.c:3551: warning: pointer targets in passing argument 6 of 'blockCopy_MMX' differ in signedness libpostproc/postprocess_template.c:3697: warning: pointer targets in passing argument 6 of 'blockCopy_MMX' differ in signedness libpostproc/postprocess_template.c:3798: warning: pointer targets in passing argument 4 of 'tempNoiseReducer_MMX' differ in signedness libpostproc/postprocess_template.c:3822: warning: pointer targets in passing argument 4 of 'tempNoiseReducer_MMX' differ in signedness gcc -fPIC -DPIC -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -I'/home/lindi/local/ffmpeg/ffmpeg-0.cvs20050918'/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o oggvorbis.o oggvorbis.c oggvorbis.c: In function 'oggvorbis_decode_frame': oggvorbis.c:297: warning: unused variable 'i' gcc -fPIC -DPIC -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -I'/home/lindi/local/ffmpeg/ffmpeg-0.cvs20050918'/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o oggtheora.o oggtheora.c gcc -fPIC -DPIC -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -I'/home/lindi/local/ffmpeg/ffmpeg-0.cvs20050918'/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o libgsm.o libgsm.c gcc -fPIC -DPIC -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -I'/home/lindi/local/ffmpeg/ffmpeg-0.cvs20050918'/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/fdct_mmx.o i386/fdct_mmx.c /tmp/ccLUv78B.s: Assembler messages: /tmp/ccLUv78B.s:2004: Error: suffix or operands invalid for `pshufw' make[1]: *** [i386/fdct_mmx.o] Error 1 make[1]: Leaving directory `/home/lindi/local/ffmpeg/ffmpeg-0.cvs20050918/libavcodec' make: *** [build-stamp] Error 2 The problematic file builds with "-O3" "-O2" "-O1" and even "-O1 -g" but not with "-O0". Is this a GCC bug? How about using the following fix as a compromise? --- ffmpeg2/ffmpeg-0.cvs20050918/debian/rules Sun Nov 13 16:58:13 2005 +++ ffmpeg/ffmpeg-0.cvs20050918/debian/rules Sun Nov 13 17:42:14 2005 @@ -13,7 +13,14 @@ confflags += --enable-gpl --enable-pp confflags += --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +confflags += --enable-debug +else confflags += --disable-debug +endif +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +confflags += --extra-cflags="-O1" +endif ifneq (,$(findstring risky,$(DEB_BUILD_OPTIONS))) weak-build-deps += liblame-dev -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.4.29sauna Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1) Versions of packages ffmpeg depends on: ii libc6 2.3.5-7 GNU C Library: Shared libraries an ii libdc1394-13 1.1.0-2 high level programming interface f ii libfreetype6 2.1.10-1 FreeType 2 font engine, shared lib ii libgsm1 1.0.10-13 Shared libraries for GSM speech co ii libimlib2 1.2.1-2 powerful image loading and renderi ii libogg0 1.1.2-1 Ogg Bitstream Library ii libraw1394-5 0.10.1-1.1 library for direct access to IEEE ii libsdl1.2debi 1.2.7+1.2.8cvs20041007-5.3 Simple DirectMedia Layer ii libtheora0 0.0.0.alpha4-1.1 The Theora Video Compression Codec ii libvorbis0a 1.1.0-1 The Vorbis General Audio Compressi ii libvorbisenc2 1.1.0-1 The Vorbis General Audio Compressi ii libx11-6 6.8.2.dfsg.1-10 X Window System protocol client li ii xlibs 6.8.2.dfsg.1-10 X Window System client libraries m ii zlib1g 1:1.2.3-6 compression library - runtime ffmpeg recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]