google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library
https://flatbuffers.dev/
Apache License 2.0
22.61k stars 3.19k forks source link

Error: 'apple_common' value has no field or method 'multi_arch_split' with BAZEL@HEAD #8095

Open sgowroji opened 10 months ago

sgowroji commented 10 months ago

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3306#018a9175-3dad-47ab-84df-a5fd81e6a3e0

Platform : Macos, Windows, Ubuntu

Error Logs -1: ( Upgrade to rules_apple)

ERROR: Traceback (most recent call last):
    File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/build_bazel_rules_apple/apple/internal/rule_support.bzl", line 226, column 36, in <toplevel>
        deps_cfg = apple_common.multi_arch_split,
Error: 'apple_common' value has no field or method 'multi_arch_split'

Error Logs -2:

ERROR: error loading package '@com_github_grpc_grpc//': at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/com_github_grpc_grpc/bazel/grpc_build_system.bzl:33:6: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/build_bazel_rules_apple/apple/ios.bzl:37:5: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/build_bazel_rules_apple/apple/internal/binary_support.bzl:22:5: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/build_bazel_rules_apple/apple/internal/exported_symbols_lists_rules.bzl:18:5: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/build_bazel_rules_apple/apple/internal/linking_support.bzl:18:5: initialization of module 'apple/internal/rule_support.bzl' failed
(02:19:07) ERROR: /var/lib/buildkite-agent/builds/bk-docker-5nwd/bazel-downstream-projects/flatbuffers/tests/BUILD.bazel:160:11: error loading package '@com_github_grpc_grpc//': at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/com_github_grpc_grpc/bazel/grpc_build_system.bzl:33:6: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/build_bazel_rules_apple/apple/ios.bzl:37:5: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/build_bazel_rules_apple/apple/internal/binary_support.bzl:22:5: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/build_bazel_rules_apple/apple/internal/exported_symbols_lists_rules.bzl:18:5: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/5eef561ef0a0f4ebcad317f73760016e/external/build_bazel_rules_apple/apple/internal/linking_support.bzl:18:5: initialization of module 'apple/internal/rule_support.bzl' failed and referenced by '//tests:monster_test_grpc'
(02:19:07) ERROR: Analysis of target '//tests:monster_test_grpc' failed; build aborted: Analysis failed

CC Greenteam @meteorcloudy

sgowroji commented 10 months ago

@keith Can you guide on Error: 'apple_common' value has no field or method 'multi_arch_split' error from the above.

keith commented 10 months ago

should just need a rules_apple update to the 3.x RCs

JiAnG-K9 commented 6 months ago

Has this problem been solved? Can you help me?

keith commented 6 months ago

should have been fixed by https://github.com/google/flatbuffers/commit/09486a9f9791d60b8511b9bcdaebd1d5b8c7e2ad

rajkundu commented 3 weeks ago

I encountered this issue when trying to build Google mediapipe. Resolved the issue by downgrading Bazel to version 6, as version 7 removes apple_common.multi_arch_split: https://github.com/bazelbuild/bazel/commit/a76763c4125fbbea17f415a40d9efca846b0b6f0

keith commented 3 weeks ago

yea fix is to update rules_apple in this repo