[GH-ISSUE #10330] install TARGETS given target "ggml-cpu" which does not exist (archlinux, amd64, gfx1201) #53296

Closed
opened 2026-04-29 02:30:46 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @codeliger on GitHub (Apr 17, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10330

What is the issue?

I am trying to build the prerelease 0.6.6 to try it out and get this error. Any tips on how to fix it?

cmake -B build
-- ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- Including CPU backend
-- x86 detected
-- Adding CPU backend variant ggml-cpu-sandybridge: -msse4.2;-mavx GGML_SSE42;GGML_AVX
-- x86 detected
-- Adding CPU backend variant ggml-cpu-haswell: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2 GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2
-- x86 detected
-- Adding CPU backend variant ggml-cpu-skylakex: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2;-mavx512f;-mavx512cd;-mavx512vl;-mavx512dq;-mavx512bw GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2;GGML_AVX512
-- x86 detected
-- Adding CPU backend variant ggml-cpu-icelake: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2;-mavx512f;-mavx512cd;-mavx512vl;-mavx512dq;-mavx512bw;-mavx512vbmi;-mavx512vnni GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2;GGML_AVX512;GGML_AVX512_VBMI;GGML_AVX512_VNNI
-- x86 detected
-- Adding CPU backend variant ggml-cpu-alderlake: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2;-mavxvnni GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2;GGML_AVX_VNNI
-- x86 detected
-- Adding CPU backend variant ggml-cpu-sapphirerapids: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2;-mavx512f;-mavx512cd;-mavx512vl;-mavx512dq;-mavx512bw;-mavx512vbmi;-mavx512vnni;-mavx512bf16;-mamx-tile;-mamx-int8 GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2;GGML_AVX512;GGML_AVX512_VBMI;GGML_AVX512_VNNI;GGML_AVX512_BF16;GGML_AMX_TILE;GGML_AMX_INT8
CMake Error at CMakeLists.txt:58 (get_target_property):
  get_target_property() called with non-existent target "ggml-cpu".


CMake Error at CMakeLists.txt:63 (install):
  install TARGETS given target "ggml-cpu" which does not exist.

arch linux kernel 6.14 , 3900X + 9070 XT, rocm 6.4

Originally created by @codeliger on GitHub (Apr 17, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10330 ### What is the issue? I am trying to build the prerelease 0.6.6 to try it out and get this error. Any tips on how to fix it? ``` cmake -B build -- ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF. -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- Including CPU backend -- x86 detected -- Adding CPU backend variant ggml-cpu-sandybridge: -msse4.2;-mavx GGML_SSE42;GGML_AVX -- x86 detected -- Adding CPU backend variant ggml-cpu-haswell: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2 GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2 -- x86 detected -- Adding CPU backend variant ggml-cpu-skylakex: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2;-mavx512f;-mavx512cd;-mavx512vl;-mavx512dq;-mavx512bw GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2;GGML_AVX512 -- x86 detected -- Adding CPU backend variant ggml-cpu-icelake: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2;-mavx512f;-mavx512cd;-mavx512vl;-mavx512dq;-mavx512bw;-mavx512vbmi;-mavx512vnni GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2;GGML_AVX512;GGML_AVX512_VBMI;GGML_AVX512_VNNI -- x86 detected -- Adding CPU backend variant ggml-cpu-alderlake: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2;-mavxvnni GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2;GGML_AVX_VNNI -- x86 detected -- Adding CPU backend variant ggml-cpu-sapphirerapids: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2;-mavx512f;-mavx512cd;-mavx512vl;-mavx512dq;-mavx512bw;-mavx512vbmi;-mavx512vnni;-mavx512bf16;-mamx-tile;-mamx-int8 GGML_SSE42;GGML_F16C;GGML_FMA;GGML_BMI2;GGML_AVX;GGML_AVX2;GGML_AVX512;GGML_AVX512_VBMI;GGML_AVX512_VNNI;GGML_AVX512_BF16;GGML_AMX_TILE;GGML_AMX_INT8 CMake Error at CMakeLists.txt:58 (get_target_property): get_target_property() called with non-existent target "ggml-cpu". CMake Error at CMakeLists.txt:63 (install): install TARGETS given target "ggml-cpu" which does not exist. ``` arch linux kernel 6.14 , 3900X + 9070 XT, rocm 6.4
GiteaMirror added the bug label 2026-04-29 02:30:46 -05:00
Author
Owner

@jsaiko commented on GitHub (Apr 19, 2025):

Same issue

<!-- gh-comment-id:2816483800 --> @jsaiko commented on GitHub (Apr 19, 2025): Same issue
Author
Owner

@builker commented on GitHub (Apr 28, 2025):

Try make -f Makefile.sync clean checkout apply-patches sync before your cmake? Not sure it's documented anywhere. But it's found in workflows/test.yaml.

<!-- gh-comment-id:2836974225 --> @builker commented on GitHub (Apr 28, 2025): Try `make -f Makefile.sync clean checkout apply-patches sync` before your cmake? Not sure it's documented anywhere. But it's found in [workflows/test.yaml](https://github.com/ollama/ollama/blob/5cfc1c39f3d5822b0c0906f863f6df45c141c33b/.github/workflows/test.yaml#L240).
Author
Owner

@jsaiko commented on GitHub (Apr 29, 2025):

I ended up doing a fresh clone and it worked.

<!-- gh-comment-id:2837156850 --> @jsaiko commented on GitHub (Apr 29, 2025): I ended up doing a fresh clone and it worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#53296