Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Build error: error in backend: Invalid operand found in inline asm: '#OC_ROW_IDCT

28 views
Skip to first unread message

Henrik Skupin

unread,
Dec 21, 2011, 6:50:07 PM12/21/11
to
Hi all,

I'm trying to find the changeset which has been caused bug 711794
(Firefox 9.0 Crash [@ js::Shape::finalize ]). For that reason I have to
compile builds between Aug 28th and Aug 16th this year. Sadly I always
end-up with the following compiler error. Does anyone know what's wrong
here?

> ccache gcc -o x86cpu.o -c -fvisibility=hidden -DTHEORA_DISABLE_ENCODE -DOC_X86_ASM -DOC_X86_64_ASM -DOSTYPE=\"Darwin11.2.0\" -DOSARCH=Darwin -I/Volumes/data/code/firefox/nightly/media/libtheora/lib -I/Volumes/data/code/firefox/nightly/media/libtheora/lib -I. -I../../../dist/include -I../../../dist/include/nsprpub -I/Volumes/data/code/firefox/obj/nightly/dist/include/nspr -I/Volumes/data/code/firefox/obj/nightly/dist/include/nss -fPIC -Wall -W -Wno-unused -Wpointer-arith -Wdeclaration-after-statement -Wcast-align -W -fno-strict-aliasing -fno-common -pthread -DNO_X11 -DDEBUG -D_DEBUG -DTRACING -g -fno-omit-frame-pointer -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/x86cpu.pp /Volumes/data/code/firefox/nightly/media/libtheora/lib/x86/x86cpu.c
> cc1: error in backend: Invalid operand found in inline asm: '#OC_ROW_IDCT
> #OC_IDCT_BEGIN
> movq (3)*16-8+${1:H},%mm2
> movq 0x30-8+${2:H},%mm6
> movq %mm2,%mm4
> movq ((5)-4)*16+8-8+${1:H},%mm7
> pmulhw %mm6,%mm4
> movq 0x50-8+${2:H},%mm1
> pmulhw %mm7,%mm6
> movq %mm1,%mm5
> pmulhw %mm2,%mm1
> movq (1)*16-8+${1:H},%mm3
> pmulhw %mm7,%mm5
> movq 0x10-8+${2:H},%mm0
[..]
> movdqa %xmm5,0x50-8+${1:H}
> psraw $$4,%xmm6
> movdqa %xmm6,0x60-8+${1:H}
> psraw $$4,%xmm7
> movdqa %xmm7,0x70-8+${1:H}
> >, 0, 44, %RAX<kill>, 1, %reg0, 0, %reg0, 44, %RCX<kill>, 1, %reg0, 0, %reg0, 44, %RDX<kill>, 1, %reg0, 0, %reg0, 44, %RSI<kill>, 1, %reg0, 0, %reg0, 14, %EFLAGS<earlyclobber,def,dead>; dbg:sse2idct.c:212
>
> make[6]: *** [sse2idct.o] Error 1
> make[5]: *** [libs] Error 2
> make[4]: *** [libs_tier_platform] Error 2
> make[3]: *** [tier_platform] Error 2
> make[2]: *** [default] Error 2
> make[1]: *** [realbuild] Error 2
> make: *** [build] Error 2

TIA,
Henrik

Blake Winton

unread,
Dec 22, 2011, 11:34:10 AM12/22/11
to
On 21-12-11 18:50 , Henrik Skupin wrote:
> I'm trying to find the changeset which has been caused bug 711794
> (Firefox 9.0 Crash [@ js::Shape::finalize ]). For that reason I have to
> compile builds between Aug 28th and Aug 16th this year. Sadly I always
> end-up with the following compiler error. Does anyone know what's wrong
> here?
>
>> ccache gcc -o x86cpu.o -c -fvisibility=hidden -DTHEORA_DISABLE_ENCODE -DOC_X86_ASM -DOC_X86_64_ASM -DOSTYPE=\"Darwin11.2.0\" -DOSARCH=Darwin -I/Volumes/data/code/firefox/nightly/media/libtheora/lib -I/Volumes/data/code/firefox/nightly/media/libtheora/lib -I. -I../../../dist/include -I../../../dist/include/nsprpub -I/Volumes/data/code/firefox/obj/nightly/dist/include/nspr -I/Volumes/data/code/firefox/obj/nightly/dist/include/nss -fPIC -Wall -W -Wno-unused -Wpointer-arith -Wdeclaration-after-statement -Wcast-align -W -fno-strict-aliasing -fno-common -pthread -DNO_X11 -DDEBUG -D_DEBUG -DTRACING -g -fno-omit-frame-pointer -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/x86cpu.pp /Volumes/data/code/firefox/nightly/media/libtheora/lib/x86/x86cpu.c
>> cc1: error in backend: Invalid operand found in inline asm: '#OC_ROW_IDCT

Looks like bug 697821. Check out the related bugs, too…

I think I "fixed" it by adding:
CC=clang
CXX=clang++
to my .mozconfig, but that might have just happened at a similar time…

Later,
Blake.

Henrik Skupin

unread,
Dec 22, 2011, 3:18:28 PM12/22/11
to
Blake Winton wrote on 12/22/11 5:34 PM:

> Looks like bug 697821. Check out the related bugs, too…
>
> I think I "fixed" it by adding:
> CC=clang
> CXX=clang++
> to my .mozconfig, but that might have just happened at a similar time…

Thanks Blake! At first that didn't help. Now I have applied the attached
patch from that bug and it seems to work for build from Aug this year now.

--
Henrik
0 new messages