[Ffmpeg-devel] Broken trunk on AMD64 with PIC enabled

Diego 'Flameeyes' Pettenò flameeyes
Tue Apr 3 18:16:10 CEST 2007


I've been trying for a couple of days now to build FFmpeg on AMD64 with
PIC enabled (both with --enable-shared and by enabling PIC externally
to embed FFmpeg's build system with xine's), and it always fails with:

/tmp/ccVd770a.s: Assembler messages:
/tmp/ccVd770a.s:31: Error: junk `(%rip)' after expression
/tmp/ccVd770a.s:44: Error: junk `(%rip)' after expression
/tmp/ccVd770a.s:46: Error: junk `(%rip)+128' after expression
/tmp/ccVd770a.s:61: Error: junk `(%rip)' after expression
/tmp/ccVd770a.s:15709: Error: junk `(%rip)' after expression
/tmp/ccVd770a.s:15722: Error: junk `(%rip)' after expression

the code is, for instance:

        and    $0xC0       , %esi
        movzbl ff_h264_lps_range(%rip)(%eax, %esi, 2), %esi

problem seems to come from cabac.h:

        "andl $0xC0, %%ebx                      \n\t"
        "movzbl "MANGLE(ff_h264_lps_range)"(%0, %%ebx, 2), %%esi\n\t"

(as far as I can see, %ebx has been replaced with %esi on the output).

I have no clue what's causing this.

For what it's worth, I've been trying binutils 2.17.50.0.12, 13 and 14
with the same results. They all are able to build FFmpeg before, and I
suppose the cause is revision 8549.

-- 
Diego "Flameeyes" Petten?
http://farragut.flameeyes.is-a-geek.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070403/987f60c1/attachment.pgp>



More information about the ffmpeg-devel mailing list