Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dominator compile fails on Mac OS / Lion (64-bit) #2

Closed
dmitris opened this issue Jun 19, 2012 · 2 comments
Closed

dominator compile fails on Mac OS / Lion (64-bit) #2

dmitris opened this issue Jun 19, 2012 · 2 comments

Comments

@dmitris
Copy link
Collaborator

dmitris commented Jun 19, 2012

Compilation of the up-to-date source fails with an asm error (I could attach the full error if it's possible):

/usr/bin/gcc -o x86state.o -c -fvisibility=hidden -DTHEORA_DISABLE_ENCODE -DOC_X86_ASM -DOC_X86_64_ASM -DOSTYPE="Darwin11.4.0" -DOSARCH=Darwin -I/Users/dsavints/dev/hack/dominator/media/libtheora/lib -I/Users/dsavints/dev/hack/dominator/media/libtheora/lib -I. -I../../../dist/include -I../../../dist/include/nsprpub -I/Users/dsavints/dev/hack/dominator/ff-taintOPT/dist/include/nspr -I/Users/dsavints/dev/hack/dominator/ff-taintOPT/dist/include/nss -fPIC -DTAINTED=1 -Wall -W -Wno-unused -Wpointer-arith -Wdeclaration-after-statement -Wcast-align -W -DTAINTED=1 -fno-strict-aliasing -fno-common -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -g -O3 -fomit-frame-pointer -DTAINTED=1 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/x86state.pp /Users/dsavints/dev/hack/dominator/media/libtheora/lib/x86/x86state.c
x86cpu.c
/usr/bin/gcc -o x86cpu.o -c -fvisibility=hidden -DTHEORA_DISABLE_ENCODE -DOC_X86_ASM -DOC_X86_64_ASM -DOSTYPE="Darwin11.4.0" -DOSARCH=Darwin -I/Users/dsavints/dev/hack/dominator/media/libtheora/lib -I/Users/dsavints/dev/hack/dominator/media/libtheora/lib -I. -I../../../dist/include -I../../../dist/include/nsprpub -I/Users/dsavints/dev/hack/dominator/ff-taintOPT/dist/include/nspr -I/Users/dsavints/dev/hack/dominator/ff-taintOPT/dist/include/nss -fPIC -DTAINTED=1 -Wall -W -Wno-unused -Wpointer-arith -Wdeclaration-after-statement -Wcast-align -W -DTAINTED=1 -fno-strict-aliasing -fno-common -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -g -O3 -fomit-frame-pointer -DTAINTED=1 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/x86cpu.pp /Users/dsavints/dev/hack/dominator/media/libtheora/lib/x86/x86cpu.c
cc1: error in backend: Invalid operand found in inline asm: '#OC_ROW_IDCT_10
#OC_IDCT_BEGIN_10
movq (3)_16-8+${1:H},%mm2
nop
movq 0x30-8+${2:H},%mm6
movq %mm2,%mm4
movq 0x50-8+${2:H},%mm1
pmulhw %mm6,%mm4
movq (1)_16-8+${1:H},%mm3
pmulhw %mm2,%mm1
movq 0x10-8+${2:H},%mm0
paddw %mm2,%mm4
pxor %mm6,%mm6
paddw %mm1,%mm2
movq (2)_16-8+${1:H},%mm5
pmulhw %mm3,%mm0
movq %mm5,%mm1
paddw %mm3,%mm0
pmulhw 0x70-8+${2:H},%mm3
psubw %mm2,%mm6
pmulhw 0x20-8+${2:H},%mm5
psubw %mm4,%mm0
movq (2)_16-8+${1:H},%mm7
paddw %mm4,%mm4
paddw %mm5,%mm7
paddw %mm0,%mm4
pmulhw 0x60-8+${2:H},%mm1
psubw %mm6,%mm3
movq %mm4,(1)_16-8+${0:H}
paddw %mm6,%mm6
movq 0x40-8+${2:H},%mm4
paddw %mm3,%mm6
movq %mm3,%mm5
pmulhw %mm4,%mm3
movq %mm6,(2)_16-8+${0:H}
movq %mm0,%mm2
movq (0)_16-8+${1:H},%mm6
pmulhw %mm4,%mm0
paddw %mm3,%mm5
paddw %mm0,%mm2
psubw %mm1,%mm5
pmulhw %mm4,%mm6
paddw (0)_16-8+${1:H},%mm6
paddw %mm1,%mm1
movq %mm6,%mm4
paddw %mm5,%mm1
psubw %mm2,%mm6
paddw %mm2,%mm2
movq (1)_16-8+${0:H},%mm0
paddw %mm6,%mm2
psubw %mm1,%mm2
nop
#end OC_IDCT_BEGIN_10
movq (2)_16-8+${0:H},%mm3
psubw %mm7,%mm4
paddw %mm1,%mm1
paddw %mm7,%mm7
paddw %mm2,%mm1
paddw %mm4,%mm7
psubw %mm3,%mm4
paddw %mm3,%mm3
psubw %mm5,%mm6
paddw %mm5,%mm5
paddw %mm4,%mm3
paddw %mm6,%mm5
psubw %mm0,%mm7
paddw %mm0,%mm0
movq %mm1,(1)_16-8+${0:H}
paddw %mm7,%mm0
#end OC_ROW_IDCT_10
#OC_TRANSPOSE
movq %mm4,%mm1
punpcklwd %mm5,%mm4
movq %mm0,(0)_16-8+${0:H}
punpckhwd %mm5,%mm1
movq %mm6,%mm0
punpcklwd %mm7,%mm6
movq %mm4,%mm5
punpckldq %mm6,%mm4
punpckhdq %mm6,%mm5
movq %mm1,%mm6
movq %mm4,((4)-4)_16+8-8+${0:H}
punpckhwd %mm7,%mm0
movq %mm5,((5)-4)_16+8-8+${0:H}
punpckhdq %mm0,%mm6
movq (0)_16-8+${0:H},%mm4
punpckldq %mm0,%mm1
movq (1)_16-8+${0:H},%mm5
movq %mm4,%mm0
movq %mm6,((7)-4)_16+8-8+${0:H}
punpcklwd %mm5,%mm0
movq %mm1,((6)-4)_16+8-8+${0:H}
punpckhwd %mm5,%mm4
movq %mm2,%mm5
punpcklwd %mm3,%mm2
movq %mm0,%mm1
punpckldq %mm2,%mm0
punpckhdq %mm2,%mm1
movq %mm4,%mm2
movq %mm0,(0)_16-8+${0:H}
punpckhwd %mm3,%mm5
movq %mm1,(1)_16-8+${0:H}
punpckhdq %mm5,%mm4
punpckldq %mm5,%mm2
movq %mm4,(3)_16-8+${0:H}
movq %mm2,(2)_16-8+${0:H}
#end OC_TRANSPOSE
#OC_COLUMN_IDCT_10
#OC_IDCT_BEGIN_10
movq (3)_16-8+${0:H},%mm2
nop
movq 0x30-8+${2:H},%mm6
movq %mm2,%mm4
movq 0x50-8+${2:H},%mm1
pmulhw %mm6,%mm4
movq (1)_16-8+${0:H},%mm3
pmulhw %mm2,%mm1
movq 0x10-8+${2:H},%mm0
paddw %mm2,%mm4
pxor %mm6,%mm6
paddw %mm1,%mm2
movq (2)_16-8+${0:H},%mm5
pmulhw %mm3,%mm0
movq %mm5,%mm1
paddw %mm3,%mm0
pmulhw 0x70-8+${2:H},%mm3
psubw %mm2,%mm6
pmulhw 0x20-8+${2:H},%mm5
psubw %mm4,%mm0
movq (2)_16-8+${0:H},%mm7
paddw %mm4,%mm4
paddw %mm5,%mm7
paddw %mm0,%mm4
pmulhw 0x60-8+${2:H},%mm1
psubw %mm6,%mm3
movq %mm4,(1)_16-8+${0:H}
paddw %mm6,%mm6
movq 0x40-8+${2:H},%mm4
paddw %mm3,%mm6
movq %mm3,%mm5
pmulhw %mm4,%mm3
movq %mm6,(2)_16-8+${0:H}
movq %mm0,%mm2
movq (0)_16-8+${0:H},%mm6
pmulhw %mm4,%mm0
paddw %mm3,%mm5
paddw %mm0,%mm2
psubw %mm1,%mm5
pmulhw %mm4,%mm6
paddw (0)_16-8+${0:H},%mm6
paddw %mm1,%mm1
movq %mm6,%mm4
paddw %mm5,%mm1
psubw %mm2,%mm6
paddw %mm2,%mm2
movq (1)*16-8+${0:H},%mm0
paddw %mm6,%mm2
psubw %mm1,%mm2
nop

@dmitris dmitris closed this as completed Jul 3, 2012
@dmitris
Copy link
Collaborator Author

dmitris commented Jul 3, 2012

yeah - trying to work this out does not seem like a good idea. We just need to transfer the open source part to the more recent FF build :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants