Skip to content

setup_env.py on MacBook M2 failed #611

Description

When I run setup_env.py, it failed on compiling with CMake and this is the content in logs/compile.log

[  0%] Linking CXX shared library ../../../../bin/libggml-base.dylib
Undefined symbols for architecture arm64:
  "_dequantize_row_i2_s", referenced from:
      _type_traits in ggml.c.o
  "_quantize_i2_s", referenced from:
      _ggml_quantize_chunk in ggml.c.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/libggml-base.0.15.3.dylib] Error 1
make[1]: *** [3rdparty/llama.cpp/ggml/src/CMakeFiles/ggml-base.dir/all] Error 2
make: *** [all] Error 2

my environment:

soc: apple m2
ram: 16gb
cmake --version: 4.4.2
clang -v: 21.0.0 (clang-2100.1.1.101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions