[MacPorts] #71870: llama.cpp: builds fail for 10.13 and earlier, due to errant use of OpenMP

MacPorts noreply at macports.org
Fri Jan 17 18:08:12 UTC 2025


#71870: llama.cpp: builds fail for 10.13 and earlier, due to errant use of OpenMP
---------------------+------------------------
 Reporter:  mascguy  |      Owner:  i0ntempest
     Type:  defect   |     Status:  assigned
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.10.5
 Keywords:           |       Port:  llama.cpp
---------------------+------------------------
 While it's not clear whether this is an upstream issue per se - ideally
 the CMake build should auto-disable OpenMP support if not available - it
 appears that isn't the case. Instead, the build continues forward, and
 fails at link time due to missing symbols:

 {{{
 Undefined symbols for architecture x86_64:
   "___kmpc_barrier", referenced from:
       _ggml_barrier in ggml-cpu.c.o
       _.omp_outlined. in ggml-cpu.c.o
   "___kmpc_end_single", referenced from:
       _.omp_outlined. in ggml-cpu.c.o
   "___kmpc_fork_call", referenced from:
       _ggml_graph_compute in ggml-cpu.c.o
   "___kmpc_global_thread_num", referenced from:
       _ggml_barrier in ggml-cpu.c.o
       _ggml_graph_compute in ggml-cpu.c.o
   "___kmpc_push_num_threads", referenced from:
       _ggml_graph_compute in ggml-cpu.c.o
   "___kmpc_single", referenced from:
       _.omp_outlined. in ggml-cpu.c.o
   "_omp_get_num_threads", referenced from:
       _.omp_outlined. in ggml-cpu.c.o
   "_omp_get_thread_num", referenced from:
       _.omp_outlined. in ggml-cpu.c.o
 }}}


 But explicitly disabling it with the addition of the following configure
 arg, fixes the issue:

 {{{
     -DGGML_OPENMP=OFF
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71870>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list