Can't Compile - Acts like I have xcode for Intel x86 when I have M1 Max processor?

So I'm trying to compile Whisper (speech-to-text AI) on my Macbook and someone has built it in C++ to work with Apple Silicon. This is a relatively new Macbook Pro 16" with M1 Max.


When i run "make large" I get this error:


"

xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): tried: '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))))

"


This makes it sound like it's telling me I need the Apple silicon version of something that I have the intel version of, but seeing as I don't have an intel processor, I can't understand why I wouldn't have the correct version. I just updated the OS and xcode and just all the general software updates hoping it would fix it to no avail.


I'm at a loss and I'm not one to frequently be compiling a bunch of software, so any help is greatly appreciated.


(working off of this guide if curious: https://www.daginge.com/blog/running-whisper-on-an-m1-mac-to-transcribe-audio-data-locally)

MacBook Pro (M1, 2020)

Posted on May 28, 2023 11:57 AM

Reply
2 replies

May 28, 2023 4:35 PM in response to Osteoperosis

Osteoperosis wrote:

(working off of this guide if curious: https://www.daginge.com/blog/running-whisper-on-an-m1-mac-to-transcribe-audio-data-locally)

Thanks for posting a link to the site. I didn't make it as far as you did:


/tmp/whisper.cpp $ bash ./models/download-ggml-model.sh large
Downloading ggml model large from 'https://huggingface.co/ggerganov/whisper.cpp' ...
Failed to download ggml model large 
Please try again later or download the original Whisper model files and convert them yourself.


I recommend avoiding anything having to do with AI. It's a scam.

Can't Compile - Acts like I have xcode for Intel x86 when I have M1 Max processor?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.