Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Trouble compiling MPlayer
@ 2002-09-19  9:30 Mathieu MILLET
  2002-09-19 10:52 ` Falk Hueffner
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu MILLET @ 2002-09-19  9:30 UTC (permalink / raw)
  To: axp-list

	Hi everyone,

I'am having trouble compiling MPLayer that give the following messages :

/tmp/ccynnHuS.s: Assembler messages:
/tmp/ccynnHuS.s:67: Error: opcode `unpkbw' not supported for target ev56
/tmp/ccynnHuS.s:78: Error: opcode `unpkbw' not supported for target ev56
/tmp/ccynnHuS.s:134: Error: opcode `unpkbw' not supported for target ev56
/tmp/ccynnHuS.s:135: Error: opcode `unpkbw' not supported for target ev56
/tmp/ccynnHuS.s:137: Error: opcode `unpkbw' not supported for target ev56
/tmp/ccynnHuS.s:148: Error: opcode `unpkbw' not supported for target ev56
/tmp/ccynnHuS.s:215: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:239: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:303: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:310: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:345: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:347: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:470: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:477: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:558: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:565: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:638: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:645: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:759: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:766: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:835: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:837: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:1091: Error: opcode `perr' not supported for target ev56
/tmp/ccynnHuS.s:1098: Error: opcode `perr' not supported for target ev56

I understand that these are from the assembler/compiler and some 
(assembler) instructions are not supported by my ev56 CPU (LX164).

I would like to know by what instructions (or set of instructions) can 
this 'bad instructions' be replaced, before sending a bug report.

Thanks in advance, Mathieu.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Trouble compiling MPlayer
  2002-09-19  9:30 Trouble compiling MPlayer Mathieu MILLET
@ 2002-09-19 10:52 ` Falk Hueffner
  2002-09-24 13:34   ` Vakvarju
  0 siblings, 1 reply; 4+ messages in thread
From: Falk Hueffner @ 2002-09-19 10:52 UTC (permalink / raw)
  To: axp-list

Mathieu MILLET <htam@nerim.net> writes:

> I'am having trouble compiling MPLayer that give the following messages :
> 
> /tmp/ccynnHuS.s: Assembler messages:
> /tmp/ccynnHuS.s:67: Error: opcode `unpkbw' not supported for target ev56

Heh, it's my fault :) Please try this patch:

diff -u -p -r1.54 Makefile
--- Makefile    5 Sep 2002 10:06:20 -0000       1.54
+++ Makefile    19 Sep 2002 10:44:17 -0000
@@ -69,7 +69,12 @@ endif
 ifeq ($(TARGET_ARCH_ALPHA),yes)
 OBJS += alpha/dsputil_alpha.o alpha/mpegvideo_alpha.o alpha/motion_est_alpha.o
 ASM_OBJS += alpha/dsputil_alpha_asm.o
-CFLAGS += -Wa,-mpca56 -finline-limit=8000 -fforce-addr -freduce-all-givs
+CFLAGS += -finline-limit=8000 -fforce-addr -freduce-all-givs -mcpu=ev4
+alpha/motion_est_alpha.o: alpha/motion_est_alpha.c
+       cpu=`echo "$(CFLAGS)" | sed 's,.*-mcpu=\([a-zA-Z0-9]*\).*,\1,'`; \
+       case x"$$cpu" in xev[45]*) newcpu=pca56;; x) newcpu=pca56;; *) newcpu=$cpu;; esac; \
+       cflags=`echo $(CFLAGS) | sed s,$$cpu,$$newcpu,`; \
+       $(CC) $$cflags -c -o $@ $<
 endif
 
 ifeq ($(TARGET_ARCH_POWERPC),yes)

(ugh, ugly, but I cannot think of a better way...)

If you want to optimize these routines for ev56, you could try these:

inline uint64_t perr_emu(uint64_t x, uint64_t y) { /* 14 cycles on ev5 */
    uint64_t bytemask, c, minx, miny, minb, maxb, d;

    bytemask = zapnot(-1, 0x55); // 0x00ff00ff00ff00ff
    
    c = cmpbge(x, y);
    minx = zap(x, c);
    miny = zapnot(y, c);
    minb = minx | miny;
    maxb = minb ^ (x ^ y);

    d = maxb - minb;
    d = ((d & ~bytemask) >> 8) + (d & bytemask);
    d += d >> 32;
    d += d >> 16;
    d &= 0xffff;

    return d;
}

uint64_t unpkbw_emu(uint64_t x) { /* 7 cycles */
    uint64_t t;

    x = zapnot(x, 0x0f);        /* 0000000004030201 */
    x |= x << 16;               /* 00000403??030201 */
    t = zapnot(x, 0x11);        /* 0000000300000001 */
    x <<= 8;                    /* 0004030603020100 */
    x = zapnot(x, 0x44);        /* 0004000000020000 */
    return t | x;
}

-- 
	Falk




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Trouble compiling MPlayer
  2002-09-19 10:52 ` Falk Hueffner
@ 2002-09-24 13:34   ` Vakvarju
  2002-09-24 15:42     ` Falk Hueffner
  0 siblings, 1 reply; 4+ messages in thread
From: Vakvarju @ 2002-09-24 13:34 UTC (permalink / raw)
  To: axp-list

On 19 Sep 2002 12:52:39 +0200
Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> wrote:

> Mathieu MILLET <htam@nerim.net> writes:
> 
> > I'am having trouble compiling MPLayer that give the following messages
> > :
> > 
> > /tmp/ccynnHuS.s: Assembler messages:
> > /tmp/ccynnHuS.s:67: Error: opcode `unpkbw' not supported for target
> > ev56
> 
> Heh, it's my fault :) Please try this patch:
> 

Hi

Did someone succesfuly compiled MPlayer? If yes, is it possible to make
the (patched) source public? Another question: I have a Digital PWS 433au
with 192 MB RAM, Matrox Millenium I PCI with 8 MB RAM. Is it enough to run
MPlayer? 

VV




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Trouble compiling MPlayer
  2002-09-24 13:34   ` Vakvarju
@ 2002-09-24 15:42     ` Falk Hueffner
  0 siblings, 0 replies; 4+ messages in thread
From: Falk Hueffner @ 2002-09-24 15:42 UTC (permalink / raw)
  To: axp-list

Vakvarju <vakvarju@spektrum-3d.hu> writes:

> On 19 Sep 2002 12:52:39 +0200
> Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> wrote:
> 
> > Mathieu MILLET <htam@nerim.net> writes:
> > 
> > > I'am having trouble compiling MPLayer that give the following messages
> > > :
> > > 
> > > /tmp/ccynnHuS.s: Assembler messages:
> > > /tmp/ccynnHuS.s:67: Error: opcode `unpkbw' not supported for target
> > > ev56
> > 
> > Heh, it's my fault :) Please try this patch:
> 
> Did someone succesfuly compiled MPlayer?

The patch was slightly bogus, I've now checked in a better one into
the ffmpeg CVS... So just try checking out ffmpeg, and replace
mplayer's libavcodec dir with ffmpeg's.

> Another question: I have a Digital PWS 433au with 192 MB RAM, Matrox
> Millenium I PCI with 8 MB RAM. Is it enough to run MPlayer?

Depends... If the card doesn't support Xv (try xvinfo), you'll
probably not be able to play much with it, otherwise, low to medium
resolution movies might work.

-- 
	Falk




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-24 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-19  9:30 Trouble compiling MPlayer Mathieu MILLET
2002-09-19 10:52 ` Falk Hueffner
2002-09-24 13:34   ` Vakvarju
2002-09-24 15:42     ` Falk Hueffner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox