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

Analysis of target '//test/starlark_tests/targets_under_test/visionos:app' failed in CI #2400

Closed
sgowroji opened this issue Feb 16, 2024 · 0 comments · Fixed by #2402
Closed

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3658#018dacbb-4bf4-4ab9-9af8-33eb98069e44

Platform: MacOS

Logs:

ERROR: /Users/buildkite/builds/bk-macstudio-10/bazel-org-repo-root/rules_apple/test/starlark_tests/targets_under_test/visionos/BUILD:33:21: in visionos_application rule //test/starlark_tests/targets_under_test/visionos:app:
Traceback (most recent call last):
	File "/Users/buildkite/builds/bk-macstudio-10/bazel-org-repo-root/rules_apple/apple/internal/visionos_rules.bzl", line 221, column 65, in _visionos_application_impl
		link_result = linking_support.register_binary_linking_action(
	File "/Users/buildkite/builds/bk-macstudio-10/bazel-org-repo-root/rules_apple/apple/internal/linking_support.bzl", line 243, column 58, in _register_binary_linking_action
		linking_outputs = apple_common.link_multi_arch_binary(
	File "/virtual_builtins_bzl/common/objc/linking_support.bzl", line 265, column 86, in _link_multi_arch_binary
	File "/virtual_builtins_bzl/common/objc/compilation_support.bzl", line 807, column 62, in _register_configuration_specific_link_actions
	File "/virtual_builtins_bzl/common/objc/compilation_support.bzl", line 579, column 26, in _register_j2objc_dead_code_removal_actions
Error: visionos_application has to declare 'j2objc' as a required fragment in order to access it. Please update the 'fragments' argument of the rule definition (for example: fragments = ["j2objc"])
(13:27:04) ERROR: /Users/buildkite/builds/bk-macstudio-10/bazel-org-repo-root/rules_apple/test/starlark_tests/targets_under_test/visionos/BUILD:33:21: Analysis of target '//test/starlark_tests/targets_under_test/visionos:app' failed
(13:27:04) ERROR: Analysis of target '//test/starlark_tests:visionos_application_codesigning_dossier_info_provider_test' failed; build aborted: Analysis failed

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_apple
git reset afbd1312b969cc42d68ff7341a1c4c8b53d5635f  --hard
export USE_BAZEL_VERSION=1a4471858b2eac81a48e5fbd47b0ee631ed08859
bazel build tools/... test/... 

CC Greenteam @mai93

keith added a commit that referenced this issue Feb 16, 2024
This is required since some linking logic moved to starlark

Fixes #2400
keith added a commit that referenced this issue Feb 16, 2024
This is required since some linking logic moved to starlark

Fixes #2400
acecilia pushed a commit to revolut-mobile/rules_apple that referenced this issue Apr 12, 2024
This is required since some linking logic moved to starlark

Fixes bazelbuild#2400
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

Successfully merging a pull request may close this issue.

1 participant