-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Subcommand stderr: invalid argument "linker-signed", Error: AOT compilation failed Could not sign the new executable #49010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Also, is there a workaround to unwedge this builder while this is investigated? |
We wound up just upgrading to macOS 12 so we don't need a workaround for this immediate issue. |
I am seeing this issue on macOS 10.15.7. I cannot upgrade as a workaround. I'm just trying to build a normal Dart command-line app. |
I just hit this with a local CLI app that I build. I can't upgrade my OS version. Things were working fine up until, I guess, the latest Dart release within Flutter. Dart version:
OS version: |
So looking into this, for macOS <11.0, either
Since all of our build infrastructure uses macOS >= 11.0, we didn't catch this. Thus, to fix this, I'm working on CL 245000, which changes the procedure for overwriting an existing Once that CL has been reviewed and landed, I'll submit a cherry pick request to include this in stable. |
@athomas Do we have any devices with |
Our CI bots are actually running 10.15.7. So our infrastructure is not on 11 or greater. I have logged into one of our mac bots and verified that the OS is 10.15.7. |
The arm64/M1 bots are on |
Ah, that explains it. We're not using a published Dart SDK on those bots (which would have a signed The code that's failing here only gets run if the original That does give us a way to test this, though, which is to adhoc sign the local |
Instead of assuming that linker-signed is a valid option flag for codesign, only attempt to use it on macOS 11.0 or later, where signatures on linker-signed binaries need not be force overwritten. Otherwise, fall back to a regular signature that must be force overwritten. Bug: #49010 Cq-Include-Trybots: luci.dart.try:pkg-mac-release-arm64-try,pkg-mac-release-try Change-Id: Ia2bff2f501dbe37b3269a2a2f16ce9a29026664e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245000 Reviewed-by: Martin Kustermann <[email protected]> Commit-Queue: Tess Strickland <[email protected]>
Instead of assuming that linker-signed is a valid option flag for codesign, only attempt to use it on macOS 11.0 or later, where signatures on linker-signed binaries need not be force overwritten. Otherwise, fall back to a regular signature that must be force overwritten. Bug: #49010 Cq-Include-Trybots: luci.dart.try:pkg-mac-release-arm64-try,pkg-mac-release-try Change-Id: Ia2bff2f501dbe37b3269a2a2f16ce9a29026664e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245000 Reviewed-by: Martin Kustermann <[email protected]> Commit-Queue: Tess Strickland <[email protected]>
Given this was cherry-picked to stable in #49041, I assume we can close this issue? |
Ah yes, thanks, let's do so. |
Seen in https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8814262378734426833/+/u/build_package/stdout
Script at https://github.com/flutter/cocoon/blob/4189a23fb892d41c773923cd6b9b982a4d0b11b2/device_doctor/tool/build.sh
Bot is running Mac-10.15.7-19H2 and dart 2.17.0-266.1.beta.
As of 6ef426d and #39106 this is running:
sdk/pkg/dart2native/lib/dart2native_macho.dart
Lines 322 to 323 in b8da709
Does
linker-signed
exist on the version ofcodesign
shipped in macOS 10.15? If not, a check for macOS 11+ may need to be added.In case it's relevant, I see some related chatter in the comments at https://chromium.googlesource.com/chromium/src/+/refs/heads/main/chrome/installer/mac/signing/signing.py#26
cc @sstrickl @mit-mit
The text was updated successfully, but these errors were encountered: