Skip to content

Xcode projects no longer build with both whisper.cpp and llama.cpp #1887

@RoryMB

Description

@RoryMB

As of these two commits:
3ffc83d
ggml-org/llama.cpp@df334a1

Xcode projects that depend on both whisper.cpp and llama.cpp fail to build with the following error:

duplicate symbol '_ggml_map_custom2_inplace_f32' in:
    /Users/rmbutler/Library/Developer/Xcode/DerivedData/Test-enhfbqpszgsyebgummvnergeyfis/Build/Products/Debug-iphoneos/whisper.o
    /Users/rmbutler/Library/Developer/Xcode/DerivedData/Test-enhfbqpszgsyebgummvnergeyfis/Build/Products/Debug-iphoneos/llama.o
duplicate symbol '_ggml_backend_buft_supports_backend' in:
    /Users/rmbutler/Library/Developer/Xcode/DerivedData/Test-enhfbqpszgsyebgummvnergeyfis/Build/Products/Debug-iphoneos/whisper.o
    /Users/rmbutler/Library/Developer/Xcode/DerivedData/Test-enhfbqpszgsyebgummvnergeyfis/Build/Products/Debug-iphoneos/llama.o
...etc

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

Based on the comments in the accompanying pull requests I see that there is good reason for the commits, so I wonder if there is any alternative solution?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions