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 Mac Continues #3630

Open
tzmmtz opened this issue Jan 2, 2025 · 5 comments
Open

bad CPU type in executable Mac Continues #3630

tzmmtz opened this issue Jan 2, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@tzmmtz
Copy link

tzmmtz commented Jan 2, 2025

It seems last many builds keep producing this error upon downloading and running an update.

zsh: bad CPU type in executable: ./build/avalanchego)

This never happened in the past going all the way back to testnet. Now I have to rebuild each time. Which I don't want to do during a running validator. It doesn't happen on my other Mac which is a newer model. Only this older Mac Pro 2013. Sonoma 14.7.1

Anything you can do on your side to upload an update that doesn't cause me to have to rebuild each time? Now I have to wait for this validation to end before updating as I don't want to take a chance the machine crashes.

@tzmmtz tzmmtz added the bug Something isn't working label Jan 2, 2025
@tzmmtz
Copy link
Author

tzmmtz commented Jan 2, 2025

Update - I took a chance and ran through the process of building the binary again and now have a working avalanchego. Any way this can be fixed so I don't have to do that each time?

@marun
Copy link
Contributor

marun commented Jan 3, 2025

Looks like the update to build on github's macos-14 runner is at fault. As per commentary on a related issue, github only supports macos-14 for arm whereas the previous macos-12 runner was amd64.

Potential options:

  • switch to macos-13 which still supports amd64
  • stop releasing amd64 images now since past macos-13, github won't be supplying free amd64 workers
    • this wouldn't preclude build instructions (and maybe simplifying self-build e.g. via nix)
  • commit to building amd64 images via custom workers

At the least, though, the darwin images should identify their architecture in the filename.

@tzmmtz
Copy link
Author

tzmmtz commented Jan 3, 2025

Would my best case be stop using this machine in the future? I don't really need to use it as my main validator is a Mac Studio. I just was adding to the decentralization pool. It's not that hard to build a binary each time but if that process won't work in the future then I might as well kill this validator machine when it ends.

@yacovm
Copy link
Contributor

yacovm commented Jan 3, 2025

Would my best case be stop using this machine in the future? I don't really need to use it as my main validator is a Mac Studio. I just was adding to the decentralization pool. It's not that hard to build a binary each time but if that process won't work in the future then I might as well kill this validator machine when it ends.

If you have a different validator machine and it's your "main" (I assume from a stake perspective?) validator, then I think an easy solution would be to transfer the stake to your main validator and just not use the 2013 machine. The decentralization here is the same, as both machines are yours.

@tzmmtz
Copy link
Author

tzmmtz commented Jan 3, 2025

Got it. Once the validation is done I'll repurpose the Mac Pro for something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants