Closed Bug 1049107 Opened 10 years ago Closed 9 years ago

Building SeaMonkey with ac_add_options --disable-eme fails

Categories

(Core :: Audio/Video, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kevink9876543, Assigned: cpearce)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1 (Beta/Release)
Build ID: 20140612173529

Steps to reproduce:

Try to build 32-bit SeaMonkey on Linux i686 from c-c rev f734b640be11 / m-c rev b50bb656674e with the following mozconfig:

ac_add_options --disable-eme
ac_add_options --enable-application=suite
mk_add_options MOZ_OBJDIR=/media/mozilla/comm-central/objdir-sm-release
mk_add_options MOZ_MAKE_FLAGS="-j4"


Actual results:

Build failed with the following error:

In file included from ../../../dist/include/MediaDecoderStateMachine.h:87:0,
                 from /media/mozilla/comm-central/mozilla/content/media/wave/WaveDecoder.cpp:6,
                 from /media/mozilla/comm-central/objdir-sm-release/mozilla/content/media/wave/Unified_cpp_content_media_wave0.cpp:2:
../../../dist/include/MediaDecoder.h:193:30: fatal error: mozilla/CDMProxy.h: No such file or directory
compilation terminated.


Removing ac_add_options --disable-eme eliminates that error, but that is not an acceptable solution for me.


Expected results:

Should have built SeaMonkey without DRM support.
Component: Build Config → Video/Audio
The error is different today (c-c rev 1c0a95ffa495 / m-c rev 2f198e81ed98):

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/media/mozilla/comm-central/mozilla/python/mozbuild/mozbuild/action/webidl.py", line 17, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/media/mozilla/comm-central/mozilla/python/mozbuild/mozbuild/action/webidl.py", line 13, in main
    manager.generate_build_files()
  File "/media/mozilla/comm-central/mozilla/dom/bindings/mozwebidlcodegen/__init__.py", line 241, in generate_build_files
    self._parse_webidl()
  File "/media/mozilla/comm-central/mozilla/dom/bindings/mozwebidlcodegen/__init__.py", line 324, in _parse_webidl
    self._parser_results = parser.finish()
  File "/media/mozilla/comm-central/mozilla/dom/bindings/parser/WebIDL.py", line 5601, in finish
    production.finish(self.globalScope())
  File "/media/mozilla/comm-central/mozilla/dom/bindings/parser/WebIDL.py", line 693, in finish
    self.parent.finish(scope)
  File "/media/mozilla/comm-central/mozilla/dom/bindings/parser/WebIDL.py", line 761, in finish
    member.finish(scope)
  File "/media/mozilla/comm-central/mozilla/dom/bindings/parser/WebIDL.py", line 3133, in finish
    t = self.type.complete(scope)
  File "/media/mozilla/comm-central/mozilla/dom/bindings/parser/WebIDL.py", line 1843, in complete
    self.inner = self.inner.complete(scope)
  File "/media/mozilla/comm-central/mozilla/dom/bindings/parser/WebIDL.py", line 1716, in complete
    [self.location])
WebIDL.WebIDLError: error: Unresolved type '<unresolved scope>::MediaKeys'., /media/mozilla/comm-central/objdir-sm-release/mozilla/dom/bindings/HTMLMediaElement.webidl line 150:21
  readonly attribute MediaKeys? mediaKeys;
                     ^
Assignee: nobody → cpearce
Attached patch PatchSplinter Review
Add more #ifdefs around new EME code.
Attachment #8469648 - Flags: review?(ajones)
Comment on attachment 8469648 [details] [diff] [review]
Patch

Review of attachment 8469648 [details] [diff] [review]:
-----------------------------------------------------------------

It would be nice to do it in a way that has less #ifdefs
Attachment #8469648 - Flags: review?(ajones) → review+
https://hg.mozilla.org/mozilla-central/rev/d7680ff0e960
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Confirmed fixed, thank you!
Reopening, again building SeaMonkey with ac_add_options --disable-eme fails:
(these errors are with c-c rev a162396c7876  / m-c rev 0c66a9fd9085, but it failed before that)

Unified_cpp_dom_crypto0.o
c++ -o Unified_cpp_dom_crypto0.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /media/mozilla/comm-central/mozilla/config/gcc_hidden.h -DOS_POSIX=1 -DOS_LINUX=1 -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DMOZ_GLUE_IN_PROGRAM -DAB_CD=en-US -DNO_NSPR_10_SUPPORT -I/media/mozilla/comm-central/mozilla/dom/crypto -I. -I/media/mozilla/comm-central/objdir-sm-release/ipc/ipdl/_ipdlheaders -I/media/mozilla/comm-central/mozilla/ipc/chromium/src -I/media/mozilla/comm-central/mozilla/ipc/glue -I/media/mozilla/comm-central/mozilla/security/manager/ssl/src -I../../dist/include   -I/media/mozilla/comm-central/objdir-sm-release/dist/include/nspr -I/media/mozilla/comm-central/objdir-sm-release/dist/include/nss       -fPIC   -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MP -MF .deps/Unified_cpp_dom_crypto0.o.pp  -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-invalid-offsetof -Wcast-align -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -DNDEBUG -DTRIMMED -g -freorder-blocks -Os  -fomit-frame-pointer      /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp
libstorage_src.a.desc
rm -f libstorage_src.a
/media/mozilla/comm-central/objdir-sm-release/_virtualenv/bin/python /media/mozilla/comm-central/mozilla/config/expandlibs_gen.py -o libstorage_src.a.desc mozStorageBindingParams.o mozStorageConnection.o Unified_cpp_storage_src0.o Unified_cpp_storage_src1.o  
make[4]: Leaving directory `/media/mozilla/comm-central/objdir-sm-release/storage/src'
make[4]: Entering directory `/media/mozilla/comm-central/objdir-sm-release/dom/offline'
mkdir -p '.deps/'
Unified_cpp_dom_offline0.o
c++ -o Unified_cpp_dom_offline0.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /media/mozilla/comm-central/mozilla/config/gcc_hidden.h -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DMOZ_GLUE_IN_PROGRAM -DAB_CD=en-US -DNO_NSPR_10_SUPPORT -I/media/mozilla/comm-central/mozilla/dom/offline -I. -I/media/mozilla/comm-central/mozilla/dom/base -I../../dist/include   -I/media/mozilla/comm-central/objdir-sm-release/dist/include/nspr -I/media/mozilla/comm-central/objdir-sm-release/dist/include/nss       -fPIC   -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MP -MF .deps/Unified_cpp_dom_offline0.o.pp  -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-invalid-offsetof -Wcast-align -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -DNDEBUG -DTRIMMED -g -freorder-blocks -Os  -fomit-frame-pointer      /media/mozilla/comm-central/objdir-sm-release/dom/offline/Unified_cpp_dom_offline0.cpp
In file included from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:0:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp: In member function ‘uint8_t* mozilla::dom::CryptoBuffer::Assign(const mozilla::dom::ArrayBufferViewOrArrayBuffer&)’:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:53:12: error: invalid use of incomplete type ‘const class mozilla::dom::ArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:7:0,
                 from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.h:17:7: error: forward declaration of ‘const class mozilla::dom::ArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:0:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:54:24: error: invalid use of incomplete type ‘const class mozilla::dom::ArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:7:0,
                 from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.h:17:7: error: forward declaration of ‘const class mozilla::dom::ArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:0:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:55:19: error: invalid use of incomplete type ‘const class mozilla::dom::ArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:7:0,
                 from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.h:17:7: error: forward declaration of ‘const class mozilla::dom::ArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:0:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:56:24: error: invalid use of incomplete type ‘const class mozilla::dom::ArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:7:0,
                 from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.h:17:7: error: forward declaration of ‘const class mozilla::dom::ArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:0:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp: In member function ‘uint8_t* mozilla::dom::CryptoBuffer::Assign(const mozilla::dom::OwningArrayBufferViewOrArrayBuffer&)’:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:68:12: error: invalid use of incomplete type ‘const class mozilla::dom::OwningArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:7:0,
                 from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.h:18:7: error: forward declaration of ‘const class mozilla::dom::OwningArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:0:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:69:24: error: invalid use of incomplete type ‘const class mozilla::dom::OwningArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:7:0,
                 from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.h:18:7: error: forward declaration of ‘const class mozilla::dom::OwningArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:0:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:70:19: error: invalid use of incomplete type ‘const class mozilla::dom::OwningArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:7:0,
                 from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.h:18:7: error: forward declaration of ‘const class mozilla::dom::OwningArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:0:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:71:24: error: invalid use of incomplete type ‘const class mozilla::dom::OwningArrayBufferViewOrArrayBuffer’
In file included from /media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.cpp:7:0,
                 from /media/mozilla/comm-central/objdir-sm-release/dom/crypto/Unified_cpp_dom_crypto0.cpp:2:
/media/mozilla/comm-central/mozilla/dom/crypto/CryptoBuffer.h:18:7: error: forward declaration of ‘const class mozilla::dom::OwningArrayBufferViewOrArrayBuffer’
c++ -o Unified_cpp_dom_base6.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /media/mozilla/comm-central/mozilla/config/gcc_hidden.h -DOS_POSIX=1 -DOS_LINUX=1 -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DMOZ_GLUE_IN_PROGRAM -DAB_CD=en-US -DNO_NSPR_10_SUPPORT -I/media/mozilla/comm-central/mozilla/dom/base -I. -I/media/mozilla/comm-central/objdir-sm-release/ipc/ipdl/_ipdlheaders -I/media/mozilla/comm-central/mozilla/dom/base/../battery -I/media/mozilla/comm-central/mozilla/dom/base/../bluetooth -I/media/mozilla/comm-central/mozilla/dom/base/../events -I/media/mozilla/comm-central/mozilla/dom/base/../media -I/media/mozilla/comm-central/mozilla/dom/base/../network -I/media/mozilla/comm-central/mozilla/dom/base/../time -I/media/mozilla/comm-central/mozilla/caps -I/media/mozilla/comm-central/mozilla/docshell/base -I/media/mozilla/comm-central/mozilla/dom/base -I/media/mozilla/comm-central/mozilla/dom/geolocation -I/media/mozilla/comm-central/mozilla/dom/html -I/media/mozilla/comm-central/mozilla/dom/ipc -I/media/mozilla/comm-central/mozilla/dom/storage -I/media/mozilla/comm-central/mozilla/dom/svg -I/media/mozilla/comm-central/mozilla/dom/workers -I/media/mozilla/comm-central/mozilla/dom/xbl -I/media/mozilla/comm-central/mozilla/dom/xml -I/media/mozilla/comm-central/mozilla/dom/xslt/xpath -I/media/mozilla/comm-central/mozilla/dom/xul -I/media/mozilla/comm-central/mozilla/image/src -I/media/mozilla/comm-central/mozilla/js/ipc -I/media/mozilla/comm-central/mozilla/js/xpconnect/src -I/media/mozilla/comm-central/mozilla/js/xpconnect/wrappers -I/media/mozilla/comm-central/mozilla/layout/base -I/media/mozilla/comm-central/mozilla/layout/generic -I/media/mozilla/comm-central/mozilla/layout/style -I/media/mozilla/comm-central/mozilla/layout/svg -I/media/mozilla/comm-central/mozilla/layout/xul -I/media/mozilla/comm-central/mozilla/netwerk/base/src -I/media/mozilla/comm-central/mozilla/widget -I/media/mozilla/comm-central/mozilla/xpcom/ds -I/media/mozilla/comm-central/mozilla/netwerk/sctp/datachannel -I/media/mozilla/comm-central/mozilla/ipc/chromium/src -I/media/mozilla/comm-central/mozilla/ipc/glue -I../../dist/include   -I/media/mozilla/comm-central/objdir-sm-release/dist/include/nspr -I/media/mozilla/comm-central/objdir-sm-release/dist/include/nss       -fPIC   -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MP -MF .deps/Unified_cpp_dom_base6.o.pp  -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-invalid-offsetof -Wcast-align -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -DNDEBUG -DTRIMMED -g -freorder-blocks -Os  -fomit-frame-pointer  -I/media/mozilla/comm-central/mozilla/widget/gtk/compat -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-unix-print-2.0    /media/mozilla/comm-central/objdir-sm-release/dom/base/Unified_cpp_dom_base6.cpp
Unified_cpp_dom_base7.o
make[4]: *** [Unified_cpp_dom_crypto0.o] Error 1
make[4]: Leaving directory `/media/mozilla/comm-central/objdir-sm-release/dom/crypto'
make[3]: *** [dom/crypto/target] Error 2
make[3]: *** Waiting for unfinished jobs....
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
This looks like a non-EME specific failure in the WebCrypto code, which has no dependencies on EME. Does building without --disable-eme work?
Yes, building without ac_add_options --disable-eme works.
Target Milestone: mozilla34 → ---
Finally I found the chance to try another self build of Nightly.
This WFM with c-c rev 54c81982f309 / m-c rev c1f6345f2803
:D
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: