"MediaEngine.h:14:10: fatal error: 'DeviceChangeCallback.h' file not found" with --disable-webrtc

RESOLVED FIXED in Firefox 51

Status

()

P1
normal
Rank:
15
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: mats, Assigned: mchiang)

Tracking

({regression})

Trunk
mozilla51
x86_64
Linux
regression
Points:
---

Firefox Tracking Flags

(firefox51 fixed)

Details

Attachments

(2 attachments)

(Reporter)

Description

3 years ago
STR
1. add "ac_add_options --disable-webrtc" to your .mozconfig
2. ./mach build

ACTUAL RESULTS
Compilation failure:
In file included from dom/media/MediaManager.h:8:
dist/include/MediaEngine.h:14:10: fatal error: 'DeviceChangeCallback.h' file not found
#include "DeviceChangeCallback.h"
         ^

It worked fine yesterday so I suspect bug 1286429 is the culprit.
Flags: needinfo?(mchiang)

Comment 1

3 years ago
I get this same error.  This is the error output.  It also began for me on Friday, and remained with yesterday's updates to the nightly repository.

4:23.27 /mnt/to_archive/accum/src/mozilla-central/intl/icu/source/i18n/smpdtfmt.cpp: In member function ‘void icu_56::SimpleDateFormat::subFormat(icu_56::UnicodeString&, UChar, int32_t, UDisplayContext, int32_t, icu_56::FieldPositionHand
ler&, icu_56::Calendar&, icu_56::SimpleDateFormatMutableNFs&, UErrorCode&) const’:
 4:23.27 Warning: -Wunused-but-set-variable in /mnt/to_archive/accum/src/mozilla-central/intl/icu/source/i18n/smpdtfmt.cpp: variable ‘capContextUsageType’ set but not used
 4:23.27 /mnt/to_archive/accum/src/mozilla-central/intl/icu/source/i18n/smpdtfmt.cpp:1410:56: warning: variable ‘capContextUsageType’ set but not used [-Wunused-but-set-variable]
 4:23.27      DateFormatSymbols::ECapitalizationContextUsageType capContextUsageType = DateFormatSymbols::kCapContextUsageOther;
 4:23.27                                                         ^~~~~~~~~~~~~~~~~~~
 4:29.17 In file included from /mnt/to_archive/accum/src/mozilla-central/dom/media/webrtc/MediaEngineDefault.h:17:0,
 4:29.17                  from /mnt/to_archive/accum/src/mozilla-central/dom/media/webrtc/MediaEngineDefault.cpp:5,
 4:29.17                  from /mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dom/media/webrtc/Unified_cpp_dom_media_webrtc0.cpp:2:
 4:29.17 /mnt/to_archive/accum/src/mozilla-central/dom/media/webrtc/MediaEngine.h:14:34: fatal error: DeviceChangeCallback.h: No such file or directory
 4:29.17  #include "DeviceChangeCallback.h"
 4:29.17                                   ^
 4:29.17 compilation terminated.
 4:29.17 
 4:29.17 In the directory  /mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dom/media/webrtc
 4:29.17 The following command failed to execute properly:
 4:29.17 /usr/bin/ccache /usr/lib64/ccache/g++ -std=gnu++11 -o Unified_cpp_dom_media_webrtc0.o -c -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/stl_wrappers -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64
-pc-linux-gnu/dist/system_wrappers -include /mnt/to_archive/accum/src/mozilla-central/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DOS_POSIX=1 -DOS_LINUX=1 -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/mnt/to_archive/a
ccum/src/mozilla-central/dom/media/webrtc -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dom/media/webrtc -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/ipc/ipdl/_ipdlheaders -I/mnt/to_archive/acc
um/src/mozilla-central/ipc/chromium/src -I/mnt/to_archive/accum/src/mozilla-central/ipc/glue -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/include -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-
gnu/dist/include/nspr -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/include/nss -fPIC -DMOZILLA_CLIENT -include /mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/mozilla-config.h -MD -MP -MF .dep
s/Unified_cpp_dom_media_webrtc0.o.pp -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++14-compat -Wno-err
or=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe -g -Wall -fno-schedule-insns2 -fno-lifetime-dse -fno-delete-nu
ll-pointer-checks -O3 -fomit-frame-pointer -Wno-error=attributes -Wno-error=shadow /mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dom/media/webrtc/Unified_cpp_dom_media_webrtc0.cpp
 4:29.17 /mnt/to_archive/accum/src/mozilla-central/config/rules.mk:950: recipe for target 'Unified_cpp_dom_media_webrtc0.o' failed
 4:29.17 gmake[5]: *** [Unified_cpp_dom_media_webrtc0.o] Error 1
 4:29.18 /mnt/to_archive/accum/src/mozilla-central/config/recurse.mk:71: recipe for target 'dom/media/webrtc/target' failed
 4:29.18 gmake[4]: *** [dom/media/webrtc/target] Error 2
 4:29.18 gmake[4]: *** Waiting for unfinished jobs....

Comment 2

3 years ago
Created attachment 8783323 [details]
This is the configuration I use to compile nightly.

This is the local configuration file I use in ~/.mozconfig to compile nightly from my local hg repository.
Rank: 15
Component: WebRTC → WebRTC: Audio/Video
Priority: -- → P1
Assignee: nobody → mchiang
Flags: needinfo?(mchiang)
Comment hidden (mozreview-request)

Comment 4

3 years ago
mozreview-review
Comment on attachment 8783477 [details]
Bug 1296684 - export DeviceChangeCallback.h no matter webrtc is enabled or not;

https://reviewboard.mozilla.org/r/73256/#review71590
Attachment #8783477 - Flags: review?(jib) → review+
Keywords: checkin-needed

Comment 5

3 years ago
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/5a6d14b38f48
export DeviceChangeCallback.h no matter webrtc is enabled or not; r=jib
Keywords: checkin-needed

Comment 6

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/5a6d14b38f48
Status: NEW → RESOLVED
Last Resolved: 3 years ago
status-firefox51: affected → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51

Comment 7

3 years ago
This seems to have fixed the original bug.  But now, when it gets past that error, I get this error:
AccessibleNode.h: No such file or directory
I'm using the original .mozconfig I attached.

8:55.04 In file included from /mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dom/bindings/UnifiedBindings0.cpp:38:0:
 8:55.04 /mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dom/bindings/AccessibleNodeBinding.cpp:7:40: fatal error: mozilla/dom/AccessibleNode.h: No such file or directory
 8:55.04  #include "mozilla/dom/AccessibleNode.h"
 8:55.04                                         ^
 8:55.04 compilation terminated.
 8:55.04 
 8:55.04 In the directory  /mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dom/bindings
 8:55.04 The following command failed to execute properly:
 8:55.04 /usr/bin/ccache /usr/lib64/ccache/g++ -std=gnu++11 -o UnifiedBindings0.o -c -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/stl_wrappers -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/system_wrappers -include /mnt/to_archive/accum/src/mozilla-central/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DOS_POSIX=1 -DOS_LINUX=1 -DHAVE_SIDEBAR -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/mnt/to_archive/accum/src/mozilla-central/dom/bindings -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dom/bindings -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom -I/mnt/to_archive/accum/src/mozilla-central/dom/base -I/mnt/to_archive/accum/src/mozilla-central/dom/battery -I/mnt/to_archive/accum/src/mozilla-central/dom/bluetooth/common/webapi -I/mnt/to_archive/accum/src/mozilla-central/dom/camera -I/mnt/to_archive/accum/src/mozilla-central/dom/canvas -I/mnt/to_archive/accum/src/mozilla-central/dom/geolocation -I/mnt/to_archive/accum/src/mozilla-central/dom/html -I/mnt/to_archive/accum/src/mozilla-central/dom/indexedDB -I/mnt/to_archive/accum/src/mozilla-central/dom/media/webaudio -I/mnt/to_archive/accum/src/mozilla-central/dom/media/webspeech/recognition -I/mnt/to_archive/accum/src/mozilla-central/dom/svg -I/mnt/to_archive/accum/src/mozilla-central/dom/workers -I/mnt/to_archive/accum/src/mozilla-central/dom/xbl -I/mnt/to_archive/accum/src/mozilla-central/dom/xml -I/mnt/to_archive/accum/src/mozilla-central/dom/xslt/base -I/mnt/to_archive/accum/src/mozilla-central/dom/xslt/xpath -I/mnt/to_archive/accum/src/mozilla-central/dom/xul -I/mnt/to_archive/accum/src/mozilla-central/js/xpconnect/src -I/mnt/to_archive/accum/src/mozilla-central/js/xpconnect/wrappers -I/mnt/to_archive/accum/src/mozilla-central/layout/generic -I/mnt/to_archive/accum/src/mozilla-central/layout/style -I/mnt/to_archive/accum/src/mozilla-central/layout/xul/tree -I/mnt/to_archive/accum/src/mozilla-central/media/mtransport -I/mnt/to_archive/accum/src/mozilla-central/media/webrtc -I/mnt/to_archive/accum/src/mozilla-central/media/webrtc/signaling/src/common/time_profiling -I/mnt/to_archive/accum/src/mozilla-central/media/webrtc/signaling/src/peerconnection -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/ipc/ipdl/_ipdlheaders -I/mnt/to_archive/accum/src/mozilla-central/ipc/chromium/src -I/mnt/to_archive/accum/src/mozilla-central/ipc/glue -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/include -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/include/nspr -I/mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dist/include/nss -fPIC -DMOZILLA_CLIENT -include /mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/mozilla-config.h -MD -MP -MF .deps/UnifiedBindings0.o.pp -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++14-compat -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe -g -Wall -fno-schedule-insns2 -fno-lifetime-dse -fno-delete-null-pointer-checks -O3 -fomit-frame-pointer -Wno-error=shadow /mnt/to_archive/accum/src/mozilla-central/obj-x86_64-pc-linux-gnu/dom/bindings/UnifiedBindings0.cpp
 8:55.04 /mnt/to_archive/accum/src/mozilla-central/config/rules.mk:950: recipe for target 'UnifiedBindings0.o' failed
 8:55.04 gmake[5]: *** [UnifiedBindings0.o] Error 1
 8:55.04 gmake[5]: *** Waiting for unfinished jobs....

Comment 8

3 years ago
Is it related, or does it need to be a new bugzilla?
stan: yeah, please file a new bug on that -- thanks! We try to keep bugs as targeted as possible & avoid scope-creep, particularly after a patch has landed and the bug's been closed.

(Also: please mention on the new bug if you're building with any other relevant mozconfig flags -- e.g. I'm guessing you might be using --disable-accessibility, perhaps, based on the name of the header that's being reported as missing, AccessibleNode.h.)
You need to log in before you can comment on or make changes to this bug.