Bug 195505

Summary: multimedia/libvpx clang35 import build failure
Product: Ports & Packages Reporter: Johannes M Dieterich <jmd>
Component: Individual Port(s)Assignee: Ashish SHUKLA <ashish>
Status: Closed DUPLICATE    
Severity: Affects Many People CC: dim
Priority: --- Flags: bugzilla: maintainer-feedback? (ashish)
Version: Latest   
Hardware: amd64   
OS: Any   
Bug Depends on:    
Bug Blocks: 195480    

Description Johannes M Dieterich freebsd_committer freebsd_triage 2014-11-29 17:53:57 UTC
On the clang35 import branch (svn.freebsd.org/base/projects/clang350-import), multimedia/libvpx fails to build as follows:

mkdir -p vp9/common/x86/
/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \
            --build-pfx= --depfile=vp9/common/x86/vp9_intrapred_ssse3.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ vp9/common/x86/vp9_intrapred_ssse3.asm > vp9/common/x86/vp9_intrapred_ssse3.asm.d
/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \
            --build-pfx= --depfile=third_party/x86inc/x86inc.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ third_party/x86inc/x86inc.asm > third_party/x86inc/x86inc.asm.d
/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \
            --build-pfx= --depfile=vp9/common/x86/vp9_intrapred_sse2.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ vp9/common/x86/vp9_intrapred_sse2.asm > vp9/common/x86/vp9_intrapred_sse2.asm.d
mkdir -p vp9/common/x86/
/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \
            --build-pfx= --depfile=vp9/common/x86/vp9_copy_sse2.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ vp9/common/x86/vp9_copy_sse2.asm > vp9/common/x86/vp9_copy_sse2.asm.d
mkdir -p vp9/common/x86/
/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \
            --build-pfx= --depfile=vp9/common/x86/vp9_subpixel_8t_ssse3.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ vp9/common/x86/vp9_subpixel_8t_ssse3.asm > vp9/common/x86/vp9_subpixel_8t_ssse3.asm.d
vp8/encoder/vp8_asm_enc_offsets.c:23:1: error: unexpected token in argument list
DEFINE(vp8_block_coeff,                         offsetof(BLOCK, coeff));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:82:2: note: expanded from here
"vp8_block_coeff"
 ^
<inline asm>:2:21: note: instantiated into assembly here
vp8_block_coeff EQU $8
                    ^
vp8/encoder/vp8_asm_enc_offsets.c:24:1: error: unexpected token in argument list
DEFINE(vp8_block_zbin,                          offsetof(BLOCK, zbin));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:83:2: note: expanded from here
"vp8_block_zbin"
 ^
<inline asm>:2:20: note: instantiated into assembly here
vp8_block_zbin EQU $40
                   ^
vp8/encoder/vp8_asm_enc_offsets.c:25:1: error: unexpected token in argument list
DEFINE(vp8_block_round,                         offsetof(BLOCK, round));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macromkdir -p vp9/common/x86/
 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:84:2: note: expanded from here
"vp8_block_round"
 ^
<inline asm>:2:21: note: instantiated into assembly here
vp8_block_round EQU $56
                    ^
vp8/encoder/vp8_asm_enc_offsets.c:26:1: error: unexpected token/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \
            --build-pfx= --depfile=vp9/common/x86/vp9_subpixel_8t_sse2.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ vp9/common/x86/vp9_subpixel_8t_sse2.asm > vp9/common/x86/vp9_subpixel_8t_sse2.asm.d
 in argument list
DEFINE(vp8_block_quant,                         offsetof(BLOCK, quant));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:85:2: note: expanded from here
"vp8_block_quant"
 ^
<inline asm>:2:21: note: instantiated into assembly here
vp8_block_quant EQU $16
                    ^
vp8/encoder/vp8_asm_enc_offsets.c:27:1: error: unexpected token in argument list
DEFINE(vp8_block_quant_fast,                    offsetof(BLOCK, quant_fast));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:86:2: note: expanded from here
"vp8_block_quant_fast"
 ^
<inline asm>:2:26: note: instantiated into assembly here
vp8_block_quant_fast EQU $24
                         ^
vp8/encoder/vp8_asm_enc_offsets.c:28:1: error: unexpected mkdir -p vp9/common/x86/
token in argument list
DEFINE(vp8_block_zbin_extra,                    offsetof(BLOCK, zbin_extra));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:87:2: note: expanded from here
"vp8_block_zbin_extra"
 ^
<inline asm>:2:26: note: instantiated into assembly here
vp8_block_zbin_extra EQU $64
                         ^
vp8/encoder/vp8_asm_enc_offsets.c:29:1: error: unexpected token in argument list
DEFINE(vp8_block_zrun_zbin_boost,               offsetof(BLOCK, zrun_zbin_boost));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:88:2: note: expanded from here
"vp8_block_zrun_zbin_boost"
 ^
<inline asm>:2:31: note: instantiated into assembly here
vp8_block_zrun_zbin_boost EQU $48
                              ^
vp8/encoder/vp8_asm_enc_offsets.c:30:1: error: unexpected token in argument list
DEFINE(vp8_block_quant_shift,                   offsetof(BLOCK, quant_shift));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:89:2: note: expanded from here
"vp8_block_quant_shift"
 ^
<inline asm>:2:27: note: instantiated into assembly here
vp8_block_quant_shift EQU $32
                          ^
vp8/encoder/vp8_asm_enc_offsets.c:32:1: error: unexpected token in argument list
DEFINE(vp8_blockd_qcoeff,                       offsetof(BLOCKD, qcoeff));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:90:2: note: expanded from here
"vp8_blockd_qcoeff"
 ^
