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

"Bad CPU type in executable" error on M1 Mac? #230

Open
HannahShiSFB opened this issue Dec 11, 2022 · 2 comments
Open

"Bad CPU type in executable" error on M1 Mac? #230

HannahShiSFB opened this issue Dec 11, 2022 · 2 comments

Comments

@HannahShiSFB
Copy link

Got the "Bad CPU type in executable" error when running RepoTools to download pods during build.
Is it possible to put universal build of RepoTools (and Compiler as well) in release package?

Error message:
/private/var/tmp/_bazel_hannahshi/937520e164843f0bd3aace18131f00d9/external/rules_pods/BazelExtensions/workspace.bzl:316:14: in new_pod_repository Repository rule pod_repo_ defined at: /private/var/tmp/_bazel_hannahshi/937520e164843f0bd3aace18131f00d9/external/rules_pods/BazelExtensions/workspace.bzl:198:28: in <toplevel> DEBUG: /private/var/tmp/_bazel_hannahshi/937520e164843f0bd3aace18131f00d9/external/rules_pods/BazelExtensions/workspace.bzl:6:14: __OUTPUT 1 src/main/tools/process-wrapper-legacy.cc:80: "execvp(/private/var/tmp/_bazel_hannahshi/937520e164843f0bd3aace18131f00d9/external/rules_pods/bin/RepoTools, ...)": Bad CPU type in executable

@joprice
Copy link

joprice commented Nov 10, 2023

I'm also unable to run update_pods on an intel mac. Is there an option to build from source instead of using the prebuilt binary?

@joprice
Copy link

joprice commented Nov 10, 2023

I tried building from source using git_repository, but the path handling in the update_pods script was tricky to get right and didn't end up writing the Vendor/rules_pods directory since it detects whether it's being run from external. I ended up building it locally and pushing a release to my fork https://github.com/joprice/PodToBUILD/releases/tag/6.3.2-370b622-x86_64.

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

2 participants