-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
Description
Git commit
Operating systems
BSD
GGML backends
CPU
Problem description & steps to reproduce
I am trying to compile on OpenBSD 7.6 (GENERIC.MP#338 amd64).
cmake -B build completes with a warning.
cmake --build build --config Release fails with 2 errors.
I'm able to build successfully on Linux 6.12.7-arch1-1, following the same steps.
First Bad Commit
No response
Relevant log output
$ cmake -B build
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: amd64
-- Including CPU backend
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
CMake Warning at ggml/src/ggml-cpu/CMakeLists.txt:53 (message):
OpenMP not found
Call Stack (most recent call first):
ggml/src/CMakeLists.txt:299 (ggml_add_cpu_backend_variant_impl)
-- x86 detected
-- Adding CPU backend variant ggml-cpu: -march=native
-- Configuring done (0.6s)
-- Generating done (0.9s)
-- Build files have been written to: /home/dwrz/llama.cpp/build
$ cmake --build build --config Release
[ 4%] Built target ggml-base
[ 9%] Built target ggml-cpu
[ 10%] Built target ggml
[ 10%] Building CXX object src/CMakeFiles/llama.dir/llama.cpp.o
In file included from /home/dwrz/llama.cpp/src/llama.cpp:4:
/home/dwrz/llama.cpp/src/./llama-mmap.h:21:9: error: expected member name or ';' after declaration specifiers
int fileno() const;
~~~ ^
/usr/include/stdio.h:414:20: note: expanded from macro 'fileno'
#define fileno(p) (!__isthreaded ? __sfileno(p) : (fileno)(p))
^
In file included from /home/dwrz/llama.cpp/src/llama.cpp:4:
/home/dwrz/llama.cpp/src/./llama-mmap.h:21:9: error: expected ')'
/usr/include/stdio.h:414:20: note: expanded from macro 'fileno'
#define fileno(p) (!__isthreaded ? __sfileno(p) : (fileno)(p))
^
/home/dwrz/llama.cpp/src/./llama-mmap.h:21:9: note: to match this '('
/usr/include/stdio.h:414:19: note: expanded from macro 'fileno'
#define fileno(p) (!__isthreaded ? __sfileno(p) : (fileno)(p))
^
2 errors generated.
*** Error 1 in . (src/CMakeFiles/llama.dir/build.make:76 'src/CMakeFiles/llama.dir/llama.cpp.o': cd /home/dwrz/llama.cpp/build/src && /usr/b...)
*** Error 2 in . (CMakeFiles/Makefile2:1767 'src/CMakeFiles/llama.dir/all': /usr/bin/make -s -f src/CMakeFiles/llama.dir/build.make src/CMak...)
*** Error 2 in /home/dwrz/llama.cpp/build (Makefile:146 'all': /usr/bin/make -s -f CMakeFiles/Makefile2 all)