Skip to content

Unable to run update_pods on intel macs due to Bad CPU Type error #235

@prasadpamidi

Description

@prasadpamidi

I was trying to use PodToBUILD on an intel machine and running into issue with bad architecture in one of the deps RepoTools.

bazel run @rules_pods//:update_pods -- --src_root $PWD
WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE.
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 7116362f-2a5c-4628-8e85-a274dba4faf6
INFO: Analyzed target @rules_pods//:update_pods (65 packages loaded, 445 targets configured).
INFO: Found 1 target...
Target @rules_pods//bin:update_pods up-to-date:
bazel-bin/external/rules_pods/bin/update_pods
INFO: Elapsed time: 22.413s, Critical Path: 0.05s
INFO: 5 processes: 5 internal.
INFO: Build completed successfully, 5 total actions
INFO: Running command line: bazel-bin/external/rules_pods/bin/update_pods --src_root /Users/npamidi/analytics-mobile-ui
Updating pods in /Users/npamidi/analytics-mobile-ui
Building PodToBUILD dependencies...
running: make release
b'skipping build..\n'
Updating Pod PINOperation...
Traceback (most recent call last):
File "/private/var/tmp/_bazel_npamidi/66e94962be035732ba819930dc2cb0e8/execroot/_main/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 544, in
main()
File "/private/var/tmp/_bazel_npamidi/66e94962be035732ba819930dc2cb0e8/execroot/_main/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 540, in main
WORKSPACE.update()
File "/private/var/tmp/_bazel_npamidi/66e94962be035732ba819930dc2cb0e8/execroot/_main/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 82, in update
_update_repo_impl(invocation_info_by_target[pod.target_name])
File "/private/var/tmp/_bazel_npamidi/66e94962be035732ba819930dc2cb0e8/execroot/_main/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 259, in _update_repo_impl
_load_repo_if_needed(repository_ctx, repo_tool_bin_path)
File "/private/var/tmp/_bazel_npamidi/66e94962be035732ba819930dc2cb0e8/execroot/_main/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 225, in _load_repo_if_needed
_fetch_remote_repo(repository_ctx, repo_tool_bin_path, target_name, url)
File "/private/var/tmp/_bazel_npamidi/66e94962be035732ba819930dc2cb0e8/execroot/_main/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 181, in _fetch_remote_repo
_exec(repository_ctx, fetch_cmd, repository_ctx.GetPodRootDir())
File "/private/var/tmp/_bazel_npamidi/66e94962be035732ba819930dc2cb0e8/execroot/_main/bazel-out/darwin-fastbuild/bin/external/rules_pods/bin/update_pods", line 26, in _exec
process = Popen(command, stdout=PIPE, stderr=PIPE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 86] Bad CPU type in executable: '/private/var/tmp/_bazel_npamidi/66e94962be035732ba819930dc2cb0e8/external/rules_pods/bin/RepoTools'

Is there a workaround for this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions