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

Error on M3 CPU: bad CPU type in executable: roc-vad #1

Closed
shermozle opened this issue Jul 12, 2024 · 3 comments
Closed

Error on M3 CPU: bad CPU type in executable: roc-vad #1

shermozle opened this issue Jul 12, 2024 · 3 comments
Assignees

Comments

@shermozle
Copy link

Installing using the binaries seems successful and after rebooting and running
roc-vad info

I get the message:
zsh: bad CPU type in executable: roc-vad

System details:
image

I'd prefer not to have to compile but let me know if this isn't a quick fix. Happy to test reinstalling and trying again.

Note the uninstall instructions also don't work for the same reason:
sudo: unable to execute /usr/local/bin/roc-vad: Bad CPU type in executable

@allquixotic
Copy link

I would surmise this is because the executable is built for x86-64. Compiling from the latest source is definitely the way to go with this experimental project. It isn't very difficult.

@gavv
Copy link
Member

gavv commented Oct 8, 2024

Those binaries were supposed to be universal binaries, and last time I tested them, they worked on Intel and M1. Never tested on M3, though. I'll take a look.

gavv added a commit that referenced this issue Oct 8, 2024
CMAKE_OSX_DEPLOYMENT_TARGET should be defined before project()
call, otherwise it doesn't have effect.

This fix enables building (and publishing) universal binaries
instead of native.
@gavv
Copy link
Member

gavv commented Oct 9, 2024

Thanks for report, that was a regression with a simple fix: e7f0ff2. I've also added a check during build that produced binaries are universal.

Tagged a new release: https://github.com/roc-streaming/roc-vad/releases/tag/v0.0.3, should work now.

Feel free to reopen if the issue persist.

@gavv gavv closed this as completed Oct 9, 2024
@gavv gavv added the defect label Oct 9, 2024
@gavv gavv self-assigned this Oct 9, 2024
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

3 participants