Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Update Xcode to 14.3.1 #42930

Merged
merged 5 commits into from
Jun 27, 2023
Merged

Update Xcode to 14.3.1 #42930

merged 5 commits into from
Jun 27, 2023

Conversation

vashworth
Copy link
Contributor

Engine part of flutter/flutter#129019.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Copy link
Contributor

@keyonghan keyonghan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vashworth
Copy link
Contributor Author

https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20Engine%20Drone/236711/overview

Mac mac_clang_tidy is failing with hundreds of errors involving missing headers, such as:

❌ Failures for clang-tidy on /Volumes/Work/s/w/ir/cache/builder/src/flutter/display_list/benchmarking/dl_region_benchmarks.cc:
../../third_party/libcxx/include/string.h:60:15: error: 'string.h' file not found [clang-diagnostic-error]
#include_next <string.h>
              ^~~~~~~~~~
Jobs:   0% done,   0/653 completed,  7 in progress, 644 pending,   2 failed.    
❌ Failures for clang-tidy on /Volumes/Work/s/w/ir/cache/builder/src/flutter/benchmarking/benchmarking.cc:
../../third_party/libcxx/include/string.h:60:15: error: 'string.h' file not found [clang-diagnostic-error]
#include_next <string.h>
              ^~~~~~~~~~
