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

Built an x86_64 executable #18

Closed
spullara opened this issue Sep 11, 2023 · 5 comments
Closed

Built an x86_64 executable #18

spullara opened this issue Sep 11, 2023 · 5 comments

Comments

@spullara
Copy link

I'm on an M1 Max and followed the README and it built the wrong architecture.

zsh: illegal hardware instruction  ./bin/sam -t 16 -i ../img.jpg -m ../ggml-model-f16.bin
(base) sam@m1macbookpro build % file bin/sam
bin/sam: Mach-O 64-bit executable x86_64
(base) sam@m1macbookpro build % 
@spullara
Copy link
Author

-- CMAKE_SYSTEM_PROCESSOR: x86_64
CMake Warning at ggml/src/CMakeLists.txt:37 (message):
  Your arch is announced as x86_64, but it seems to actually be ARM64.  Not
  fixing that can lead to bad performance.  For more info see:
  https://github.com/ggerganov/whisper.cpp/issues/66#issuecomment-#1282546789

@spullara
Copy link
Author

% uname -mps 
Darwin arm64 arm

@spullara
Copy link
Author

Ultimately had to install a new version of brew to get an arm64 version of cmake.

@YavorGIvanov
Copy link
Owner

Sorry that I couldn't help in time. Glad you were able to resolve it yourself.

@abrichr
Copy link

abrichr commented May 29, 2024

For future reference, to uninstall:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

Reinstall:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then run:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$(whoami)/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

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