Skip to content

Compile bug: ‘ggml_gelu_erf’ was not declared in this scope; did you mean ‘ggml_gelu’ #13744

Closed
@utkarsh181

Description

@utkarsh181

Git commit

2d6f09800112ad71dbdd5bdd6ac592cb52f81ebd

Operating systems

Linux

GGML backends

Kompute

Problem description & steps to reproduce

I'm trying to compile llama.cpp AUR package, but its unable to find definition for ggml_gelu_erf, which was added in 79799, 2 days ago.

First Bad Commit

797990c

Compile command

makepkg -sCi

Relevant log output

[ 80%] Building CXX object tools/mtmd/CMakeFiles/mtmd.dir/clip.cpp.o
/home/utkarsh/.local/src/aur/cur/llama.cpp-git/src/llama.cpp/tools/mtmd/clip.cpp: In member function ‘ggml_cgraph* clip_graph::build_whisper_enc()’:
/home/utkarsh/.local/src/aur/cur/llama.cpp-git/src/llama.cpp/tools/mtmd/clip.cpp:1441:19: error: ‘ggml_gelu_erf’ was not declared in this scope; did you mean ‘ggml_gelu’?
 1441 |             cur = ggml_gelu_erf(ctx0, cur);
      |                   ^~~~~~~~~~~~~
      |                   ggml_gelu
/home/utkarsh/.local/src/aur/cur/llama.cpp-git/src/llama.cpp/tools/mtmd/clip.cpp: In member function ‘ggml_tensor* clip_graph::build_ffn(ggml_tensor*, ggml_tensor*, ggml_tensor*, ggml_tensor*, ggml_tensor*, ggml_tensor*, ggml_tensor*, ffn_op_type, int) const’:
/home/utkarsh/.local/src/aur/cur/llama.cpp-git/src/llama.cpp/tools/mtmd/clip.cpp:1760:27: error: ‘ggml_gelu_erf’ was not declared in this scope; did you mean ‘ggml_gelu’?
 1760 |                     cur = ggml_gelu_erf(ctx0, cur);
      |                           ^~~~~~~~~~~~~
      |                           ggml_gelu
make[2]: *** [tools/mtmd/CMakeFiles/mtmd.dir/build.make:107: tools/mtmd/CMakeFiles/mtmd.dir/clip.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2428: tools/mtmd/CMakeFiles/mtmd.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions