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

Duplicate symbols #41

Open
johnyquest7 opened this issue Aug 20, 2024 · 0 comments
Open

Duplicate symbols #41

johnyquest7 opened this issue Aug 20, 2024 · 0 comments

Comments

@johnyquest7
Copy link

johnyquest7 commented Aug 20, 2024

I have a swift project that uses Swift whisper and package from https://github.com/eastriverlee/LLM.swift. Plan was to use swift whisper to transcribe speech and send it to LLM. Both these packages works well independently. But when I tried to include these packages in one code base, Xcode errors popped up / stating there were duplicate symbols. I guess this is because both packages share ggml.h files? Is there a way to fix it ?

error: llama.h - 151 duplicate symbols
Linker command failed with exit code 1 (use -v to see invocation)

Unable to compile swift mac app.
ld: 151 duplicate symbols
clang: error: linker command failed with exit code 1 (use -v to see invocation)

duplicate symbol '_ggml_dup' in:
/Users/ethanjohnson/Library/Developer/Xcode/DerivedData/UI4trans-bkeawpcbkmzcuuhcwlvkcchdijkn/Build/Products/Debug/llama.o
/Users/ethanjohnson/Library/Developer/Xcode/DerivedData/UI4trans-bkeawpcbkmzcuuhcwlvkcchdijkn/Build/Products/Debug/whisper_cpp.o
duplicate symbol '_ggml_step' in:

ld: 151 duplicate symbols
clang: error: linker command failed with exit code 1 (use -v to see invocation)

To Reproduce

import LLM
import SwiftWhisper
Expected behavior
Project compiles without error

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
Apple M2
16 GB
macOS 14

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