Compile error when building from trunk (Mac)

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Compile error when building from trunk (Mac)

Postby JasonLP » Mon Oct 05, 2015 1:19 pm

On Mac 10.10.5, running an automate-git.py from scratch on a clean system, I get the following build error:

Code: Select all
[4865/14438] OBJCXX obj/components/sto...monitor.image_capture_device_manager.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/components/storage_monitor/storage_monitor.image_capture_device_manager.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=245402-1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE -DDONT_EMBED_BUILD_METADATA -DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_SPELLCHECK=1 -DUSE_BROWSER_SPELLCHECKER=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_WIFI_BOOTSTRAPPING=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -Igen -I../.. -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -O0 -gdwarf-2 -fvisibility=hidden -Werror -Wnewline-eof -mmacosx-version-min=10.6 -arch x86_64 -Wall -Wendif-labels -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-selector-type-mismatch -Wpartial-availability -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-shift-negative-value -std=c++11 -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -fcolor-diagnostics -fno-strict-aliasing -fstack-protector-all -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -Wobjc-missing-property-synthesis -fobjc-call-cxx-cdtors  -c ../../components/storage_monitor/image_capture_device_manager.mm -o obj/components/storage_monitor/storage_monitor.image_capture_device_manager.o
../../components/storage_monitor/image_capture_device_manager.mm:57:9: error: cannot initialize a parameter of type 'ICDeviceTypeMask' with an rvalue of type 'unsigned long'
        ICDeviceTypeMaskCamera | ICDeviceLocationTypeMaskLocal];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/ImageCaptureCore.framework/Headers/ICDeviceBrowser.h:112:71: note: passing argument to parameter 'browsedDeviceTypeMask' here
@property(readwrite)                    ICDeviceTypeMask              browsedDeviceTypeMask;


Any ideas?

Thanks,
-Jason-
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: Compile error when building from trunk (Mac)

Postby magreenblatt » Mon Oct 05, 2015 6:39 pm

What CEF version are you building? What version of Xcode do you have installed?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Compile error when building from trunk (Mac)

Postby JasonLP » Tue Oct 06, 2015 9:05 am

I am building from trunk. Is that generally not a good idea?

Xcode version 7.0.
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: Compile error when building from trunk (Mac)

Postby magreenblatt » Tue Oct 06, 2015 10:08 am

JasonLP wrote:I am building from trunk. Is that generally not a good idea?

Using trunk is OK for development purposes. It's not recommended for production use.

JasonLP wrote:Xcode version 7.0.

Building with Xcode 7 is not yet supported (see https://code.google.com/p/chromium/issu ... ?id=517914).
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Compile error when building from trunk (Mac)

Postby JasonLP » Tue Oct 06, 2015 10:13 am

Building with Xcode 7 is not yet supported (see https://code.google.com/p/chromium/issu ... ?id=517914).


Ah, I see. Thanks for the info.
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 31 guests