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

"Undefined symbols for architecture" when coreml is enabled #2276

Open
duykienvp opened this issue Jul 2, 2024 · 0 comments
Open

"Undefined symbols for architecture" when coreml is enabled #2276

duykienvp opened this issue Jul 2, 2024 · 0 comments

Comments

@duykienvp
Copy link

Hi,

I am trying to run the whisper.swiftui and got this error when adding coreml to the Package.swift

Added to Package.swift

.define("WHISPER_USE_COREML"),
.define("WHISPER_COREML_ALLOW_FALLBACK")

Build error:

ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
Undefined symbols for architecture arm64:
  "_whisper_coreml_encode", referenced from:
      whisper_encode_internal(whisper_context&, whisper_state&, int, int, bool (*)(void*), void*) in whisper.o
  "_whisper_coreml_free", referenced from:
      _whisper_free_state in whisper.o
  "_whisper_coreml_init", referenced from:
      _whisper_init_state in whisper.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Googled around and I dont think "CoreAudioTypes" is related here.

whisper.objc still runs fine with coreml support. Building whisper.cpp package alone succeeded though.

Not sure what was the issue.
Thank you

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

1 participant