Open Uday-P-Patel opened 2 weeks ago
Please describe a bit more detailed how you compiled the whisper.cpp and Buzz.
Buzz needs to compile python bindings, those are specific to a particular git commit version "linked" to the buzz repo. As code in whisper.cpp repo changes you need to look at the version linked to Buzz. Instructions you used seem to be correct as you are referencing the appropriate whisper.cpp commit.
Compilation of Buzz will take care of everything if you run it as detailed here https://github.com/chidiwilliams/buzz/blob/main/CONTRIBUTING.md#mac
The Core ML support has to be added in Buzz Makefile
Most likely here https://github.com/chidiwilliams/buzz/blob/main/Makefile#L74 you need to add -DWHISPER_COREML=1
or -DWHISPER_COREML=ON
Also see this https://github.com/ggerganov/whisper.cpp/issues/1707
Path you need to add as GGML_METAL_PATH_RESOURCES
is most likely path to whisper.cpp folder, something like /Users/YourUserName/Downloads/buzz/whisper.cpp
if the repo was cloned in your Downloads
folder.
Also this may be helpful https://github.com/abdeladim-s/pywhispercpp/issues/35 Someone solved similar problem
If or more precisely when you get this working, please share the notes or comments on what was missing from currently documented steps, so we can add the missing parts for others.
i have tried above solutions but it doesn't work, i think the problem is when i run the poetry install command I'm getting these errors but it writs the whisper_cpp.py file successfully at the end:
(buzz-captions-py3.12) wvs@MB-ProM2-2 buzz % poetry install
Installing dependencies from lock file
No dependencies to install or update
Installing the current project: buzz-captions (1.0.2)Preparing build environment with build-system requirements poetry-core, ctypesgen, setuptools, cmake, polib
sysctl: unknown oid 'machdep.cpu.leaf7_features'
for dir in buzz/locale/*/ ; do \
python msgfmt.py -o $dir/LC_MESSAGES/buzz.mo $dir/LC_MESSAGES/buzz.po; \
done
cd buzz && ctypesgen ../whisper.cpp/whisper.h -lwhisper -o whisper_cpp.py
INFO: Status: Preprocessing /tmp/tmp65qci8v_.h
INFO: Status: gcc -E -U __GNUC__ -dD -U __BLOCKS__ "-D__extension__=" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" "-D_Nullable=" "-D_Nonnull=" "/tmp/tmp65qci8v_.h"
ERROR: gcc -E: In file included from /tmp/tmp65qci8v_.h:1:
ERROR: gcc -E: In file included from /Users/wvs/Public/buzz/whisper.cpp/whisper.h:4:
ERROR: gcc -E: In file included from /Users/wvs/Public/buzz/whisper.cpp/ggml.h:219:
ERROR: gcc -E: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stdint.h:52:
ERROR: gcc -E: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdint.h:52:
ERROR: gcc -E: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:32:
ERROR: gcc -E: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning: "Unsupported compiler detected" [-W#warnings]
ERROR: gcc -E: #warning "Unsupported compiler detected"
ERROR: gcc -E: ^
ERROR: gcc -E: 1 warning generated.
INFO: Status: Parsing /tmp/tmp65qci8v_.h
ERROR: <built-in>:26: Syntax error at '\n'
ERROR: <built-in>:405: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:165: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:166: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:167: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:172: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:177: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:183: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:200: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:214: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:235: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:290: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:302: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:313: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:559: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:949: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:1030: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:1031: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:1038: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h:160: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h:172: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h:173: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2831: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2832: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2850: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2874: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2903: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2909: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2915: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2921: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2927: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2933: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2939: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2945: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2951: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2953: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2954: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2955: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2973: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:2997: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3021: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3022: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3028: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3034: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3040: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3046: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3052: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3058: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3064: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3070: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3072: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3073: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3074: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3092: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3116: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3140: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3141: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3147: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3153: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3159: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3165: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3171: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3177: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3183: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3185: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3186: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3187: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3205: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3229: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3253: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3254: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3260: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3266: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3272: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3278: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3284: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3290: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3292: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3294: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3295: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3313: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3337: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3361: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3367: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3373: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3379: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3385: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3391: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3393: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3394: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3395: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3413: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3437: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3461: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3462: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3468: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3474: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3480: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3486: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3488: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3489: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3490: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3508: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3532: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3557: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3563: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3569: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3575: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3577: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3578: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3579: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3597: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3621: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3645: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3646: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3652: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3658: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3660: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3661: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3662: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3680: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3704: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3728: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3729: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3730: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3736: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3738: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3739: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3745: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3746: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3764: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3788: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3812: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3818: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3824: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3830: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3836: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3842: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3848: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3854: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3860: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3871: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3873: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3874: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3995: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:3996: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4014: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4038: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4062: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4069: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4071: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4189: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4190: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4214: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4238: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4240: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4286: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4310: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4317: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4318: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4320: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4322: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4323: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4324: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4326: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4327: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4330: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4331: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4332: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4336: Syntax error at '\n'
ERROR: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:4337: Syntax error at '\n'
INFO: Status: Processing description list.
INFO: Status: Writing to whisper_cpp.py.
INFO: Status: Wrapping complete.
Installing the current project: buzz-captions (1.0.2)
also the path i exported for ehisper.cpp folder is also not being used when i run the file
and if i put ggml-metal.metal file in buzz folder and hard code the path to ggml-common.h file in line 3 it works but i think that's not how it's supposed to be
i added below code to buzz.py file:
os.environ['GGML_METAL_PATH_RESOURCES'] = '/Users/my_user/path/to/buzz/whisper.cpp'
and now it is loading ggml-metal.metal file from the whisper.cpp folder but now it can't find ggml-common.h file even though it is present in same directory as metal file and error is at 3rd line of metal file:
#include "ggml-common.h"
if i hardcode the path to common.h file it works, but i don't want to do that i want it to load automatically so can i make use of the environment variable i exported in metal file to build the path automatically and if yes how?, and please look into the build error also i think it might have to do with all these errors
hey anything that can help on this??
@Uday-P-Patel I am afraid my C++ knowledge is quite basic, so I am not sure if I can help much here. But let's see if we can find come hints from other people who have fixed this.
As such this may be useful - https://github.com/ggerganov/whisper.cpp/issues/2041
This approach tries to build the metallib
separately and then use it. You may need to play with GGML_METAL_EMBED_LIBRARY
environment variable. Like maybe you need to set it to true
if you manage to build the metallib
Also maybe CMAKE_INCLUDE_PATH
https://cmake.org/cmake/help/latest/envvar/CMAKE_INCLUDE_PATH.html can help to specify a place to find the ggml-common.h
Curious if any of this helps.
im trying to run buzz locally with whisper.cpp models with coreML support and i want to make sure it uses M@ chip/GPU, here is what i have done, -cloned the repo in my mac -followed the steps and made it running -then i compiled whisper.cpp with these instructions: https://github.com/ggerganov/whisper.cpp/tree/c7b6988678779901d02ceba1a8212d2c9908956e?tab=readme-ov-file#core-ml-support -and re built the buzz to make sure whisper_cpp.py is updated correctly -also ran the whisper.cpp with coreML models with an audio file so that i can make sure that it uses M@ chip
but when i run buzz locally and press recors it gives this error:
whisper_backend_init: using Metal backend ggml_metal_init: allocating ggml_metal_init: found device: Apple M2 Pro ggml_metal_init: picking default device: Apple M2 Pro ggml_metal_init: default.metallib not found, loading from source ggml_metal_init: GGML_METAL_PATH_RESOURCES = nil ggml_metal_init: error: could not use bundle path to find ggml-metal.metal, falling back to trying cwd ggml_metal_init: loading 'ggml-metal.metal' ggml_metal_init: error: Error Domain=NSCocoaErrorDomain Code=260 "The file “ggml-metal.metal” couldn’t be opened because there is no such file." UserInfo={NSFilePath=ggml-metal.metal, NSUnderlyingError=0x600001890090 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} whisper_backend_init: ggml_backend_metal_init() failed whisper_model_load: CPU total size = 77.11 MB whisper_model_load: model size = 77.11 MB whisper_backend_init: using Metal backend ggml_metal_init: allocating ggml_metal_init: found device: Apple M2 Pro ggml_metal_init: picking default device: Apple M2 Pro ggml_metal_init: default.metallib not found, loading from source ggml_metal_init: GGML_METAL_PATH_RESOURCES = nil ggml_metal_init: error: could not use bundle path to find ggml-metal.metal, falling back to trying cwd ggml_metal_init: loading 'ggml-metal.metal' ggml_metal_init: error: Error Domain=NSCocoaErrorDomain Code=260 "The file “ggml-metal.metal” couldn’t be opened because there is no such file." UserInfo={NSFilePath=ggml-metal.metal, NSUnderlyingError=0x600001898810 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} whisper_backend_init: ggml_backend_metal_init() failed whisper_init_state: kv self size = 9.44 MB whisper_init_state: kv cross size = 9.44 MB whisper_init_state: kv pad size = 2.36 MB whisper_init_state: compute buffer (conv) = 13.32 MB whisper_init_state: compute buffer (encode) = 87.96 MB whisper_init_state: compute buffer (cross) = 4.01 MB whisper_init_state: compute buffer (decode) = 96.02 MB
and then it falls back to CPU and runs fine
i checked and the files are all present in the whisper.cpp folder in buzz
if anything cloud help it will be great