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

clang - fatal error: 'assert.h' file not found #26

Open
RussellCanfield opened this issue Dec 8, 2023 · 2 comments
Open

clang - fatal error: 'assert.h' file not found #26

RussellCanfield opened this issue Dec 8, 2023 · 2 comments

Comments

@RussellCanfield
Copy link

RussellCanfield commented Dec 8, 2023

Hi, just wanted to say thank you for creating this project! I am testing out building a simple application - identical to your example, but setting the crate type as a lib using wasm-pack. And I get the following error:

  cargo:warning=clang: warning: argument unused during compilation: '-march=native' [-Wunused-command-line-argument]

  cargo:warning=In file included from ./llama.cpp/ggml.c:4:

  cargo:warning=./llama.cpp/ggml-impl.h:7:10: fatal error: 'assert.h' file not found

  cargo:warning=#include <assert.h>

  cargo:warning=         ^~~~~~~~~~

  cargo:warning=1 error generated.

  exit status: 1

I am fairly new to Rust, any ideas on how to work around this? I am running on macOS and just building with "wasm-pack build"

@RussellCanfield
Copy link
Author

RussellCanfield commented Dec 8, 2023

Looks like installing xcode command line tools got past this but got me to an unsupported architecture error, sorry if this isn't related to this crate - just trying to figure out if its something in the build.rs file or my machine (m1 chip)

@mdrokz
Copy link
Owner

mdrokz commented Dec 11, 2023

Hi, just wanted to say thank you for creating this project! I am testing out building a simple application - identical to your example, but setting the crate type as a lib using wasm-pack. And I get the following error:

  cargo:warning=clang: warning: argument unused during compilation: '-march=native' [-Wunused-command-line-argument]

  cargo:warning=In file included from ./llama.cpp/ggml.c:4:

  cargo:warning=./llama.cpp/ggml-impl.h:7:10: fatal error: 'assert.h' file not found

  cargo:warning=#include <assert.h>

  cargo:warning=         ^~~~~~~~~~

  cargo:warning=1 error generated.

  exit status: 1

I am fairly new to Rust, any ideas on how to work around this? I am running on macOS and just building with "wasm-pack build"

Hey sorry for the late reply as far as i know wasm isnt supported since it cant use the systems native libraries. I havent tried compilation of this library through wasm.

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