Building Chromium Fails on Mac after autoupgrade to 13.3

516 views
Skip to first unread message

大天鹅呆头呆毛

unread,
Apr 7, 2023, 1:34:22 PM4/7/23
to Chromium-dev
  Hi All,

I was able to build chromium fine on my Mac recently until I upgraded to 13.3 Ventura with Xcode 14.3, This is the error I am getting:  

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:462:11: error: 'CGDisplayStreamUpdateGetRects' is only available on macOS 13.0 or newer [-Werror,-Wunguarded-availability-new]

          CGDisplayStreamUpdateGetRects(updateRef, kCGDisplayStreamUpdateDirtyRects, &count);

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:106:37: note: 'CGDisplayStreamUpdateGetRects' has been marked as being introduced in macOS 13.0 here, but the deployment target is macOS 10.13.0

CG_EXTERN const CGRect * __nullable CGDisplayStreamUpdateGetRects(CGDisplayStreamUpdateRef __nullable updateRef, 

                                    ^

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:462:11: note: enclose 'CGDisplayStreamUpdateGetRects' in an @available check to silence this warning

          CGDisplayStreamUpdateGetRects(updateRef, kCGDisplayStreamUpdateDirtyRects, &count);

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:472:45: error: 'kCGDisplayStreamShowCursor' is only available on macOS 13.0 or newer [-Werror,-Wunguarded-availability-new]

                           (const void* []){kCGDisplayStreamShowCursor},

                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:195:30: note: 'kCGDisplayStreamShowCursor' has been marked as being introduced in macOS 13.0 here, but the deployment target is macOS 10.13.0

CG_EXTERN const CFStringRef  kCGDisplayStreamShowCursor CG_AVAILABLE_BUT_DEPRECATED(13.0, 14.0, "Please use ScreenCaptureKit API's SCStreamConfiguration showsCursor property instead");  /* CFBoolean - defaults to false */

                             ^

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:472:45: note: enclose 'kCGDisplayStreamShowCursor' in an @available check to silence this warning

                           (const void* []){kCGDisplayStreamShowCursor},

                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:478:41: error: 'CGDisplayStreamCreate' is only available on macOS 13.0 or newer [-Werror,-Wunguarded-availability-new]

    CGDisplayStreamRef display_stream = CGDisplayStreamCreate(

                                        ^~~~~~~~~~~~~~~~~~~~~

../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:243:41: note: 'CGDisplayStreamCreate' has been marked as being introduced in macOS 13.0 here, but the deployment target is macOS 10.13.0

CG_EXTERN CGDisplayStreamRef __nullable CGDisplayStreamCreate(CGDirectDisplayID display, 

                                        ^

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:478:41: note: enclose 'CGDisplayStreamCreate' in an @available check to silence this warning

    CGDisplayStreamRef display_stream = CGDisplayStreamCreate(

                                        ^~~~~~~~~~~~~~~~~~~~~

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:482:23: error: 'CGDisplayStreamStart' is only available on macOS 13.0 or newer [-Werror,-Wunguarded-availability-new]

      CGError error = CGDisplayStreamStart(display_stream);

                      ^~~~~~~~~~~~~~~~~~~~

../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:273:19: note: 'CGDisplayStreamStart' has been marked as being introduced in macOS 13.0 here, but the deployment target is macOS 10.13.0

CG_EXTERN CGError CGDisplayStreamStart(CGDisplayStreamRef cg_nullable displayStream)

                  ^

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:482:23: note: enclose 'CGDisplayStreamStart' in an @available check to silence this warning

      CGError error = CGDisplayStreamStart(display_stream);

                      ^~~~~~~~~~~~~~~~~~~~

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:485:35: error: 'CGDisplayStreamGetRunLoopSource' is only available on macOS 13.0 or newer [-Werror,-Wunguarded-availability-new]

      CFRunLoopSourceRef source = CGDisplayStreamGetRunLoopSource(display_stream);

                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream



Any idea?

Avi Drissman

unread,
Apr 10, 2023, 11:35:18 AM4/10/23
to swan...@gmail.com, Chromium-dev
I can confirm that this is an error in the macOS SDK included in Xcode 14.3. I filed it as https://crbug.com/1431897.

As per the Slack chat, you can annotate with "-Wunguarded-availability-new" but please refer to that bug in the change.



--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/9f018f87-9e2d-4b05-864e-3788eaf2125en%40chromium.org.

Avi Drissman

unread,
Apr 10, 2023, 11:41:10 AM4/10/23
to swan...@gmail.com, Chromium-dev
Filed as FB12109479.

Avi Drissman

unread,
Sep 28, 2023, 9:19:57 AM9/28/23
to Muskan Jindal, Chromium-dev, swan...@gmail.com
This is fixed in the macOS 14 SDK available in the new Xcode 15. If you update to that version of Xcode things should work.

On Thu, Sep 28, 2023 at 7:09 AM Muskan Jindal <muskanj...@gmail.com> wrote:
hi, we got any solution for this error? i am stuck on this error, couldn't continue

Muskan Jindal

unread,
Sep 28, 2023, 8:00:20 PM9/28/23
to Chromium-dev, Avi Drissman, Chromium-dev, swan...@gmail.com
hi, we got any solution for this error? i am stuck on this error, couldn't continue


On Monday, April 10, 2023 at 9:11:10 PM UTC+5:30 Avi Drissman wrote:
Reply all
Reply to author
Forward
0 new messages