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

Add missing c file to Package.swift #2978

Merged
merged 1 commit into from
Sep 3, 2023

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 ggerganov: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