Skip to content

won't build on macOS #43

@maxim3007

Description

@maxim3007

Hello!
I have tried to build it on macOS 13.1 but build fails:

I UNAME_S:  Darwin
I UNAME_P:  i386
I UNAME_M:  x86_64
I CFLAGS:   -I.              -Ofast -DNDEBUG -std=c11   -fPIC -pthread -s  -pthread -mf16c -mfma -mavx2 -mavx -msse3 -DGGML_USE_ACCELERATE -DGGML_USE_CLBLAST -DGGML_USE_OPENBLAS
I CXXFLAGS: -I. -I./examples -Ofast -DNDEBUG -std=c++11 -fPIC -pthread -s -Wno-multichar -pthread
I LDFLAGS:   -framework Accelerate -lclblast -lOpenCL
I CC:       Apple clang version 14.0.0 (clang-1400.0.29.202)
I CXX:      Apple clang version 14.0.0 (clang-1400.0.29.202)

cc  -I.              -Ofast -DNDEBUG -std=c11   -fPIC -pthread -s  -pthread -mf16c -mfma -mavx2 -mavx -msse3 -DGGML_USE_ACCELERATE -DGGML_USE_CLBLAST -DGGML_USE_OPENBLAS -c ggml.c -o ggml.o
clang: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
ggml.c:6435:17: error: implicit declaration of function 'do_blas_sgemm' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                do_blas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
                ^
ggml.c:6435:17: note: did you mean 'cblas_sgemm'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:607:6: note: 'cblas_sgemm' declared here
void cblas_sgemm(const enum CBLAS_ORDER __Order,
     ^
ggml.c:6607:17: error: implicit declaration of function 'do_blas_sgemm' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                do_blas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
                ^
ggml.c:6820:17: error: implicit declaration of function 'do_blas_sgemm' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                do_blas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
                ^
3 errors generated.
make: *** [ggml.o] Error 1```

clang version: 14.0.0
make version: 3.81

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions