[alex at fsn.hu: Re: [Mplayer-advusers] [waschk at informatik.uni-rostock.de: [MPlayer-users] BUG pre2 doesn't build on AMD64]]

Götz Waschk waschk at informatik.uni-rostock.de
Sat Oct 11 18:51:01 CEST 2003


>> Anybody?
>> (well I guess nobody has amd64 around, but just in case;)
> Try the attached patch - apply it in the libavcodec/i386/ dir.
> Index: cputest.c
> ===================================================================
> RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/i386/cputest.c,v
> retrieving revision 1.8
> diff -u -r1.8 cputest.c
> --- cputest.c	26 Nov 2002 16:26:58 -0000	1.8
> +++ cputest.c	9 Oct 2003 14:37:51 -0000
> @@ -24,7 +24,7 @@
>                            /* See if CPUID instruction is supported ... */
>                            /* ... Get copies of EFLAGS into eax and ecx */
>                            "pushf\n\t"
> -                          "popl %0\n\t"
> +                          "pop %0\n\t"
>                            "movl %0, %1\n\t"
>                            
>                            /* ... Toggle the ID bit in one copy and store */
> @@ -35,7 +35,7 @@
>                            
>                            /* ... Get the (hopefully modified) EFLAGS */
>                            "pushf\n\t"
> -                          "popl %0\n\t"
> +                          "pop %0\n\t"
>                            : "=a" (eax), "=c" (ecx)
>                            :
>                            : "cc" 

Thanks, but it didn't help:
http://eijk.homelinux.org/build/new_contrib/amd64/problem/mplayer1.0-1.0-0.pre2.4mdk

In fact, it became even worse (quote from the link above):
{standard input}: i386/dsputil_mmx.c: In function `clear_blocks_mmx':
Assembler messages:
i386/dsputil_mmx.c:399: warning: cast from pointer to integer of different size
{standard input}:57: Error: `(%edx,%edx)' is not a valid 64 bit base/index expression
{standard input}:62: Error: `(%rsi,%edx)' is not a valid 64 bit base/index expression
{standard input}:63: Error: `1(%rsi,%edx)' is not a valid 64 bit base/index expression
{standard input}:77: Error: `(%rdi,%edx)' is not a valid 64 bit base/index expression
{standard input}:78: Error: suffix or operands invalid for `add'
{standard input}:79: Error: suffix or operands invalid for `add'
{standard input}:82: Error: `(%rsi,%edx)' is not a valid 64 bit base/index expression
{standard input}:83: Error: `1(%rsi,%edx)' is not a valid 64 bit base/index expression
{standard input}:97: Error: `(%rdi,%edx)' is not a valid 64 bit base/index expression
{standard input}:98: Error: suffix or operands invalid for `add'
{standard input}:99: Error: suffix or operands invalid for `add'
{standard input}:135: Error: suffix or operands invalid for `add'
{standard input}:136: Error: Incorrect register `%rcx' used with `l' suffix
{standard input}:144: Error: suffix or operands invalid for `add'
[schnipp]

CU
-- 
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
    Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"



More information about the MPlayer-advusers mailing list