Skip to content

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

@RussellCanfield

Description

@RussellCanfield

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions