Skip to content
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

Build fails only for macOS 13 on Intel #5

Open
huyz opened this issue Mar 24, 2024 · 4 comments
Open

Build fails only for macOS 13 on Intel #5

huyz opened this issue Mar 24, 2024 · 4 comments

Comments

@huyz
Copy link

huyz commented Mar 24, 2024

Updated 2024-03-24T12:34Z: Added more logs to show the most relevant error line error: failed to deserialize Info.plist task context: Deserialization failed: SDK lookup failed for canonical name: macosx13.3 (in target 'ssh-askpass' from project 'ssh-askpass')

I'm trying to update the MacPorts port to 3.0. Unfortunately, I don't have an Intel machine running macOS 13 to easily diagnose.

The automatic MacPorts BuildBot fails for v3.0 for macOS 13 on Intel: https://github.com/macports/macports-ports/actions/runs/8404522873/job/23016874695
I still haven't figured out how to obtain /opt/local/var/macports/logs/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/main.log from the MacPorts BuildBot to see what exactly happened, but the summary error from the above run is:

ProcessInfoPlistFile /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/Release/ssh-askpass.app/Contents/Info.plist /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/ssh-askpass/Info.plist (in target 'ssh-askpass' from project 'ssh-askpass')
cd /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0
builtin-infoPlistUtility /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/ssh-askpass/Info.plist -producttype com.apple.product-type.application -genpkginfo /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/Release/ssh-askpass.app/Contents/PkgInfo -expandbuildsettings -platform macosx -additionalcontentfile /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/ssh-askpass.build/Release/ssh-askpass.build/assetcatalog_generated_info.plist -additionalcontentfile /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/ssh-askpass.build/Release/ssh-askpass.build/Base.lproj/Main-SBPartialInfo.plist -o /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/Release/ssh-askpass.app/Contents/Info.plist
error: failed to deserialize Info.plist task context: Deserialization failed: SDK lookup failed for canonical name: macosx13.3 (in target 'ssh-askpass' from project 'ssh-askpass')

LinkStoryboards (in target 'ssh-askpass' from project 'ssh-askpass')
cd /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0
/Applications/Xcode_15.0.1.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module ssh_askpass --target-device mac --minimum-deployment-target 13.0 --output-format human-readable-text --link /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/Release/ssh-askpass.app/Contents/Resources /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/ssh-askpass.build/Release/ssh-askpass.build/Base.lproj/Main.storyboardc

Error: Failed to build ssh-askpass-mac: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: command execution failed
while executing
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port ssh-askpass-mac failed
** BUILD FAILED **

The following build commands failed:
ProcessInfoPlistFile /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/Release/ssh-askpass.app/Contents/Info.plist /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/ssh-askpass/Info.plist (in target 'ssh-askpass' from project 'ssh-askpass')
(1 failure)
Command failed: cd "/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0" && /usr/bin/xcodebuild -alltargets -configuration Deployment build INSTALL_PATH=/Applications/MacPorts OBJROOT="/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/" SYMROOT="/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/work/v3.0/build/" MACOSX_DEPLOYMENT_TARGET=13.0 ARCHS=x86_64 SDKROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk" GCC_VERSION=com.apple.compilers.llvm.clang.1_0 CLANG_CXX_LIBRARY="libc++"
Exit code: 65

Judging from MacPorts automatic builds , this build issue looks like it predates v3.0 as the build has been failing for v1.2 but only for macOS 13 on Intel—works fine for ARM and all the other recent macOS

screenshot 2024-03-24T084338Z

I hoped you had some insight as to why

@ryandesign
Copy link

The automatic MacPorts BuildBot fails for v3.0 for macOS 13 on Intel: https://github.com/macports/macports-ports/actions/runs/8404522873/job/23016874695 I still haven't figured out how to obtain /opt/local/var/macports/logs/_Users_runner_work_macports-ports_macports-ports_ports_aqua_ssh-askpass-mac/ssh-askpass-mac/main.log from the MacPorts BuildBot to see what exactly happened, but the summary error from the above run is:

This is not buildbot; this is GitHub Actions. GitHub Actions logs are available by choosing Download log archive from the gear icon at the top right of that page.

Judging from MacPorts automatic builds , this build issue looks like it predates v3.0 as the build has been failing for v1.2 but only for macOS 13 on Intel—works fine for ARM and all the other recent macOS

This is buildbot. Buildbot logs are available via the Build Number links on that page, if they have not expired yet. These builds happened long enough ago that the logs have expired. I have scheduled a new build on macOS 13 on Intel so you can look at the logs there later.

@lukas-zronek
Copy link
Owner

error: failed to deserialize Info.plist task context: Deserialization failed: SDK lookup failed for canonical name: macosx13.3 (in target 'ssh-askpass' from project 'ssh-askpass')

I suspect that the required SDK for macOS 13 is no longer included the used Xcode version 15.0.1.
You would probably have to use an older xcode version.

@ryandesign
Copy link

I suspect that the required SDK for macOS 13 is no longer included the used Xcode version 15.0.1.
You would probably have to use an older xcode version.

But where is the request for the macOS 13.3 SDK coming from? The build succeeded on other OS versions that also don't have the 13.3 SDK.

I have scheduled a new build on macOS 13 on Intel so you can look at the logs there later.

This retry succeeded. This may have been a configuration error on that buildbot machine. When searching for this error message, I kept finding people claiming the problem was a setting within Xcode so I opened Xcode on that build machine to check. While that setting was already correct, I was promoted upon opening Xcode to install "additional components" which I then did, and I suspect the problem was caused by not having done that before. Which is difficult for me to understand because it is definitely part of my Xcode installation or upgrade process on those machines. So either I forgot to do it when I last updated Xcode or something caused the additional components to become uninstalled. I cannot say how the GitHub Actions runners are configured but maybe they forgot to do this step there too.

@lukas-zronek
Copy link
Owner

But where is the request for the macOS 13.3 SDK coming from? The build succeeded on other OS versions that also don't have the 13.3 SDK.

Xcode should automatically use the recommended deployment target. There is no explicit version set for the project:

MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";

As far as I can see, at least some other builds are using an older version of Xcode:

DEBUG: Xcode 14.3, CLT 14.3.0.0.1.1679647830

Source: https://build.macports.org/builders/ports-13_x86_64-builder/builds/64835/steps/install-port/logs/stdio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants