bazel-xcode / bazel-xcode/PodToBUILD

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

Open
#235 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
330
Forks
68
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.