[MPlayer-dev-eng] compile problems on alpha

Attila Kinali kinali at gmx.net
Mon Jun 30 22:05:22 CEST 2003


Heyo people,

There are some probs on alpha with mplayer.
First is a problem with the macro swab32 used
with a non variable argument:

---
gcc -c  -O4  -mcpu=ev56 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -o bitstream.o bitstream.c
In file included from bitstream.c:30:
bitstream.h: In function `bitstream_get':
bitstream.h:101: invalid lvalue in unary `&'
bitstream.h:101: invalid lvalue in unary `&'
bitstream.h:101: invalid lvalue in unary `&'
bitstream.h:101: invalid lvalue in unary `&'
bitstream.h: In function `bitstream_get_2':
bitstream.h:134: invalid lvalue in unary `&'
bitstream.h:134: invalid lvalue in unary `&'
bitstream.h:134: invalid lvalue in unary `&'
bitstream.h:134: invalid lvalue in unary `&'
bitstream.c: In function `bitstream_set_ptr':
bitstream.c:48: warning: cast from pointer to integer of different size
---

This is fixed by my patch (which is attached).

And also a little remark on those two swap functions:
the const there doesnt make much sense, so i vote for removing it.

After fixing this, the next bug seems to be a bit more
tricky:

---
gcc -c -O4  -mcpu=ev56 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I../libvo -I..   -DMPG12PLAY -o idct_alpha.o idct_alpha.c
{standard input}: Assembler messages:
{standard input}:289: Error: opcode `maxsw4' not supported for target ev56
{standard input}:290: Error: opcode `minsw4' not supported for target ev56
{standard input}:291: Error: opcode `pkwb' not supported for target ev56
{standard input}:294: Error: opcode `maxsw4' not supported for target ev56
{standard input}:295: Error: opcode `minsw4' not supported for target ev56
{standard input}:296: Error: opcode `pkwb' not supported for target ev56
{standard input}:614: Error: opcode `unpkbw' not supported for target ev56
{standard input}:615: Error: opcode `unpkbw' not supported for target ev56
{standard input}:623: Error: opcode `maxsw4' not supported for target ev56
{standard input}:624: Error: opcode `maxsw4' not supported for target ev56
{standard input}:625: Error: opcode `minsw4' not supported for target ev56
{standard input}:626: Error: opcode `minsw4' not supported for target ev56
{standard input}:627: Error: opcode `pkwb' not supported for target ev56
{standard input}:629: Error: opcode `pkwb' not supported for target ev56
{standard input}:694: Error: opcode `minub8' not supported for target ev56
{standard input}:695: Error: opcode `minub8' not supported for target ev56
{standard input}:696: Error: opcode `minub8' not supported for target ev56
{standard input}:697: Error: opcode `minub8' not supported for target ev56
{standard input}:698: Error: opcode `minub8' not supported for target ev56
{standard input}:699: Error: opcode `minub8' not supported for target ev56
{standard input}:700: Error: opcode `minub8' not supported for target ev56
{standard input}:701: Error: opcode `minub8' not supported for target ev56
{standard input}:723: Error: opcode `minub8' not supported for target ev56
{standard input}:724: Error: opcode `minub8' not supported for target ev56
{standard input}:725: Error: opcode `minub8' not supported for target ev56
{standard input}:726: Error: opcode `minub8' not supported for target ev56
{standard input}:727: Error: opcode `minub8' not supported for target ev56
{standard input}:728: Error: opcode `minub8' not supported for target ev56
{standard input}:729: Error: opcode `minub8' not supported for target ev56
{standard input}:730: Error: opcode `minub8' not supported for target ev56
make[1]: *** [idct_alpha.o] Error 1
make[1]: Leaving directory `/home/attila/src/mplayer/main/libmpeg2'
---

Could someone have a look at this ?
config.h and config.mak of the system are attached

---
$ cat /proc/cpuinfo
cpu                     : Alpha
cpu model               : EV56
cpu variation           : 0
cpu revision            : 0
cpu serial number       : Linux_is_Great!
system type             : Miata
system variation        : 0
system revision         : 0
system serial number    : MILO-2.0.35-c5.
cycle frequency [Hz]    : 433085148 est.
timer frequency [Hz]    : 1024.00
page size [bytes]       : 8192
phys. address bits      : 40
max. addr. space #      : 127
BogoMIPS                : 860.60
kernel unaligned acc    : 0 (pc=0,va=0)
user unaligned acc      : 1088 (pc=12004b9cc,va=12043bb6c)
platform string         : N/A
cpus detected           : 0
---

Greetings

		Attila Kinali

-- 
Emacs ist für mich kein Editor. Für mich ist das genau das gleiche, als wenn
ich nach einem Fahrrad (für die Sonntagbrötchen) frage und einen pangalaktischen
Raumkreuzer mit 10 km Gesamtlänge bekomme. Ich weiß nicht, was ich damit soll.
		-- Frank Klemm, de.comp.os.unix.discussion
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: koth-20030630-bitstream.h.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030630/9064f594/attachment.txt>


More information about the MPlayer-dev-eng mailing list