Suppressed 1582 warnings (1579 in non-user code, 3 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
Found compiler error(s).
Jobs:   0% done,   0/653 completed,  7 in progress, 643 pending,   3 failed.    
❌ Failures for clang-tidy on /Volumes/Work/s/w/ir/cache/builder/src/flutter/display_list/dl_color_unittests.cc:
../../third_party/skia/include/private/base/SkFeatures.h:15:18: error: 'TargetConditionals.h' file not found [clang-diagnostic-error]
        #include <TargetConditionals.h>
                 ^~~~~~~~~~~~~~~~~~~~~~
Suppressed 1442 warnings (1417 in non-user code, 25 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
Found compiler error(s).

@vashworth
Copy link
Contributor Author

I've tried rerunning and it's still erroring on the Mac mac_clang_tidy errors. @keyonghan Do you have any ideas what could be wrong?

@keyonghan
Copy link
Contributor

I've tried rerunning and it's still erroring on the Mac mac_clang_tidy errors. @keyonghan Do you have any ideas what could be wrong?

@zanderso may have more insight here.

@zanderso
Copy link
Member

I pushed a commit to this PR to pass --verbose to the clang_tidy script. That may not be sufficient for the script to print the clang-tidy commands that it's running, but that's what would probably help debug this. If the commands aren't printed, I'll push another commit or two to the PR until we can see those.

@vashworth
Copy link
Contributor Author

The verbose helped, it now has this error:

error: no such sysroot directory: '/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_14e300c/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk' [clang-diagnostic-missing-sysroot]

https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20mac_clang_tidy/1350/overview

However, looks like the ios_debug_sim version does not have the same problem, even though it looks like it uses the same path for the sysroot

From lint ios_debug_sim

Running "../../buildtools/mac-x64/clang/bin/clang-tidy /Volumes/Work/s/w/ir/cache/builder/src/flutter/fml/memory/weak_ptr_internal.cc --warnings-as-errors=* -- /Volumes/Work/s/w/ir/cache/goma/client/gomacc  ++ -MD  clang_arm64/obj/flutter/fml/memory/fml.weak_ptr_internal.o.d  -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE_JIT_RELEASE=4 "-DDART_LEGACY_API=[[deprecated]]" -DFLUTTER_RUNTIME_MODE=1 -DFLUTTER_JIT_RUNTIME=1  -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/dart/runtime -I../../third_party/dart/runtime/include -I../../third_party/abseil-cpp -isysroot /Volumes/Work/s/w/ir/cache/osx_sdk/xcode_14e300c/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -mmacosx-version-min=10.14.0  -fno-strict-aliasing -fstack-protector-all -arch arm64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2  -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -stdlib=libc++ -Wno-unknown-warning-option -Wno-deprecated-builtins  -c ../../flutter/fml/memory/weak_ptr_internal.cc -o  clang_arm64/obj/flutter/fml/memory/fml.weak_ptr_internal.o" in /Volumes/Work/s/w/ir/cache/builder/src/out/ios_debug_sim.

From lint host_debug

Running "../../buildtools/mac-x64/clang/bin/clang-tidy /Volumes/Work/s/w/ir/cache/builder/src/flutter/fml/memory/weak_ptr_internal.cc --warnings-as-errors=* -- /Volumes/Work/s/w/ir/cache/goma/client/gomacc  ++ -MD  clang_arm64/obj/flutter/fml/memory/fml.weak_ptr_internal.o.d  -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE_JIT_RELEASE=4 "-DDART_LEGACY_API=[[deprecated]]" -DFLUTTER_RUNTIME_MODE=1 -DFLUTTER_JIT_RUNTIME=1  -I../.. -Iclang_arm64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/dart/runtime -I../../third_party/dart/runtime/include -isysroot /Volumes/Work/s/w/ir/cache/osx_sdk/xcode_14e300c/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -mmacosx-version-min=10.14.0  -fno-strict-aliasing -fstack-protector-all -arch arm64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g2  -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -stdlib=libc++  -c ../../flutter/fml/memory/weak_ptr_internal.cc -o  clang_arm64/obj/flutter/fml/memory/fml.weak_ptr_internal.o" in /Volumes/Work/s/w/ir/cache/builder/src/out/host_debug.

Maybe it's an issue with the caching?

@zanderso
Copy link
Member

Maybe @keyonghan can advise on the caching and/or the missing sysroot osx_sdk. Is it possible to inspect the filesystem on a machine to see whether it's there?

@keyonghan
Copy link
Contributor

Does that mean we need xcode installed to run the test? Currently the test is not enforcing xcode pre-installed: https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20Engine%20Drone/241583/overview

ios_debug_sim passed with a high chance it picked a bot which has already installed the new xcode.

@keyonghan
Copy link
Contributor

keyonghan commented Jun 23, 2023

@vashworth : An update: recipes CL is blocked on the CQ which fails on a gradle related error (I will give it another try in case of a flake). Once that CL lands, rebasing on top of #43115 should unblock here.

@keyonghan
Copy link
Contributor

The recipes CL landed. @vashworth could you give it a try?

@vashworth vashworth added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 27, 2023
@auto-submit auto-submit bot merged commit 3d38625 into flutter:main Jun 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 27, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jun 27, 2023
…129678)

flutter/engine@f320b8c...7c7c45d

2023-06-27 flar@google.com Update skia includes to be more specific (flutter/engine#43284)
2023-06-27 yjbanov@google.com [web:a11y] introduce primary role responsible for ARIA roles (flutter/engine#43159)
2023-06-27 skia-flutter-autoroll@skia.org Roll Fuchsia Mac SDK from ytzCCSvHY1lHWEDM9... to sBFKkha8HNLZpTNwv... (flutter/engine#43277)
2023-06-27 skia-flutter-autoroll@skia.org Roll ANGLE from 9faf7059f9ef to 113f847be69f (2 revisions) (flutter/engine#43278)
2023-06-27 jacksongardner@google.com Initialize skwasm codecs before handing them back to the user. (flutter/engine#43274)
2023-06-27 skia-flutter-autoroll@skia.org Roll ANGLE from 02292814a9d3 to 9faf7059f9ef (7 revisions) (flutter/engine#43272)
2023-06-27 15619084+vashworth@users.noreply.github.com Update Xcode to 14.3.1 (flutter/engine#42930)
2023-06-27 jonahwilliams@google.com [Impeller] Add Vulkan allocator traces. (flutter/engine#43215)
2023-06-27 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from bj_X2Se1zObk_l_CC... to Bvv7TyHm_VHUkndFx... (flutter/engine#43270)
2023-06-27 chinmaygarde@google.com [Impeller] Report pipeline creation feedback to logs and traces. (flutter/engine#43227)
2023-06-27 jonahwilliams@google.com [Impeller] Give Impeller a dedicated raster priority level worker loop. (flutter/engine#43166)
2023-06-27 jason-simmons@users.noreply.github.com [Impeller] Fixes for GLES color mask setup (flutter/engine#43225)
2023-06-27 skia-flutter-autoroll@skia.org Roll ANGLE from cba77bceb26c to 02292814a9d3 (1 revision) (flutter/engine#43224)
2023-06-27 skia-flutter-autoroll@skia.org Roll Skia from 370132bcadb1 to 5209dc7702d0 (1 revision) (flutter/engine#43223)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from bj_X2Se1zObk to Bvv7TyHm_VHU
  fuchsia/sdk/core/mac-amd64 from ytzCCSvHY1lH to sBFKkha8HNLZ

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jimgraham@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
kjlubick pushed a commit to kjlubick/engine that referenced this pull request Jul 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants