[package - 133i386-default][misc/koboldcpp] Failed for koboldcpp-1.74 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Tue, 03 Sep 2024 16:25:24 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/beefy15/data/133i386-default/94b089c7ad30/logs/koboldcpp-1.74.log
Build URL:      https://pkg-status.freebsd.org/beefy15/build.html?mastername=133i386-default&build=94b089c7ad30
Log:

=>> Building misc/koboldcpp
build started at Tue Sep  3 16:19:22 UTC 2024
port directory: /usr/ports/misc/koboldcpp
package name: koboldcpp-1.74
building for: FreeBSD 133i386-default-job-01 13.3-RELEASE-p5 FreeBSD 13.3-RELEASE-p5 i386
maintained by: yuri@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root  wheel  1403 Sep  3 01:01 /usr/ports/misc/koboldcpp/Makefile
Ports top last git commit: 94b089c7ad3
Ports top unclean checkout: no
Port dir last git commit: 19d61ead82a
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.2
Host OSVERSION: 1500023
Jail OSVERSION: 1303001
Job Id: 01

---Begin Environment---
SHELL=/bin/csh
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
OSVERSION=1303001
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=13.3-RELEASE-p5
LOCALBASE=/usr/local
UNAME_v=FreeBSD 13.3-RELEASE-p5
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.2
MASTERMNT=/usr/local/poudriere/data/.m/133i386-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/133i386-default/01/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=133i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/133i386-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.2
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=freebsd13  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=13.3 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=freebsd13  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
---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.74 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.21.3.pkg
[133i386-default-job-01] Installing pkg-1.21.3...
[133i386-default-job-01] Extracting pkg-1.21.3: .......... done
===>   koboldcpp-1.74 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of koboldcpp-1.74
===========================================================================
=======================<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.74_GH0.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://codeload.github.com/LostRuins/koboldcpp/tar.gz/v1.74?dummy=/LostRuins-koboldcpp-v1.74_GH0.tar.gz
fetch: https://codeload.github.com/LostRuins/koboldcpp/tar.gz/v1.74?dummy=/LostRuins-koboldcpp-v1.74_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/LostRuins/koboldcpp/tar.gz/v1.74?dummy=/LostRuins-koboldcpp-v1.74_GH0.tar.gz: size of remote file is not known
LostRuins-koboldcpp-v1.74_GH0.tar.gz                    27 MB 8552 kBps    03s
===> Fetching all distfiles required by koboldcpp-1.74 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.74 for building
=> SHA256 Checksum OK for LostRuins-koboldcpp-v1.74_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.74 for building
===>  Extracting for koboldcpp-1.74
=> SHA256 Checksum OK for LostRuins-koboldcpp-v1.74_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.74
===>  Applying FreeBSD patches for koboldcpp-1.74 from /usr/ports/misc/koboldcpp/files
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   koboldcpp-1.74 depends on package: gmake>=4.4.1 - not found
===>   Installing existing package /packages/All/gmake-4.4.1.pkg
[133i386-default-job-01] Installing gmake-4.4.1...
[133i386-default-job-01] `-- Installing gettext-runtime-0.22.5...
[133i386-default-job-01] |   `-- Installing indexinfo-0.3.1...
[133i386-default-job-01] |   `-- Extracting indexinfo-0.3.1: .... done
[133i386-default-job-01] `-- Extracting gettext-runtime-0.22.5: .......... done
[133i386-default-job-01] Extracting gmake-4.4.1: .......... done
===>   koboldcpp-1.74 depends on package: gmake>=4.4.1 - found
===>   Returning to build of koboldcpp-1.74
===>   koboldcpp-1.74 depends on file: /usr/local/bin/python3.11 - not found
===>   Installing existing package /packages/All/python311-3.11.9_1.pkg
[133i386-default-job-01] Installing python311-3.11.9_1...
[133i386-default-job-01] `-- Installing libffi-3.4.6...
[133i386-default-job-01] `-- Extracting libffi-3.4.6: .......... done
[133i386-default-job-01] `-- Installing mpdecimal-4.0.0...
<snip>
      |                                                                 %u
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 -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -pthread -c ggml/src/ggml-blas.cpp -o ggml-blas.o
c++: 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 -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -pthread  -c ggml/src/ggml.c -o ggml_v4_noavx2.o
cc: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
ggml/src/ggml.c:19371:11: warning: call to undeclared function 'pthread_setaffinity_np'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 19371 |     err = pthread_setaffinity_np(pthread_self(), sizeof(cpuset), &cpuset);
       |           ^
1 warning generated.
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 -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -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 -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -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 -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -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 -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -pthread  -c ggml/src/llamafile/sgemm.cpp -o sgemm_noavx2.o
c++: 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 -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -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]
ggml/src/ggml.c:19371:11: warning: call to undeclared function 'pthread_setaffinity_np'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 19371 |     err = pthread_setaffinity_np(pthread_self(), sizeof(cpuset), &cpuset);
       |           ^
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 -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -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]
  171 |     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:17368:73: warning: format specifies type 'long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
 17368 |     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'
   24 | #define LLAMA_LOG_INFO(...)  llama_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
      |                                                                       ^~~~~~~~~~~
In file included from gpttype_adapter.cpp:22:
./src/llama.cpp:19629:70: warning: format specifies type 'unsigned long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
 19629 |             throw std::runtime_error(format("out of range [0, %lu)", ctx->output_ids.size()));
       |                                                               ~~~    ^~~~~~~~~~~~~~~~~~~~~~
       |                                                               %zu
./src/llama.cpp:19678:70: warning: format specifies type 'unsigned long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
 19678 |             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]
  297 |                     fprintf(stderr, "%s: tensor '%s' has wrong shape in model file: got [%ld, %ld], expected [%d, %d]\n",
      |                                                                                          ~~~
      |                                                                                          %lld
  298 |                             __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]
  297 |                     fprintf(stderr, "%s: tensor '%s' has wrong shape in model file: got [%ld, %ld], expected [%d, %d]\n",
      |                                                                                               ~~~
      |                                                                                               %lld
  298 |                             __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]
  307 |                     fprintf(stderr, "%s: tensor '%s' has wrong shape in model file: got [%ld, %ld], expected [%d, %d]\n",
      |                                                                                          ~~~
      |                                                                                          %lld
  308 |                             __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]
  307 |                     fprintf(stderr, "%s: tensor '%s' has wrong shape in model file: got [%ld, %ld], expected [%d, %d]\n",
      |                                                                                               ~~~
      |                                                                                               %lld
  308 |                             __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]
  290 |                 fprintf(stderr, "%s: tensor '%s' has wrong shape in model file: got [%ld, %ld], expected [%d, %d]\n",
      |                                                                                      ~~~
      |                                                                                      %lld
  291 |                         __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]
  290 |                 fprintf(stderr, "%s: tensor '%s' has wrong shape in model file: got [%ld, %ld], expected [%d, %d]\n",
      |                                                                                           ~~~
      |                                                                                           %lld
  291 |                         __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]
  370 |     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'
   39 |             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]
  371 |     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'
   39 |             fprintf(stderr, __VA_ARGS__); \
      |                             ^~~~~~~~~~~
gpttype_adapter.cpp:1594:77: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
 1594 |             printf("\nRWKV old Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
      |                                                   ~~~                       ^~~~~~~~~~~
      |                                                   %u
gpttype_adapter.cpp:1594:90: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
 1594 |             printf("\nRWKV old Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
      |                                                                     ~~~                  ^~~~~~~~~~~
      |                                                                     %u
gpttype_adapter.cpp:1620:73: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
 1620 |             printf("\nRWKV Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
      |                                               ~~~                       ^~~~~~~~~~~
      |                                               %u
gpttype_adapter.cpp:1620:86: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
 1620 |             printf("\nRWKV Init: State Buffer:%lu, Logit Buffer:%lu\n", statebufsiz, logitbufsiz);
      |                                                                 ~~~                  ^~~~~~~~~~~
      |                                                                 %u
1 warning 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 -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -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]
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 -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -DNDEBUG -s -pthread -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -pthread -DGGML_USE_VULKAN -DSD_USE_VULKAN -c otherarch/sdcpp/sdtype_adapter.cpp -o sdcpp_vulkan.o
c++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
In file included from otherarch/sdcpp/sdtype_adapter.cpp:15:
In file included from otherarch/sdcpp/stable-diffusion.cpp:1:
otherarch/sdcpp/ggml_extend.hpp:88:43: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'int64_t' (aka 'long long') [-Wformat]
   88 |     printf("shape(%zu, %zu, %zu, %zu)\n", tensor->ne[0], tensor->ne[1], tensor->ne[2], tensor->ne[3]);
      |                   ~~~                     ^~~~~~~~~~~~~
      |                   %lld
otherarch/sdcpp/ggml_extend.hpp:88:58: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'int64_t' (aka 'long long') [-Wformat]
   88 |     printf("shape(%zu, %zu, %zu, %zu)\n", tensor->ne[0], tensor->ne[1], tensor->ne[2], tensor->ne[3]);
      |                        ~~~                               ^~~~~~~~~~~~~
      |                        %lld
otherarch/sdcpp/ggml_extend.hpp:88:73: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'int64_t' (aka 'long long') [-Wformat]
   88 |     printf("shape(%zu, %zu, %zu, %zu)\n", tensor->ne[0], tensor->ne[1], tensor->ne[2], tensor->ne[3]);
      |                             ~~~                                         ^~~~~~~~~~~~~
      |                             %lld
otherarch/sdcpp/ggml_extend.hpp:88:88: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'int64_t' (aka 'long long') [-Wformat]
   88 |     printf("shape(%zu, %zu, %zu, %zu)\n", tensor->ne[0], tensor->ne[1], tensor->ne[2], tensor->ne[3]);
      |                                  ~~~                                                   ^~~~~~~~~~~~~
      |                                  %lld
ggml/src/ggml-vulkan.cpp:2626:5: error: no matching function for call to 'vkCmdCopyBuffer'
 2626 |     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
 4598 | VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer(
      |                            ^
 4599 |     VkCommandBuffer                             commandBuffer,
 4600 |     VkBuffer                                    srcBuffer,
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ggml/src/ggml-vulkan.cpp:2701:5: error: no matching function for call to 'vkCmdCopyBuffer'
 2701 |     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
 4598 | VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer(
      |                            ^
 4599 |     VkCommandBuffer                             commandBuffer,
 4600 |     VkBuffer                                    srcBuffer,
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ggml/src/ggml-vulkan.cpp:2833:5: error: no matching function for call to 'vkCmdCopyBuffer'
 2833 |     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
 4598 | VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer(
      |                            ^
 4599 |     VkCommandBuffer                             commandBuffer,
 4600 |     VkBuffer                                    srcBuffer,
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ggml/src/ggml-vulkan.cpp:6768:61: warning: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
 6768 |         snprintf(name, sizeof(name), "%s%ld", GGML_VK_NAME, i);
      |                                         ~~~                 ^
      |                                         %zu
In file included from otherarch/sdcpp/sdtype_adapter.cpp:15:
In file included from otherarch/sdcpp/stable-diffusion.cpp:14:
otherarch/sdcpp/tae.hpp:194:17: warning: field 'decode_only' is uninitialized when used here [-Wuninitialized]
  194 |           taesd(decode_only),
      |                 ^
1 warning and 3 errors generated.
gmake: *** [Makefile:530: ggml-vulkan.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from otherarch/sdcpp/sdtype_adapter.cpp:19:
In file included from ./otherarch/sdcpp/thirdparty/zip.c:39:
./otherarch/sdcpp/thirdparty/miniz.h:4988:9: warning: Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files. [-W#pragma-messages]
 4988 | #pragma message(                                                               \
      |         ^
otherarch/sdcpp/sdtype_adapter.cpp:267:73: warning: result of comparison of constant 244 with expression of type 'char' is always true [-Wtautological-constant-out-of-range-compare]
  267 |         if (static_cast<unsigned char>(ch) <= 0x7F || (ch >= 0xC2 && ch <= 0xF4)) {
      |                                                                      ~~ ^  ~~~~
otherarch/sdcpp/sdtype_adapter.cpp:267:59: warning: result of comparison of constant 194 with expression of type 'char' is always false [-Wtautological-constant-out-of-range-compare]
  267 |         if (static_cast<unsigned char>(ch) <= 0x7F || (ch >= 0xC2 && ch <= 0xF4)) {
      |                                                        ~~ ^  ~~~~
8 warnings generated.
16 warnings generated.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

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