Subject: pkg/18775: mplayer won't build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dgriffi@cs.csubak.edu>
List: netbsd-bugs
Date: 10/22/2002 15:32:30
>Number:         18775
>Category:       pkg
>Synopsis:       mplayer won't build
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 22 15:33:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     David Griffith
>Release:        NetBSD 1.6
>Organization:
>Environment:
NetBSD zaphod 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep  8 19:43:40 UTC 2002     autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386

>Description:
Build of mplayer fails similarly to how I described in pkg/18140, but different files are complained about.

gmake[1]: Entering directory `/usr/pkgsrc/graphics/mplayer/work/MPlayer-0.90pre8/liba52'
cc -c  -I/usr/pkg/include -I/usr/local/include -I/usr/X11R6/include -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE  -o crc.o crc.c
cc -c  -I/usr/pkg/include -I/usr/local/include -I/usr/X11R6/include -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE  -o resample.o resample.c
In file included from resample.c:19:
resample_mmx.c:10: warning: alignment of `magicF2W' is greater than maximum object file alignment. Using 4.
resample_mmx.c:11: warning: alignment of `wm1010' is greater than maximum object file alignment. Using 4.
resample_mmx.c:12: warning: alignment of `wm0101' is greater than maximum object file alignment. Using 4.
resample_mmx.c:13: warning: alignment of `wm1100' is greater than maximum object file alignment. Using 4.

[The above complaints seem to indicate the main cause of these compile failures. A few more files compile, then we see the following:]

FE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE  -o imdct.o imdct.c
imdct.c:58: warning: alignment of `pm128' is greater than maximum object file alignment. Using 4.
imdct.c:105: warning: alignment of `ps111_1' is greater than maximum object file alignment. Using 4.

[More alignment troubles.  Now for the clincher that made me go  AH-HAH!]

imdct.c:393: warning: alignment of `x_minus_plus_3dnow' is greater than maximum object file alignment. Using 4.
imdct.c:394: warning: alignment of `HSQRT2_3DNOW' is greater than maximum object file alignment. Using 4.
In file included from imdct.c:397:
imdct_3dnow.h: In function `fft_asmb_3dnow':
imdct_3dnow.h:247: Invalid `asm' statement:
imdct_3dnow.h:247: fixed or forbidden register 6 (bp) was spilled for class GENERAL_REGS.


So, now it's bombing out with the 3D-Now checks, which makes me think that modifications to this package are not being tested on an Athlon machine prior to submitting it to the pkgsrc tree.  The prior version of mplayer compiled and ran fine, but when this latest one came out, I tried to update and failed.  This was tested on a fresh machine with a known good hard drive, so I wish to retract what I said about a dead hard drive causing trouble previously.  I don't have a non-Athlon machine on which to test my theory.
>How-To-Repeat:
cd /usr/pkgsrc/graphics/mplayer ; make
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: