Building on summer (from freebsd-ocaml-5.0) 2023-10-18 11:41.15 ---> using "b0ee167c73857b60ecf6c06eff6bbe96857a02ac84fefd2b9807cb2eea16bf97" from cache /: (user (uid 1000) (gid 1000)) /: (env OPAMPRECISETRACKING 1) /: (env OPAMUTF8 never) /: (env OPAMEXTERNALSOLVER builtin-0install) /: (env OPAMCRITERIA +removed) /: (run (shell "sudo ln -f /usr/local/bin/opam-2.1 /usr/local/bin/opam")) 2023-10-18 11:41.16 ---> using "58da31f76f3dd28576bb2b11a05c1473a2cbc0bc8e959f83414ab7001888e94f" from cache /: (run (network host) (shell "rm -rf ~/opam-repository && git clone -q 'https://github.com/ocaml/opam-repository' ~/opam-repository && git -C ~/opam-repository checkout -q a4349cb398e7d693e3d509914067dc47d1c71782")) 2023-10-18 11:41.16 ---> using "847cbd71d6e243cb26730c6185d78510731de6bc2b4440eaf8f09e2ada29204e" from cache /: (run (shell "rm -rf ~/.opam && opam init -ya --bare ~/opam-repository")) No configuration file found, using built-in defaults. Checking for available remotes: rsync and local, git. - you won't be able to use mercurial repositories unless you install the hg command on your system. - you won't be able to use darcs repositories unless you install the darcs command on your system. <><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><> [default] Initialised User configuration: /usr/home/opam/.profile is already up-to-date. [NOTE] Make sure that /usr/home/opam/.profile is well sourced in your ~/.bashrc. 2023-10-18 11:41.16 ---> using "76fe4e508bf18ac6169aa42d066ca9a1236d6528de4350d6a7fa0ee89b29da2f" from cache /: (run (cache (opam-archives (target /usr/home/opam/.opam/download-cache))) (network host) (shell "opam switch create --repositories=default '5.1.0' 'ocaml-base-compiler.5.1.0'")) <><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><> Switch invariant: ["ocaml-base-compiler" {= "5.1.0"}] <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> installed base-bigarray.base -> installed base-threads.base -> installed base-unix.base -> installed ocaml-options-vanilla.1 -> retrieved ocaml-base-compiler.5.1.0 (https://github.com/ocaml/ocaml/archive/5.1.0.tar.gz) -> installed ocaml-base-compiler.5.1.0 -> installed ocaml-config.3 -> installed ocaml.5.1.0 -> installed base-domains.base -> installed base-nnp.base Done. # Run eval $(opam env --switch=5.1.0) to update the current shell environment 2023-10-18 11:41.16 ---> using "45001699be8995f4b15be626c3924c9cad054345a4e372d9e7d67e717e7c9603" from cache /: (run (network host) (shell "opam update --depexts")) [WARNING] Unknown update command for bsd, skipping system update 2023-10-18 11:41.17 ---> using "46c9f3ab7d5746063c1ef6a70a58a8d70b9b45d47abb0a64ca248a2dcd32acaa" from cache /: (run (cache (opam-archives (target /usr/home/opam/.opam/download-cache))) (network host) (shell "\ \nopam remove -y \"llama-cpp-ocaml.0.0.1\"\ \nopam install -vy \"llama-cpp-ocaml.0.0.1\"\ \nres=$?\ \nif [ $res = 31 ]; then\ \n if opam show -f x-ci-accept-failures: \"llama-cpp-ocaml.0.0.1\" | grep -q '\"freebsd\"'; then\ \n echo \"This package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\"\ \n exit 69\ \n fi\ \nfi\ \n\ \n\ \nexit $res\ \n")) [NOTE] llama-cpp-ocaml.0.0.1 is not installed. Nothing to do. The following actions will be performed: - install dune 3.11.1 [required by llama-cpp-ocaml] - install conf-pkg-config 3 [required by ctypes-foreign] - install stdlib-shims 0.3.0 [required by integers] - install csexp 1.5.2 [required by dune-configurator] - install bigarray-compat 1.1.0 [required by llama-cpp-ocaml] - install conf-libffi 2.0.0 [required by ctypes-foreign] - install integers 0.7.0 [required by llama-cpp-ocaml] - install dune-configurator 3.11.1 [required by llama-cpp-ocaml] - install ctypes 0.21.1 [required by llama-cpp-ocaml] - install ctypes-foreign 0.21.1 [required by llama-cpp-ocaml] - install llama-cpp-ocaml 0.0.1 ===== 11 to install ===== <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> Processing 1/33: Processing 2/33: Processing 3/33: Processing 4/33: Processing 5/33: Processing 6/33: [conf-pkg-config: pkg-config] -> retrieved ctypes.0.21.1 (cached) Processing 7/33: [conf-pkg-config: pkg-config] - usage: pkgconf [OPTIONS] [LIBRARIES] - - basic options: - - --help this message - --about print pkgconf version and license to stdout - --version print supported pkg-config version to stdout - --atleast-pkgconfig-version check whether or not pkgconf is compatible - with a specified pkg-config version - --errors-to-stdout print all errors on stdout instead of stderr - --print-errors ensure all errors are printed - --short-errors be less verbose about some errors - --silence-errors explicitly be silent about errors - --list-all list all known packages - --list-package-names list all known package names - --simulate simulate walking the calculated dependency graph - --no-cache do not cache already seen packages when - walking the dependency graph - --log-file=filename write an audit log to a specified file - --with-path=path adds a directory to the search path - --define-prefix override the prefix variable with one that is guessed based on - the location of the .pc file - --dont-define-prefix do not override the prefix variable under any circumstances - --prefix-variable=varname sets the name of the variable that pkgconf considers - to be the package prefix - --relocate=path relocates a path and exits (mostly for testsuite) - --dont-relocate-paths disables path relocation support - - cross-compilation personality support: - - --personality=triplet|filename sets the personality to 'triplet' or a file named 'filename' - --dump-personality dumps details concerning selected personality - - checking specific pkg-config database entries: - - --atleast-version require a specific version of a module - --exact-version require an exact version of a module - --max-version require a maximum version of a module - --exists check whether or not a module exists - --uninstalled check whether or not an uninstalled module will be used - --no-uninstalled never use uninstalled modules when satisfying dependencies - --no-provides do not use 'provides' rules to resolve dependencies - --maximum-traverse-depth maximum allowed depth for dependency graph - --static be more aggressive when computing dependency graph - (for static linking) - --shared use a simplified dependency graph (usually default) - --pure optimize a static dependency graph as if it were a normal - dependency graph - --env-only look only for package entries in PKG_CONFIG_PATH - --ignore-conflicts ignore 'conflicts' rules in modules - --validate validate specific .pc files for correctness - - querying specific pkg-config database fields: - - --define-variable=varname=value define variable 'varname' as 'value' - --variable=varname print specified variable entry to stdout - --cflags print required CFLAGS to stdout - --cflags-only-I print required include-dir CFLAGS to stdout - --cflags-only-other print required non-include-dir CFLAGS to stdout - --libs print required linker flags to stdout - --libs-only-L print required LDPATH linker flags to stdout - --libs-only-l print required LIBNAME linker flags to stdout - --libs-only-other print required other linker flags to stdout - --print-requires print required dependency frameworks to stdout - --print-requires-private print required dependency frameworks for static - linking to stdout - --print-provides print provided dependencies to stdout - --print-variables print all known variables in module to stdout - --digraph print entire dependency graph in graphviz 'dot' format - --keep-system-cflags keep -I/usr/include entries in cflags output - --keep-system-libs keep -L/usr/lib entries in libs output - --path show the exact filenames for any matching .pc files - --modversion print the specified module's version to stdout - --internal-cflags do not filter 'internal' cflags from output - - filtering output: - - --msvc-syntax print translatable fragments in MSVC syntax - --fragment-filter=types filter output fragments to the specified types - - report bugs to <https://github.com/pkgconf/pkgconf/issues/new>. -> compiled conf-pkg-config.3 Processing 7/33: -> installed conf-pkg-config.3 Processing 8/33: Processing 9/33: [conf-libffi: pkg-config libffi] -> retrieved csexp.1.5.2 (cached) Processing 10/33: [conf-libffi: pkg-config libffi] -> compiled conf-libffi.2.0.0 Processing 10/33: -> installed conf-libffi.2.0.0 Processing 11/33: -> retrieved ctypes-foreign.0.21.1 (cached) Processing 12/33: -> retrieved dune.3.11.1 (cached) Processing 13/33: Processing 14/33: [dune: ocaml 15] -> retrieved integers.0.7.0 (cached) Processing 15/33: [llama-cpp-ocaml.0.0.1: http] [dune: ocaml 15] -> retrieved dune-configurator.3.11.1 (cached) Processing 16/33: [llama-cpp-ocaml.0.0.1: http] [dune: ocaml 15] Processing 16/33: [dune: ocaml 15] -> retrieved stdlib-shims.0.3.0 (cached) -> retrieved llama-cpp-ocaml.0.0.1 (https://github.com/atacama-dev/llama-cpp-ocaml/archive/refs/tags/0.0.1.tar.gz) -> retrieved bigarray-compat.1.1.0 (cached) + /usr/home/opam/.opam/5.1.0/bin/ocaml "boot/bootstrap.ml" "-j" "15" (CWD=/usr/home/opam/.opam/5.1.0/.opam-switch/build/dune.3.11.1) - ocamlc -output-complete-exe -w -24 -g -o .duneboot.exe -I boot -I +unix unix.cma boot/libs.ml boot/duneboot.ml - ./.duneboot.exe -j 15 - Processing 16/33: [dune: ./_boot/dune.exe build] + /usr/home/opam/.opam/5.1.0/.opam-switch/build/dune.3.11.1/./_boot/dune.exe "build" "dune.install" "--release" "--profile" "dune-bootstrap" "-j" "15" (CWD=/usr/home/opam/.opam/5.1.0/.opam-switch/build/dune.3.11.1) -> compiled dune.3.11.1 -> installed dune.3.11.1 Processing 18/33: [bigarray-compat: dune build] Processing 19/33: [bigarray-compat: dune build] [csexp: dune build] Processing 20/33: [bigarray-compat: dune build] [csexp: dune build] [stdlib-shims: dune build] -> compiled stdlib-shims.0.3.0 Processing 20/33: [bigarray-compat: dune build] [csexp: dune build] -> installed stdlib-shims.0.3.0 Processing 21/33: [bigarray-compat: dune build] [csexp: dune build] Processing 22/33: [bigarray-compat: dune build] [csexp: dune build] [integers: dune build] -> compiled csexp.1.5.2 Processing 22/33: [bigarray-compat: dune build] [integers: dune build] -> installed csexp.1.5.2 Processing 23/33: [bigarray-compat: dune build] [integers: dune build] Processing 24/33: [bigarray-compat: dune build] [dune-configurator: rm] [integers: dune build] -> compiled bigarray-compat.1.1.0 Processing 24/33: [dune-configurator: rm] [integers: dune build] -> installed bigarray-compat.1.1.0 Processing 25/33: [dune-configurator: rm] [integers: dune build] Processing 25/33: [dune-configurator: dune build] [integers: dune build] -> compiled integers.0.7.0 Processing 25/33: [dune-configurator: dune build] -> installed integers.0.7.0 Processing 26/33: [dune-configurator: dune build] + /usr/home/opam/.opam/5.1.0/bin/dune "build" "-p" "dune-configurator" "-j" "15" "@install" (CWD=/usr/home/opam/.opam/5.1.0/.opam-switch/build/dune-configurator.3.11.1) -> compiled dune-configurator.3.11.1 -> installed dune-configurator.3.11.1 Processing 28/33: [ctypes: dune build] + /usr/home/opam/.opam/5.1.0/bin/dune "build" "-p" "ctypes" "-j" "15" "--promote-install-files=false" "@install" (CWD=/usr/home/opam/.opam/5.1.0/.opam-switch/build/ctypes.0.21.1) Processing 28/33: [ctypes: dune install] + /usr/home/opam/.opam/5.1.0/bin/dune "install" "-p" "ctypes" "--create-install-files" "ctypes" (CWD=/usr/home/opam/.opam/5.1.0/.opam-switch/build/ctypes.0.21.1) -> compiled ctypes.0.21.1 -> installed ctypes.0.21.1 Processing 30/33: [ctypes-foreign: dune build] + /usr/home/opam/.opam/5.1.0/bin/dune "build" "-p" "ctypes-foreign" "-j" "15" "--promote-install-files=false" "@install" (CWD=/usr/home/opam/.opam/5.1.0/.opam-switch/build/ctypes-foreign.0.21.1) Processing 30/33: [ctypes-foreign: dune install] + /usr/home/opam/.opam/5.1.0/bin/dune "install" "-p" "ctypes-foreign" "--create-install-files" "ctypes-foreign" (CWD=/usr/home/opam/.opam/5.1.0/.opam-switch/build/ctypes-foreign.0.21.1) -> compiled ctypes-foreign.0.21.1 -> installed ctypes-foreign.0.21.1 Processing 32/33: [llama-cpp-ocaml: dune build] + /usr/home/opam/.opam/5.1.0/bin/dune "build" "-p" "llama-cpp-ocaml" "-j" "15" "@install" (CWD=/usr/home/opam/.opam/5.1.0/.opam-switch/build/llama-cpp-ocaml.0.0.1) - (cd _build/default/src && /usr/bin/patch -d llama.cpp -p1) < _build/default/src/produce-static-archive.patch - Hmm... Looks like a unified diff to me... - The text leading up to this was: - -------------------------- - |From e97f490b4363c80961a1893f80633f706b9cb2be Mon Sep 17 00:00:00 2001 - |From: Ilias Garnier <igarnier@protonmail.com> - |Date: Tue, 12 Sep 2023 23:06:06 +0200 - |Subject: [PATCH] Produce static archive - | - |--- - | Makefile | 3 +++ - | 1 file changed, 3 insertions(+) - | - |diff --git a/Makefile b/Makefile - |index a774dc5..b45d2c0 100644 - |--- a/Makefile - |+++ b/Makefile - -------------------------- - Patching file Makefile using Plan A... - Hunk #1 succeeded at 488. - Hmm... Ignoring the trailing garbage. - done - (cd _build/default/src && /usr/bin/cc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -I /usr/home/opam/.opam/5.1.0/lib/ocaml -I /usr/home/opam/.opam/5.1.0/lib/bigarray-compat -I /usr/home/opam/.opam/5.1.0/lib/ctypes -I /usr/home/opam/.opam/5.1.0/lib/ctypes-foreign -I /usr/home/opam/.opam/5.1.0/lib/integers -I /usr/home/opam/.opam/5.1.0/lib/ocaml/str -I functions -I types -I llama.cpp -o c_generated_functions.o -c c_generated_functions.c) - c_generated_functions.c:268:10: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] - char* x198 = llama_token_get_text(x194, x195); - ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - c_generated_functions.c:351:52: warning: passing 'llama_grammar_element **' (aka 'struct llama_grammar_element **') to parameter of type 'const llama_grammar_element **' (aka 'const struct llama_grammar_element **') discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] - struct llama_grammar* x288 = llama_grammar_init(x281, x282, x285); - ^~~~ - llama.cpp/llama.h:409:44: note: passing argument to parameter 'rules' here - const llama_grammar_element ** rules, - ^ - c_generated_functions.c:599:10: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] - char* x518 = llama_print_system_info(); - ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ - c_generated_functions.c:607:18: warning: incompatible function pointer types passing 'void (*)(enum llama_log_level, char *, void *)' to parameter of type 'llama_log_callback' (aka 'void (*)(enum llama_log_level, const char *, void *)') [-Wincompatible-function-pointer-types] - llama_log_set(x521, x522); - ^~~~ - llama.cpp/llama.h:527:53: note: passing argument to parameter 'log_callback' here - LLAMA_API void llama_log_set(llama_log_callback log_callback, void * user_data); - ^ - 4 warnings generated. - (cd _build/default/src && /usr/local/bin/gmake -C llama.cpp libllama.so libllama.a) - gmake: Entering directory '/usr/home/opam/.opam/5.1.0/.opam-switch/build/llama-cpp-ocaml.0.0.1/_build/default/src/llama.cpp' - I llama.cpp build info: - I UNAME_S: FreeBSD - I UNAME_P: amd64 - I UNAME_M: amd64 - I CFLAGS: -I. -Icommon -DNDEBUG -DGGML_USE_K_QUANTS -O3 -std=c11 -fPIC -D_XOPEN_SOURCE=600 -D__BSD_VISIBLE -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Wno-unused-function -pthread -march=native -mtune=native - I CXXFLAGS: -I. -Icommon -DNDEBUG -DGGML_USE_K_QUANTS -O3 -std=c++11 -fPIC -D_XOPEN_SOURCE=600 -D__BSD_VISIBLE -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -Wno-format-truncation -Wno-array-bounds -pthread -march=native -mtune=native - I LDFLAGS: - I CC: FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c) - I CXX: FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c) - - c++ -I. -Icommon -DNDEBUG -DGGML_USE_K_QUANTS -O3 -std=c++11 -fPIC -D_XOPEN_SOURCE=600 -D__BSD_VISIBLE -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -Wno-format-truncation -Wno-array-bounds -pthread -march=native -mtune=native -c llama.cpp -o llama.o - cc -I. -Icommon -DNDEBUG -DGGML_USE_K_QUANTS -O3 -std=c11 -fPIC -D_XOPEN_SOURCE=600 -D__BSD_VISIBLE -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Wno-unused-function -pthread -march=native -mtune=native -c ggml.c -o ggml.o - cc -I. -Icommon -DNDEBUG -DGGML_USE_K_QUANTS -O3 -std=c11 -fPIC -D_XOPEN_SOURCE=600 -D__BSD_VISIBLE -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Wno-unused-function -pthread -march=native -mtune=native -c k_quants.c -o k_quants.o - cc -I. -Icommon -DNDEBUG -DGGML_USE_K_QUANTS -O3 -std=c11 -fPIC -D_XOPEN_SOURCE=600 -D__BSD_VISIBLE -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Wno-unused-function -pthread -march=native -mtune=native -c ggml-alloc.c -o ggml-alloc.o - c++ -I. -Icommon -DNDEBUG -DGGML_USE_K_QUANTS -O3 -std=c++11 -fPIC -D_XOPEN_SOURCE=600 -D__BSD_VISIBLE -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -Wno-format-truncation -Wno-array-bounds -pthread -march=native -mtune=native -shared -fPIC -o libllama.so llama.o ggml.o k_quants.o ggml-alloc.o - ar -rc libllama.a llama.o ggml.o k_quants.o ggml-alloc.o - gmake: Leaving directory '/usr/home/opam/.opam/5.1.0/.opam-switch/build/llama-cpp-ocaml.0.0.1/_build/default/src/llama.cpp' - warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option] - llama.cpp:760:45: warning: comparison of integers of different signs: 'rlim_t' (aka 'long') and 'unsigned long' [-Wsign-compare] - if (suggest && (lock_limit.rlim_max > lock_limit.rlim_cur + size)) { - ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ - 2 warnings generated. - ggml.c:2391:5: warning: implicit conversion increases floating-point precision: 'float' to 'ggml_float' (aka 'double') [-Wdouble-promotion] - GGML_F16_VEC_REDUCE(sumf, sum); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - ggml.c:2023:37: note: expanded from macro 'GGML_F16_VEC_REDUCE' - #define GGML_F16_VEC_REDUCE GGML_F32Cx8_REDUCE - ^ - ggml.c:2013:33: note: expanded from macro 'GGML_F32Cx8_REDUCE' - #define GGML_F32Cx8_REDUCE GGML_F32x8_REDUCE - ^ - ggml.c:1959:11: note: expanded from macro 'GGML_F32x8_REDUCE' - res = _mm_cvtss_f32(_mm_hadd_ps(t1, t1)); \ - ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - ggml.c:3657:9: warning: implicit conversion increases floating-point precision: 'float' to 'ggml_float' (aka 'double') [-Wdouble-promotion] - GGML_F16_VEC_REDUCE(sumf[k], sum[k]); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - ggml.c:2023:37: note: expanded from macro 'GGML_F16_VEC_REDUCE' - #define GGML_F16_VEC_REDUCE GGML_F32Cx8_REDUCE - ^ - ggml.c:2013:33: note: expanded from macro 'GGML_F32Cx8_REDUCE' - #define GGML_F32Cx8_REDUCE GGML_F32x8_REDUCE - ^ - ggml.c:1959:11: note: expanded from macro 'GGML_F32x8_REDUCE' - res = _mm_cvtss_f32(_mm_hadd_ps(t1, t1)); \ - ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 2 warnings generated. -> compiled llama-cpp-ocaml.0.0.1 -> installed llama-cpp-ocaml.0.0.1 Done. 2023-10-18 11:44.25 ---> saved as "a2c5bfe81c10d57f74c09edab94daab90561cdc3b4fca35acd07a82393d3aa12" Job succeeded