Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compilation Error on macOS #10

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

Open
turbo opened this issue Feb 16, 2024 · 1 comment
Open

Compilation Error on macOS #10

turbo opened this issue Feb 16, 2024 · 1 comment

Comments

@turbo
Copy link

turbo commented Feb 16, 2024

For a build with Metal according to the README, see:

(base) ➜  bert.cpp-future git:(master) make -C build
[ 50%] Built target ggml
[ 58%] Building CXX object src/CMakeFiles/bert.dir/bert.cpp.o
In file included from /Users/turbo/dev/bert.cpp-future/src/bert.cpp:9:
/Users/turbo/dev/bert.cpp-future/src/bert.h:186:22: warning: 'bert_tokenize' has C-linkage specified, but returns incomplete type 'bert_tokens' (aka 'vector<int>') which could be incompatible with C [-Wreturn-type-c-linkage]
BERT_API bert_tokens bert_tokenize(
                     ^
/Users/turbo/dev/bert.cpp-future/src/bert.h:192:22: warning: 'bert_detokenize' has C-linkage specified, but returns user-defined type 'bert_string' (aka 'basic_string<char>') which is incompatible with C [-Wreturn-type-c-linkage]
BERT_API bert_string bert_detokenize(
                     ^
/Users/turbo/dev/bert.cpp-future/src/bert.cpp:358:33: error: no matching function for call to 'min'
    memcpy(output, str.c_str(), std::min(n_output, str.size()));
                                ^~~~~~~~
@iamlemec
Copy link
Owner

Yeah, I think that probably needs an <algorithm> include. More importantly though, we got merged into llama.cpp, so this repo is mostly defunct. Check it out over there!

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

2 participants