Skip to content

Add missing c file to Package.swift#2978

Merged
ggerganov merged 1 commit intoggml-org:masterfrom
kchro3:kchro3/fix-swift-package
Sep 3, 2023
Merged

Add missing c file to Package.swift#2978
ggerganov merged 1 commit intoggml-org:masterfrom
kchro3:kchro3/fix-swift-package

Conversation

@kchro3
Copy link
Contributor

@kchro3 kchro3 commented Sep 3, 2023

The latest master can't import llama in Xcode properly. It fails with linker errors and can't resolve functions:

Undefined symbol: _ggml_allocr_alloc

Undefined symbol: _ggml_allocr_alloc_graph

Undefined symbol: _ggml_allocr_free

Undefined symbol: _ggml_allocr_is_measure

Undefined symbol: _ggml_allocr_new

Undefined symbol: _ggml_allocr_new_measure

Undefined symbol: _ggml_allocr_reset

This can be solved by adding the ggml-alloc.c to the Package.swift

@ggerganov ggerganov merged commit 2753415 into ggml-org:master Sep 3, 2023
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

Successfully merging this pull request may close these issues.

3 participants