Subject: pkg/35864: 2006Q4 multimedia/ffmpeg with MMX does not build on 4.99.9
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <hbent@cs.oberlin.edu>
List: pkgsrc-bugs
Date: 02/27/2007 23:00:00
>Number:         35864
>Category:       pkg
>Synopsis:       2006Q4 multimedia/ffmpeg with MMX does not build on 4.99.9
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 27 23:00:00 +0000 2007
>Originator:     Henry Bent
>Release:        4.99.9
>Organization:
Oberlin College CIT
>Environment:
NetBSD aelfric 4.99.9 NetBSD 4.99.9 (AELFRIC) #1: Tue Jan 30 03:56:40 EST 2007  root@hbent3:/usr/obj/src-current/sys/arch/i386/compile/AELFRIC i386
>Description:
multimedia/ffmpeg from 2006Q4 does not build on 4.99.9 if PKG_DEFAULT_OPTIONS+=mmx is set in /etc/mk.conf.  It stops here:

 cc -O3 -Wall -pthread -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c libpostproc/postprocess.c  -fPIC -DPIC -o libpostproc/.libs/postprocess.o
In file included from libpostproc/postprocess.c:648:
libpostproc/postprocess_template.c: In function 'do_a_deblock_MMX':
libpostproc/postprocess_template.c:2872: error: memory input 4 is not directly addressable
libpostproc/postprocess_template.c: In function 'postProcess_MMX':
libpostproc/postprocess_template.c:3476: warning: pointer targets in passing argument 6 of 'blockCopy_MMX' differ in signedness
libpostproc/postprocess_template.c:3622: warning: pointer targets in passing argument 6 of 'blockCopy_MMX' differ in signedness
libpostproc/postprocess_template.c:3723: warning: pointer targets in passing argument 4 of 'tempNoiseReducer_MMX' differ in signedness
libpostproc/postprocess_template.c:3747: warning: pointer targets in passing argument 4 of 'tempNoiseReducer_MMX' differ in signedness
libpostproc/postprocess.c: In function 'reallocBuffers':
libpostproc/postprocess.c:973: warning: dereferencing type-punned pointer will break strict-aliasing rules
libpostproc/postprocess.c:974: warning: dereferencing type-punned pointer will break strict-aliasing rules
libpostproc/postprocess.c:975: warning: dereferencing type-punned pointer will break strict-aliasing rules
libpostproc/postprocess.c:976: warning: dereferencing type-punned pointer will break strict-aliasing rules
libpostproc/postprocess.c:987: warning: dereferencing type-punned pointer will break strict-aliasing rules
libpostproc/postprocess.c:988: warning: dereferencing type-punned pointer will break strict-aliasing rules
libpostproc/postprocess.c:989: warning: dereferencing type-punned pointer will break strict-aliasing rules
libpostproc/postprocess.c:990: warning: dereferencing type-punned pointer will break strict-aliasing rules

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkgsrc/multimedia/ffmpeg/work/.gcc/bin/gcc -O3 -Wall -pthread -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c libpostproc/postprocess.c -fPIC -DPIC -o libpostproc/.libs/postprocess.o -I/usr/pkgsrc/multimedia/ffmpeg/work/.buildlink/include -L/usr/pkgsrc/multimedia/ffmpeg/work/.buildlink/lib 

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkg/bin/libtool --mode=compile cc -O3 -Wall -pthread -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o libpostproc/postprocess.o libpostproc/postprocess.c 

>How-To-Repeat:
Build multimedia/ffmpeg on x86 4.99.9 with PKG_DEFAULT_OPTIONS+=mmx set.  I have a suspicion that this may affect all x86 machines with gcc4.
>Fix:
Unknown, sorry.