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

fatal error: 'alloca.h' file not found #110

Open
loretoparisi opened this issue Apr 27, 2023 · 0 comments
Open

fatal error: 'alloca.h' file not found #110

loretoparisi opened this issue Apr 27, 2023 · 0 comments

Comments

@loretoparisi
Copy link

I got this error when building StableLM on macOS Ventura 13.2.1. I have XCode tools installed and updated. The file has been converted successfully:

├── stablelm-base-alpha-3b
│   ├── README.md
│   ├── config.json
│   ├── generation_config.json
│   ├── ggml-model-f16.bin
│   ├── pytorch_model-00001-of-00002.bin
│   ├── pytorch_model-00002-of-00002.bin
│   ├── pytorch_model.bin.index.json
│   ├── special_tokens_map.json
│   ├── tokenizer.json
│   └── tokenizer_config.json

Stack trace:

build % sudo make -j && ./bin/stablelm -m ./stablelm-base-alpha-3b/ggml-model-f16.bin -p "I believe the meaning of life is" -t 8 -n 64

[  4%] Building CXX object examples/CMakeFiles/common.dir/common.cpp.o
[  4%] Building C object src/CMakeFiles/ggml.dir/ggml.c.o
In file included from /Users/loreto/Documents/Projects/ggml/examples/common.cpp:1:
In file included from /Users/loreto/Documents/Projects/ggml/examples/common.h:5:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:519:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__debug:14:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iosfwd:98:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__mbstate_t.h:29:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/wchar.h:123:15: fatal error: 'wchar.h' file not found
#include_next <wchar.h>
              ^~~~~~~~~
/Users/loreto/Documents/Projects/ggml/src/ggml.c:9:10: fatal error: 'alloca.h' file not found
#include <alloca.h>
         ^~~~~~~~~~
1 error generated.
make[2]: *** [src/CMakeFiles/ggml.dir/ggml.c.o] Error 1
make[1]: *** [src/CMakeFiles/ggml.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [examples/CMakeFiles/common.dir/common.cpp.o] Error 1
make[1]: *** [examples/CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2****
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