<inline asm>:2:23: note: instantiated into assembly here
vp8_blockd_qcoeff EQU $0
                      ^
vp8/encoder/vp8_asm_enc_offsets.c:33:1: error: unexpected token in argument list
DEFINE(vp8_blockd_dequant,                      offsetof(BLOCKD, dequant));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:91:2: note: expanded from here
"vp8_blockd_dequant"
 ^
<inline asm>:2:24: note: instantiated into assembly here
vp8_blockd_dequant EQU $24
                       ^
vp8/encoder/vp8_asm_enc_offsets.c:34:1: error: unexpected token in argument list
DEFINE(vp8_blockd_dqcoeff,                      offsetof(BLOCKD, dqcoeff));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:92:2: note: expanded from here
"vp8_blockd_dqcoeff"
 ^
<inline asm>:2:24: note: instantiated into assembly here
vp8_blockd_dqcoeff EQU $8
                       ^
/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \
vp8/encoder/vp8_asm_enc_offsets.c:35:1: error: unexpected token in argument list
            --build-pfx= --depfile=vp9/common/x86/vp9_loopfilter_mmx.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ vp9/common/x86/vp9_loopfilter_mmx.asm > vp9/common/x86/vp9_loopfilter_mmx.asm.d
DEFINE(vp8_blockd_eob,                          offsetof(BLOCKD, eob));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:93:2: note: expanded from here
"vp8_blockd_eob"
 ^
<inline asm>:2:20: note: instantiated into assembly here
vp8_blockd_eob EQU $40
                   ^
vp8/encoder/vp8_asm_enc_offsets.c:38:1: error: unexpected token in argument list
DEFINE(vp8_block_base_src,                      offsetof(BLOCK, base_src));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:94:2: note: expanded from here
"vp8_block_base_src"
 ^
<inline asm>:2:24: note: instantiated into assembly here
vp8_block_base_src EQU $72
                       ^
vp8/encoder/vp8_asm_enc_offsets.c:39:1: error: unexpected token in argument list
DEFINE(vp8_block_src,                           offsetof(BLOCK, src));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:95:2: note: expanded from here
"vp8_block_src"
 ^
<inline asm>:2:19mkdir -p vp9/encoder/x86/
: note: instantiated into assembly here
vp8_block_src EQU $80
                  ^
vp8/encoder/vp8_asm_enc_offsets.c:40:1: error: unexpected token in argument list
DEFINE(vp8_block_src_diff,                      offsetof(BLOCK, src_diff));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:96:2: note: expanded from here
"vp8_block_src_diff"
 ^
<inline asm>:2:24: note: instantiated into assembly here
vp8_block_src_diff EQU $0
                       ^
vp8/encoder/vp8_asm_enc_offsets.c:41:1: error: unexpected token in argument list
DEFINE(vp8_block_src_stride,                    offsetof(BLOCK, src_stride));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:97:2: note: expanded from here
"vp8_block_src_stride"
 ^
<inline asm>:2:26: note: instantiated into assembly here
vp8_block_src_stride EQU $84
                         ^
mkdir -p vp9/encoder/x86/
vp8/encoder/vp8_asm_enc_offsets.c:43:1: error: unexpected token in argument list
DEFINE(vp8_blockd_predictor,                    offsetof(BLOCKD, predictor));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \

            --build-pfx= --depfile=vp9/encoder/x86/vp9_ssim_opt.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ vp9/encoder/x86/vp9_ssim_opt.asm > vp9/encoder/x86/vp9_ssim_opt.asm.d
<scratch space>:98:2: note: expanded from here
"vp8_blockd_predictor"
 ^
<inline asm>:2:26: note: instantiated into assembly here
vp8_blockd_predictor EQU $16
                         ^
vp8/encoder/vp8_asm_enc_offsets.c:46:1: error: unexpected token in argument list
DEFINE(vp8_writer_lowvalue,                     offsetof(vp8_writer, lowvalue));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:99:2: note: expanded from here
"vp8_writer_lowvalue"
 ^
<inline asm>:2:25: note: instantiated into assembly here
vp8_writer_lowvalue EQU $0
                        ^
/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \
            --build-pfx= --depfile=vp9/encoder/x86/vp9_sad_sse4.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ vp9/encoder/x86/vp9_sad_sse4.asm > vp9/encoder/x86/vp9_sad_sse4.asm.d
vp8/encoder/vp8_asm_enc_offsets.c:47:1: error: unexpected token in argument list
DEFINE(vp8_writer_range,                        offsetof(vp8_writer, range));
^
./vpx_ports/asm_offsets.h:22:35: note: expanded from macro 'DEFINE'
#define DEFINE(sym, val) asm("\n" #sym " EQU %0" : : "i" (val))
                                  ^
<scratch space>:100:2: note: expanded from here
"vp8_writer_range"
 ^mkdir -p vp9/encoder/x86/

<inline asm>:2:22: note: instantiated into assembly here/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/build/make/gen_asm_deps.sh \
            --build-pfx= --depfile=vp9/encoder/x86/vp9_sad_ssse3.asm.d -f elf64 -I./ -I"/usr/ports/multimedia/libvpx/work/libvpx-1.3.0"/ vp9/encoder/x86/vp9_sad_ssse3.asm > vp9/encoder/x86/vp9_sad_ssse3.asm.d

vp8_writer_range EQU $4
                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
mkdir -p vp9/encoder/x86/
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-11-29 17:53:57 UTC
Auto-assigned to maintainer ashish@FreeBSD.org
Comment 2 Dimitry Andric freebsd_committer freebsd_triage 2014-12-03 22:05:55 UTC
Will be fixed in bug 195655.

*** This bug has been marked as a duplicate of bug 195655 ***