Can't build trunk B2G on Mac OS: Build errors in webrtc's tick_util.h

RESOLVED WORKSFORME

Status

Firefox OS
GonkIntegration
RESOLVED WORKSFORME
5 years ago
5 years ago

People

(Reporter: Justin Lebar (not reading bugmail), Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
> In the directory  /Users/jlebar/code/moz/B2G/objdir-gecko/media/webrtc/trunk/src/voice_engine/voice_engine_voice_engine_core
> The following command failed to execute properly:
> In file included from /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/video_render/main/source/incoming_video_stream.cc:30:
> /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/../system_wrappers/interface/tick_util.h: In static member function 'static webrtc::TickTime webrtc::TickTime::Now()':
> /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/../system_wrappers/interface/tick_util.h:179: error: 'mach_timebase_info_data_t' does not name a type
> /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/../system_wrappers/interface/tick_util.h:180: error: 'timebase' was not declared in this scope
> /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/../system_wrappers/interface/tick_util.h:183: error: 'kern_return_t' was not declared in this scope
> /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/../system_wrappers/interface/tick_util.h:183: error: expected ';' before 'retval'
> /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/../system_wrappers/interface/tick_util.h:184: error: 'retval' was not declared in this scope
> /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/../system_wrappers/interface/tick_util.h:184: error: 'KERN_SUCCESS' was not declared in this scope
> /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/../system_wrappers/interface/tick_util.h:191: error: 'mach_absolute_time' was not declared in this scope
> /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/../system_wrappers/interface/tick_util.h:191: error: 'timebase' was not declared in this scope
> /opt/local/bin/ccache /Users/jlebar/code/moz/B2G/prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-g++ -o shared_data.o -c -fvisibility=hidden -DNO_NSPR_10_SUPPORT -DWEBRTC_SVNREVISION="Unavailable(issue687)" -DCHROMIUM_BUILD -DENABLE_ONE_CLICK_SIGNIN -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_TASK_MANAGER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PROTECTOR_SERVICE=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DWEBRTC_GONK -DWEBRTC_MOZILLA_BUILD -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_ARCH_ARM_NEON -DWEBRTC_MAC -DWEBRTC_MAC_INTEL -DWEBRTC_THREAD_RR -DWEBRTC_CLOCK_TYPE_REALTIME -DWEBRTC_CODEC_G711 -DWEBRTC_CODEC_OPUS -DWEBRTC_CODEC_PCM16 -DWEBRTC_EXTERNAL_TRANSPORT -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I. -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/.. -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../.. -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/include -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../../src/modules/audio_device/main/source -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../common_audio/resampler/include -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../common_audio/signal_processing/include -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../modules/audio_coding/main/interface -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../modules/interface -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../modules/audio_conference_mixer/interface -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../ -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../modules/audio_device/main/interface -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../modules/audio_processing/include -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../modules/media_file/interface -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../modules/rtp_rtcp/interface -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../modules/udp_transport/interface -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../modules/utility/interface -I/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/../system_wrappers/interface -fPIC -DANDROID -isystem /Users/jlebar/code/moz/B2G/bionic/libc/arch-arm/include -isystem /Users/jlebar/code/moz/B2G/bionic/libc/include/ -isystem /Users/jlebar/code/moz/B2G/bionic/libc/kernel/common -isystem /Users/jlebar/code/moz/B2G/bionic/libc/kernel/arch-arm -isystem /Users/jlebar/code/moz/B2G/bionic/libm/include -I/Users/jlebar/code/moz/B2G/frameworks/base/opengl/include -I/Users/jlebar/code/moz/B2G/frameworks/base/native/include -I/Users/jlebar/code/moz/B2G/hardware/libhardware/include -I/Users/jlebar/code/moz/B2G/hardware/libhardware_legacy/include -I/Users/jlebar/code/moz/B2G/system -I/Users/jlebar/code/moz/B2G/system/core/include -isystem /Users/jlebar/code/moz/B2G/bionic -I/Users/jlebar/code/moz/B2G/frameworks/base/include -I/Users/jlebar/code/moz/B2G/external/dbus -I/Users/jlebar/code/moz/B2G/external/bluetooth/bluez/lib -I/Users/jlebar/code/moz/B2G/frameworks/base/services/sensorservice -I/Users/jlebar/code/moz/B2G/frameworks/base/services/camera -I/Users/jlebar/code/moz/B2G/system/media/wilhelm/include -I/Users/jlebar/code/moz/B2G/frameworks/base/include/media/stagefright -I/Users/jlebar/code/moz/B2G/frameworks/base/include/media/stagefright/openmax -I/Users/jlebar/code/moz/B2G/frameworks/base/media/libstagefright/rtsp -I/Users/jlebar/code/moz/B2G/frameworks/base/media/libstagefright/include -I/Users/jlebar/code/moz/B2G/dalvik/libnativehelper/include/nativehelper -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wno-invalid-offsetof -mandroid -fno-short-enums -fno-exceptions -Wno-psabi -DMOZ_ENABLE_JS_DUMP -include /Users/jlebar/code/moz/B2G/gonk-misc/Unicode.h -I/Users/jlebar/code/moz/B2G/ndk/sources/cxx-stl/stlport/stlport/ -I/Users/jlebar/code/moz/B2G/external/stlport/stlport/ -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=softfp -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -funwind-tables -pipe -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fno-reorder-functions -fomit-frame-pointer -DANDROID -isystem /Users/jlebar/code/moz/B2G/bionic/libc/arch-arm/include -isystem /Users/jlebar/code/moz/B2G/bionic/libc/include/ -isystem /Users/jlebar/code/moz/B2G/bionic/libc/kernel/common -isystem /Users/jlebar/code/moz/B2G/bionic/libc/kernel/arch-arm -isystem /Users/jlebar/code/moz/B2G/bionic/libm/include -I/Users/jlebar/code/moz/B2G/frameworks/base/opengl/include -I/Users/jlebar/code/moz/B2G/frameworks/base/native/include -I/Users/jlebar/code/moz/B2G/hardware/libhardware/include -I/Users/jlebar/code/moz/B2G/hardware/libhardware_legacy/include -I/Users/jlebar/code/moz/B2G/system -I/Users/jlebar/code/moz/B2G/system/core/include -isystem /Users/jlebar/code/moz/B2G/bionic -I/Users/jlebar/code/moz/B2G/frameworks/base/include -I/Users/jlebar/code/moz/B2G/external/dbus -I/Users/jlebar/code/moz/B2G/external/bluetooth/bluez/lib -I/Users/jlebar/code/moz/B2G/frameworks/base/services/sensorservice -I/Users/jlebar/code/moz/B2G/frameworks/base/services/camera -I/Users/jlebar/code/moz/B2G/system/media/wilhelm/include -I/Users/jlebar/code/moz/B2G/frameworks/base/include/media/stagefright -I/Users/jlebar/code/moz/B2G/frameworks/base/include/media/stagefright/openmax -I/Users/jlebar/code/moz/B2G/frameworks/base/media/libstagefright/rtsp -I/Users/jlebar/code/moz/B2G/frameworks/base/media/libstagefright/include -I/Users/jlebar/code/moz/B2G/dalvik/libnativehelper/include/nativehelper -DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h -MD -MF .deps/shared_data.o.pp /Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/voice_engine/shared_data.cc
> make[8]: *** [shared_data.o] Error 1
> make[7]: *** [src/voice_engine/voice_engine_voice_engine_core_libs] Error 2
(Reporter)

Comment 1

5 years ago
This is a B2G device build, in case it's not clear.
(Reporter)

Comment 2

5 years ago
Ohgosh, here's another error message:

/Users/jlebar/code/moz/ff-git2/src/media/webrtc/trunk/src/modules/audio_device/main/source/mac/audio_mixer_manager_mac.h:25: error: 'AudioDeviceID' has not been declared

It looks like it's trying to compile Mac files on my cross-compiled build!
(Reporter)

Comment 3

5 years ago
I'm going to back out bug 818843, which should solve this.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.