ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
35.38k stars 3.61k forks source link

Error compiling examples on Mac OS 14.4 #2497

Open grga1349 opened 2 weeks ago

grga1349 commented 2 weeks ago

Action: $ cd whisper.cpp/bindings/go/ $ make test Output:

clang: error: unsupported option '-fopenmp'

FAIL github.com/ggerganov/whisper.cpp/bindings/go [build failed] FAIL make: *** [test] Error 1

tomnlittle commented 1 week ago

Use Brew's version of clang rather than the Mac's version as it doesn't support fopenmp

brew install llvm libomp
export CC=/opt/homebrew/opt/llvm/bin/clang

If brew doesn't install clang to that directory you'll need to change the export line.

Source

grga1349 commented 3 days ago

It now would compile cpp part but go bindings still wont build, the error is: ld: library not found for -lm clang: error: linker command failed with exit code 1 (use -v to see invocation)