[libav-bugs] [Bug 683] New: ../configure --toolchain=clang-usan --disable-optimizations breaks build on dsputil_mmx.c

bugzilla at libav.org bugzilla at libav.org
Thu May 15 18:38:54 CEST 2014


http://bugzilla.libav.org/show_bug.cgi?id=683

           Summary: ../configure --toolchain=clang-usan
                    --disable-optimizations breaks build on dsputil_mmx.c
           Product: Libav
           Version: git HEAD
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: kdev at fishzet.co.uk


../configure --toolchain=clang-usan --disable-optimizations && make -j8 fails
on compiling dsputil_mmx.c. With --cc=clang --disable-optimizations (still
using clang, but without ubsan) or with --toolchain=clang-usan (but without
disabling optimazitions) the build works.

The step to reproduce it, and the output:
../configure --toolchain=clang-usan --disable-optimizations && make -j8


CC      libavcodec/x86/dsputil_x86.o
libav/libavcodec/x86/dsputil_mmx.c:186:1: error: invalid operand for inline asm
constraint 'i'
CLEAR_BLOCKS(ff_clear_blocks_mmx, 6)
^
libav/libavcodec/x86/dsputil_mmx.c:173:9: note: expanded from macro
'CLEAR_BLOCKS'
        "pxor %%mm7, %%mm7              \n\t"           \
        ^
libav/libavcodec/x86/dsputil_mmx.c:187:1: error: invalid operand for inline asm
constraint 'i'
CLEAR_BLOCKS(ff_clear_block_mmx, 1)
^
libav/libavcodec/x86/dsputil_mmx.c:173:9: note: expanded from macro
'CLEAR_BLOCKS'
        "pxor %%mm7, %%mm7              \n\t"           \
        ^
libav/libavcodec/x86/dsputil_mmx.c:208:9: error: invalid operand for inline asm
constraint 'i'
        "xorps  %%xmm0, %%xmm0              \n"
        ^
3 errors generated.
make: *** [libavcodec/x86/dsputil_mmx.o] Error 1
make: *** Waiting for unfinished jobs....

-- 
Configure bugmail: http://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list