[package - 140i386-default][misc/koboldcpp] Failed for koboldcpp-1.72 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Tue, 13 Aug 2024 01:18:34 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     yuri@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy21/data/140i386-default/ff9b1b7bdb15/logs/koboldcpp-1.72.log
Build URL:      https://pkg-status.freebsd.org/beefy21/build.html?mastername=140i386-default&build=ff9b1b7bdb15
Log:

=>> Building misc/koboldcpp
build started at Tue Aug 13 01:06:44 UTC 2024
port directory: /usr/ports/misc/koboldcpp
package name: koboldcpp-1.72
building for: FreeBSD 140i386-default-job-32 14.0-RELEASE-p9 FreeBSD 14.0-RELEASE-p9 i386
maintained by: yuri@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 1403 Aug 13 01:01 /usr/ports/misc/koboldcpp/Makefile
Ports top last git commit: ff9b1b7bdb
Ports top unclean checkout: no
Port dir last git commit: 7d0b9dcc61
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1-30-g79e3edcd
Host OSVERSION: 1500019
Jail OSVERSION: 1400097
Job Id: 32

---Begin Environment---
SHELL=/bin/sh
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
OSVERSION=1400097
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
UNAME_m=i386
UNAME_p=i386
UNAME_r=14.0-RELEASE-p9
LOCALBASE=/usr/local
UNAME_v=FreeBSD 14.0-RELEASE-p9
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.1-30-g79e3edcd
MASTERMNT=/usr/local/poudriere/data/.m/140i386-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/140i386-default/32/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=140i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/140i386-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.1-30-g79e3edcd
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
yuri@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake PYTHON="/usr/local/bin/python3.11" XDG_DATA_HOME=/wrkdirs/usr/ports/misc/koboldcpp/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/koboldcpp/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/misc/koboldcpp/work/.cache  HOME=/wrkdirs/usr/ports/misc/koboldcpp/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/misc/koboldcpp/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/misc/koboldcpp/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local"
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/misc/koboldcpp/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/koboldcpp/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/misc/koboldcpp/work/.cache  HOME=/wrkdirs/usr/ports/misc/koboldcpp/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/misc/koboldcpp/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/misc/koboldcpp/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-isystem /usr/local/include"  LDFLAGS=" -fstack-protector-strong -L/usr/local/lib " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include " BSD_INSTALL_PROGRAM="install  -s -
m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PYTHON_INCLUDEDIR=include/python3.11  PYTHON_LIBDIR=lib/python3.11  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=lib/python3.11/site-packages  PYTHON_SUFFIX=311  PYTHON_EXT_SUFFIX=.cpython-311  PYTHON_VER=3.11  PYTHON_VERSION=python3.11 PYTHON2="@comment " PYTHON3="" OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/koboldcpp"  EXAMPLESDIR="share/examples/koboldcpp"  DATADIR="share/koboldcpp"  WWWDIR="www/koboldcpp"  ETCDIR="etc/koboldcpp"
--End PLIST_SUB--

--SUB_LIST--
PYTHON_INCLUDEDIR=/usr/local/include/python3.11  PYTHON_LIBDIR=/usr/local/lib/python3.11  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=/usr/local/lib/python3.11/site-packages  PYTHON_SUFFIX=311  PYTHON_EXT_SUFFIX=.cpython-311  PYTHON_VER=3.11  PYTHON_VERSION=python3.11 PYTHON2="@comment " PYTHON3="" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/koboldcpp DOCSDIR=/usr/local/share/doc/koboldcpp EXAMPLESDIR=/usr/local/share/examples/koboldcpp  WWWDIR=/usr/local/www/koboldcpp ETCDIR=/usr/local/etc/koboldcpp
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=i386
MACHINE_ARCH=i386
ARCH=${MACHINE_ARCH}
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  524288
stack size              (kbytes, -s)  65536
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License AGPLv3 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   koboldcpp-1.72 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.21.3.pkg
[140i386-default-job-32] Installing pkg-1.21.3...
[140i386-default-job-32] Extracting pkg-1.21.3: .......... done
===>   koboldcpp-1.72 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of koboldcpp-1.72
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License AGPLv3 accepted by the user
=> LostRuins-koboldcpp-v1.72_GH0.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://codeload.github.com/LostRuins/koboldcpp/tar.gz/v1.72?dummy=/LostRuins-koboldcpp-v1.72_GH0.tar.gz
fetch: https://codeload.github.com/LostRuins/koboldcpp/tar.gz/v1.72?dummy=/LostRuins-koboldcpp-v1.72_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/LostRuins/koboldcpp/tar.gz/v1.72?dummy=/LostRuins-koboldcpp-v1.72_GH0.tar.gz: size of remote file is not known
LostRuins-koboldcpp-v1.72_GH0.tar.gz                    27 MB 8612 kBps    03s
===> Fetching all distfiles required by koboldcpp-1.72 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License AGPLv3 accepted by the user
===> Fetching all distfiles required by koboldcpp-1.72 for building
=> SHA256 Checksum OK for LostRuins-koboldcpp-v1.72_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License AGPLv3 accepted by the user
===> Fetching all distfiles required by koboldcpp-1.72 for building
===>  Extracting for koboldcpp-1.72
=> SHA256 Checksum OK for LostRuins-koboldcpp-v1.72_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Patching for koboldcpp-1.72
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   koboldcpp-1.72 depends on package: gmake>=4.4.1 - not found
===>   Installing existing package /packages/All/gmake-4.4.1.pkg
[140i386-default-job-32] Installing gmake-4.4.1...
[140i386-default-job-32] `-- Installing gettext-runtime-0.22.5...
[140i386-default-job-32] |   `-- Installing indexinfo-0.3.1...
[140i386-default-job-32] |   `-- Extracting indexinfo-0.3.1: .... done
[140i386-default-job-32] `-- Extracting gettext-runtime-0.22.5: .......... done
[140i386-default-job-32] Extracting gmake-4.4.1: .......... done
===>   koboldcpp-1.72 depends on package: gmake>=4.4.1 - found
===>   Returning to build of koboldcpp-1.72
===>   koboldcpp-1.72 depends on file: /usr/local/bin/python3.11 - not found
===>   Installing existing package /packages/All/python311-3.11.9_1.pkg
[140i386-default-job-32] Installing python311-3.11.9_1...
[140i386-default-job-32] `-- Installing libffi-3.4.6...
[140i386-default-job-32] `-- Extracting libffi-3.4.6: .......... done
[140i386-default-job-32] `-- Installing mpdecimal-4.0.0...
<snip>
c++ -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -fmath-errno -DNDEBUG -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -pthread -DGGML_USE_OPENBLAS -DGGML_USE_BLAS -I/usr/local/include/openblas -c gpttype_adapter.cpp -o gpttype_adapter_openblas.o
c++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
In file included from gpttype_adapter.cpp:20:
In file included from ./otherarch/llama_v2.cpp:9:
./otherarch/llama_v2.h:171:33: warning: 'legacy_llama_v2_tokenize' has C-linkage specified, but returns user-defined type 'std::vector<llama_v2_token>' (aka 'vector<int>') which is incompatible with C [-Wreturn-type-c-linkage]
    std::vector<llama_v2_token> legacy_llama_v2_tokenize(struct llama_v2_context * ctx, const std::string & text, bool add_bos);
                                ^
In file included from gpttype_adapter.cpp:22:
./src/llama.cpp:16272:73: warning: format specifies type 'long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
    LLAMA_LOG_INFO("%s: loaded %ld tensors from lora file\n", __func__, adapter.ab_map.size()*2);
                               ~~~                                      ^~~~~~~~~~~~~~~~~~~~~~~
                               %zu
src/llama-impl.h:24:71: note: expanded from macro 'LLAMA_LOG_INFO'
#define LLAMA_LOG_INFO(...)  llama_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
                                                                      ^~~~~~~~~~~
In file included from gpttype_adapter.cpp:22:
./src/llama.cpp:18456:70: warning: format specifies type 'unsigned long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
            throw std::runtime_error(format("out of range [0, %lu)", ctx->output_ids.size()));
                                                              ~~~    ^~~~~~~~~~~~~~~~~~~~~~
                                                              %zu
./src/llama.cpp:18501:70: warning: format specifies type 'unsigned long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
            throw std::runtime_error(format("out of range [0, %lu)", ctx->output_ids.size()));
                                                              ~~~    ^~~~~~~~~~~~~~~~~~~~~~
                                                              %zu
In file included from gpttype_adapter.cpp:25:
./otherarch/gptj_v2.cpp:298:52: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                            __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                   ^~~~~~~~~~~~~
./otherarch/gptj_v2.cpp:298:67: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                            __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                                  ^~~~~~~~~~~~~
In file included from gpttype_adapter.cpp:26:
./otherarch/gptj_v3.cpp:308:52: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                            __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                   ^~~~~~~~~~~~~
./otherarch/gptj_v3.cpp:308:67: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                            __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                                  ^~~~~~~~~~~~~
In file included from gpttype_adapter.cpp:28:
./otherarch/gpt2_v2.cpp:291:48: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                        __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                               ^~~~~~~~~~~~~
./otherarch/gpt2_v2.cpp:291:63: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                        __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                              ^~~~~~~~~~~~~
In file included from gpttype_adapter.cpp:30:
./otherarch/rwkv_v2.cpp:370:103: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
    RWKV_V2_ASSERT_NULL(emb->ne[0] == model->n_embed, "Unexpected dimension of embedding matrix %ld", emb->ne[0]);
                                                                                                ~~~   ^~~~~~~~~~
                                                                                                %lld
./otherarch/rwkv_v2.cpp:39:29: note: expanded from macro 'RWKV_V2_ASSERT_NULL'
            fprintf(stderr, __VA_ARGS__); \
                            ^~~~~~~~~~~
./otherarch/rwkv_v2.cpp:371:103: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
    RWKV_V2_ASSERT_NULL(emb->ne[1] == model->n_vocab, "Unexpected dimension of embedding matrix %ld", emb->ne[1]);
                                                                                                ~~~   ^~~~~~~~~~
                                                                                                %lld
./otherarch/rwkv_v2.cpp:39:29: note: expanded from macro 'RWKV_V2_ASSERT_NULL'
            fprintf(stderr, __VA_ARGS__); \
                            ^~~~~~~~~~~
gpttype_adapter.cpp:1541:77: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
            printf("\nRWKV old Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
                                                  ~~~                       ^~~~~~~~~~~
                                                  %u
gpttype_adapter.cpp:1541:90: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
            printf("\nRWKV old Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
                                                                    ~~~                  ^~~~~~~~~~~
                                                                    %u
gpttype_adapter.cpp:1567:73: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
            printf("\nRWKV Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
                                              ~~~                       ^~~~~~~~~~~
                                              %u
gpttype_adapter.cpp:1567:86: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
            printf("\nRWKV Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
                                                                ~~~                  ^~~~~~~~~~~
                                                                %u
16 warnings generated.
c++ -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -fmath-errno -DNDEBUG -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -pthread -c ggml/src/ggml-blas.cpp -o ggml-blas.o
c++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
c++ -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -fmath-errno -DNDEBUG -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -pthread ggml_v4_openblas.o ggml_v3_openblas.o ggml_v2_openblas.o ggml_v1.o expose.o gpttype_adapter_openblas.o sdcpp_default.o whispercpp_default.o llavaclip_default.o llava.o ggml-backend_default.o ggml-blas.o ggml-alloc.o ggml-aarch64.o ggml-quants.o unicode.o unicode-data.o sgemm.o common.o sampling.o grammar-parser.o  -lopenblas -shared -o koboldcpp_openblas.so -fstack-protector-strong -L/usr/local/lib 
cc  -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -Ofast -fno-finite-math-only -fmath-errno -DNDEBUG -std=c11   -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-deprecated -Wno-deprecated-declarations -pthread  -c ggml/src/ggml.c -o ggml_v4_noavx2.o
cc: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
cc  -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -Ofast -fno-finite-math-only -fmath-errno -DNDEBUG -std=c11   -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-deprecated -Wno-deprecated-declarations -pthread  -c otherarch/ggml_v3.c -o ggml_v3_noavx2.o
cc: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
cc  -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -Ofast -fno-finite-math-only -fmath-errno -DNDEBUG -std=c11   -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-deprecated -Wno-deprecated-declarations -pthread  -c otherarch/ggml_v2.c -o ggml_v2_noavx2.o
cc: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
cc  -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -fmath-errno -DNDEBUG -std=c11   -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-deprecated -Wno-deprecated-declarations -pthread  -c ggml/src/ggml-quants.c -o ggml-quants_noavx2.o
cc: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
c++ -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -fmath-errno -DNDEBUG -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -pthread  -c ggml/src/llamafile/sgemm.cpp -o sgemm_noavx2.o
c++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
c++ -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -fmath-errno -DNDEBUG -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -pthread  ggml_v4_noavx2.o ggml_v3_noavx2.o ggml_v2_noavx2.o ggml_v1_failsafe.o expose.o gpttype_adapter_failsafe.o sdcpp_default.o whispercpp_default.o llavaclip_default.o llava.o ggml-backend_default.o ggml-alloc.o ggml-aarch64.o ggml-quants_noavx2.o unicode.o unicode-data.o sgemm_noavx2.o common.o sampling.o grammar-parser.o -shared -o koboldcpp_noavx2.so -fstack-protector-strong -L/usr/local/lib 
cc  -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -Ofast -fno-finite-math-only -fmath-errno -DNDEBUG -std=c11   -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-deprecated -Wno-deprecated-declarations -pthread  -DGGML_USE_VULKAN -DSD_USE_VULKAN -c ggml/src/ggml.c -o ggml_v4_vulkan.o
cc: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
c++ -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -fmath-errno -DNDEBUG -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -pthread -DGGML_USE_VULKAN -DSD_USE_VULKAN -c gpttype_adapter.cpp -o gpttype_adapter_vulkan.o
c++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
In file included from gpttype_adapter.cpp:20:
In file included from ./otherarch/llama_v2.cpp:9:
./otherarch/llama_v2.h:171:33: warning: 'legacy_llama_v2_tokenize' has C-linkage specified, but returns user-defined type 'std::vector<llama_v2_token>' (aka 'vector<int>') which is incompatible with C [-Wreturn-type-c-linkage]
    std::vector<llama_v2_token> legacy_llama_v2_tokenize(struct llama_v2_context * ctx, const std::string & text, bool add_bos);
                                ^
In file included from gpttype_adapter.cpp:22:
./src/llama.cpp:16272:73: warning: format specifies type 'long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
    LLAMA_LOG_INFO("%s: loaded %ld tensors from lora file\n", __func__, adapter.ab_map.size()*2);
                               ~~~                                      ^~~~~~~~~~~~~~~~~~~~~~~
                               %zu
src/llama-impl.h:24:71: note: expanded from macro 'LLAMA_LOG_INFO'
#define LLAMA_LOG_INFO(...)  llama_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
                                                                      ^~~~~~~~~~~
In file included from gpttype_adapter.cpp:22:
./src/llama.cpp:18456:70: warning: format specifies type 'unsigned long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
            throw std::runtime_error(format("out of range [0, %lu)", ctx->output_ids.size()));
                                                              ~~~    ^~~~~~~~~~~~~~~~~~~~~~
                                                              %zu
./src/llama.cpp:18501:70: warning: format specifies type 'unsigned long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
            throw std::runtime_error(format("out of range [0, %lu)", ctx->output_ids.size()));
                                                              ~~~    ^~~~~~~~~~~~~~~~~~~~~~
                                                              %zu
In file included from gpttype_adapter.cpp:25:
./otherarch/gptj_v2.cpp:298:52: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                            __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                   ^~~~~~~~~~~~~
./otherarch/gptj_v2.cpp:298:67: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                            __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                                  ^~~~~~~~~~~~~
In file included from gpttype_adapter.cpp:26:
./otherarch/gptj_v3.cpp:308:52: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                            __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                   ^~~~~~~~~~~~~
./otherarch/gptj_v3.cpp:308:67: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                            __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                                  ^~~~~~~~~~~~~
In file included from gpttype_adapter.cpp:28:
./otherarch/gpt2_v2.cpp:291:48: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                        __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                               ^~~~~~~~~~~~~
./otherarch/gpt2_v2.cpp:291:63: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                        __func__, name.data(), tensor->ne[0], tensor->ne[1], ne[0], ne[1]);
                                                              ^~~~~~~~~~~~~
In file included from gpttype_adapter.cpp:30:
./otherarch/rwkv_v2.cpp:370:103: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
    RWKV_V2_ASSERT_NULL(emb->ne[0] == model->n_embed, "Unexpected dimension of embedding matrix %ld", emb->ne[0]);
                                                                                                ~~~   ^~~~~~~~~~
                                                                                                %lld
./otherarch/rwkv_v2.cpp:39:29: note: expanded from macro 'RWKV_V2_ASSERT_NULL'
            fprintf(stderr, __VA_ARGS__); \
                            ^~~~~~~~~~~
./otherarch/rwkv_v2.cpp:371:103: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
    RWKV_V2_ASSERT_NULL(emb->ne[1] == model->n_vocab, "Unexpected dimension of embedding matrix %ld", emb->ne[1]);
                                                                                                ~~~   ^~~~~~~~~~
                                                                                                %lld
./otherarch/rwkv_v2.cpp:39:29: note: expanded from macro 'RWKV_V2_ASSERT_NULL'
            fprintf(stderr, __VA_ARGS__); \
                            ^~~~~~~~~~~
gpttype_adapter.cpp:1541:77: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
            printf("\nRWKV old Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
                                                  ~~~                       ^~~~~~~~~~~
                                                  %u
gpttype_adapter.cpp:1541:90: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
            printf("\nRWKV old Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
                                                                    ~~~                  ^~~~~~~~~~~
                                                                    %u
gpttype_adapter.cpp:1567:73: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
            printf("\nRWKV Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
                                              ~~~                       ^~~~~~~~~~~
                                              %u
gpttype_adapter.cpp:1567:86: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
            printf("\nRWKV Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
                                                                ~~~                  ^~~~~~~~~~~
                                                                %u
16 warnings generated.
c++ -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -fmath-errno -DNDEBUG -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -pthread -s -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -pthread -DGGML_USE_VULKAN -DSD_USE_VULKAN -c ggml/src/ggml-vulkan.cpp -o ggml-vulkan.o
c++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
ggml/src/ggml-vulkan.cpp:2585:5: error: no matching function for call to 'vkCmdCopyBuffer'
    vkCmdCopyBuffer(subctx->s->buffer, staging->buffer, dst->buffer, 1, &buf_copy);
    ^~~~~~~~~~~~~~~
./include/vulkan/vulkan/vulkan_core.h:4598:28: note: candidate function not viable: no known conversion from 'vk::Buffer' to 'VkBuffer' (aka 'unsigned long long') for 2nd argument
VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer(
                           ^
ggml/src/ggml-vulkan.cpp:2663:5: error: no matching function for call to 'vkCmdCopyBuffer'
    vkCmdCopyBuffer(subctx->s->buffer, staging_buffer->buffer, dst->buffer, 1, &buf_copy);
    ^~~~~~~~~~~~~~~
./include/vulkan/vulkan/vulkan_core.h:4598:28: note: candidate function not viable: no known conversion from 'vk::Buffer' to 'VkBuffer' (aka 'unsigned long long') for 2nd argument
VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer(
                           ^
ggml/src/ggml-vulkan.cpp:2798:5: error: no matching function for call to 'vkCmdCopyBuffer'
    vkCmdCopyBuffer(ctx->s->buffer, src->buffer, dst->buffer, 1, &bc);
    ^~~~~~~~~~~~~~~
./include/vulkan/vulkan/vulkan_core.h:4598:28: note: candidate function not viable: no known conversion from 'vk::Buffer' to 'VkBuffer' (aka 'unsigned long long') for 2nd argument
VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer(
                           ^
ggml/src/ggml-vulkan.cpp:6762:61: warning: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
        snprintf(name, sizeof(name), "%s%ld", GGML_VK_NAME, i);
                                        ~~~                 ^
                                        %zu
1 warning and 3 errors generated.
gmake: *** [Makefile:517: ggml-vulkan.o] Error 1
*** Error code 1

Stop.
make: stopped in /usr/ports/misc/koboldcpp