ggerganov / whisper.cpp

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

Error compiling examples on Mac OS 14.4 #2497

Open grga1349 opened 1 month ago

grga1349 commented 1 month 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 month 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 1 month 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)