-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
When trying to get the bindings examples to work I get this (included the whole build process to make sure I didn't do anything wrong)
[anon@t480 work]$ git clone --recursive https://github.com/foldl/chatllm.cpp.git && cd chatllm.cpp
Cloning into 'chatllm.cpp'...
remote: Enumerating objects: 6964, done.
remote: Counting objects: 100% (665/665), done.
remote: Compressing objects: 100% (381/381), done.
remote: Total 6964 (delta 317), reused 314 (delta 284), pack-reused 6299 (from 3)
Receiving objects: 100% (6964/6964), 7.51 MiB | 8.62 MiB/s, done.
Resolving deltas: 100% (5273/5273), done.
[anon@t480 chatllm.cpp]$ cmake -B build
-- The CXX compiler identification is GNU 15.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- GGML_SYSTEM_ARCH: x86
-- Including CPU backend
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- x86 detected
-- Adding CPU backend variant ggml-cpu: -march=native
-- ggml version: 0.0.649
-- ggml commit: f6c28eb
-- Configuring done (1.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/anon/work/chatllm.cpp/build
[anon@t480 chatllm.cpp]$ cmake --build build --target libchatllm
...
[100%] Linking CXX shared library /home/anon/work/chatllm.cpp/bindings/libchatllm.so
/usr/bin/ld: CMakeFiles/libchatllm.dir/src/vectorstore.cpp.o: in function `utils::tmpname[abi:cxx11]()':
/home/anon/work/chatllm.cpp/src/vectorstore.cpp:598:(.text+0x1fd4): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
[100%] Built target libchatllm
[anon@t480 chatllm.cpp]$ cd bindings/
[anon@t480 bindings]$ nim c -d:Release -d:ssl main.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: used config file '/etc/nim/config.nims' [Conf]
..............................................................................................................................................................
/home/anon/work/chatllm.cpp/bindings/libchatllm.nim(111, 6) Hint: 'chatllm_multimedia_msg_append' is declared but not used [XDeclaredButNotUsed]
/home/anon/work/chatllm.cpp/bindings/libchatllm.nim(150, 6) Hint: 'chatllm_user_input_multimedia_msg' is declared but not used [XDeclaredButNotUsed]
/home/anon/work/chatllm.cpp/bindings/libchatllm.nim(321, 6) Hint: 'chatllm_async_user_input_multimedia_msg' is declared but not used [XDeclaredButNotUsed]
/home/anon/work/chatllm.cpp/bindings/libchatllm.nim(99, 6) Hint: 'chatllm_multimedia_msg_prepare' is declared but not used [XDeclaredButNotUsed]
....
CC: ../../../../../usr/lib/nim/system/exceptions.nim
CC: ../../../../../usr/lib/nim/std/private/since.nim
CC: ../../../../../usr/lib/nim/system/ctypes.nim
CC: ../../../../../usr/lib/nim/std/sysatomics.nim
CC: ../../../../../usr/lib/nim/system/ansi_c.nim
CC: ../../../../../usr/lib/nim/system/memory.nim
CC: ../../../../../usr/lib/nim/std/private/syslocks.nim
CC: ../../../../../usr/lib/nim/std/private/threadtypes.nim
CC: ../../../../../usr/lib/nim/std/private/digitsutils.nim
CC: ../../../../../usr/lib/nim/std/private/miscdollars.nim
CC: ../../../../../usr/lib/nim/std/assertions.nim
CC: ../../../../../usr/lib/nim/system/iterators.nim
CC: ../../../../../usr/lib/nim/system/coro_detection.nim
CC: ../../../../../usr/lib/nim/std/private/dragonbox.nim
CC: ../../../../../usr/lib/nim/std/private/schubfach.nim
CC: ../../../../../usr/lib/nim/std/formatfloat.nim
CC: ../../../../../usr/lib/nim/std/objectdollar.nim
CC: ../../../../../usr/lib/nim/system/dollars.nim
CC: ../../../../../usr/lib/nim/std/typedthreads.nim
CC: ../../../../../usr/lib/nim/system/stacktraces.nim
CC: ../../../../../usr/lib/nim/std/private/bitops_utils.nim
CC: ../../../../../usr/lib/nim/system/countbits_impl.nim
CC: ../../../../../usr/lib/nim/system/repr_v2.nim
CC: ../../../../../usr/lib/nim/std/widestrs.nim
CC: ../../../../../usr/lib/nim/std/syncio.nim
CC: ../../../../../usr/lib/nim/system.nim
CC: ../../../../../usr/lib/nim/pure/parseutils.nim
CC: ../../../../../usr/lib/nim/core/macros.nim
CC: ../../../../../usr/lib/nim/pure/bitops.nim
CC: ../../../../../usr/lib/nim/pure/fenv.nim
CC: ../../../../../usr/lib/nim/pure/math.nim
CC: ../../../../../usr/lib/nim/pure/algorithm.nim
CC: ../../../../../usr/lib/nim/pure/typetraits.nim
CC: ../../../../../usr/lib/nim/std/enumutils.nim
CC: ../../../../../usr/lib/nim/std/strbasics.nim
CC: ../../../../../usr/lib/nim/pure/unicode.nim
CC: ../../../../../usr/lib/nim/std/private/jsutils.nim
CC: ../../../../../usr/lib/nim/std/private/strimpl.nim
CC: ../../../../../usr/lib/nim/pure/strutils.nim
CC: ../../../../../usr/lib/nim/pure/strformat.nim
CC: ../../../../../usr/lib/nim/std/private/osseps.nim
CC: ../../../../../usr/lib/nim/pure/pathnorm.nim
CC: ../../../../../usr/lib/nim/std/oserrors.nim
CC: ../../../../../usr/lib/nim/posix/posix.nim
CC: ../../../../../usr/lib/nim/std/private/oscommon.nim
CC: ../../../../../usr/lib/nim/std/private/ospaths2.nim
CC: ../../../../../usr/lib/nim/std/private/ossymlinks.nim
CC: ../../../../../usr/lib/nim/pure/options.nim
CC: ../../../../../usr/lib/nim/pure/times.nim
CC: ../../../../../usr/lib/nim/std/private/osfiles.nim
CC: ../../../../../usr/lib/nim/std/private/osdirs.nim
CC: ../../../../../usr/lib/nim/std/envvars.nim
CC: ../../../../../usr/lib/nim/std/private/osappdirs.nim
CC: ../../../../../usr/lib/nim/std/cmdline.nim
CC: ../../../../../usr/lib/nim/pure/os.nim
CC: ../../../../../usr/lib/nim/pure/nativesockets.nim
CC: ../../../../../usr/lib/nim/pure/hashes.nim
CC: ../../../../../usr/lib/nim/std/outparams.nim
CC: ../../../../../usr/lib/nim/pure/collections/sets.nim
CC: ../../../../../usr/lib/nim/std/monotimes.nim
CC: ../../../../../usr/lib/nim/pure/ssl_config.nim
CC: ../../../../../usr/lib/nim/pure/dynlib.nim
CC: ../../../../../usr/lib/nim/wrappers/openssl.nim
CC: ../../../../../usr/lib/nim/pure/ssl_certs.nim
CC: ../../../../../usr/lib/nim/pure/net.nim
CC: ../../../../../usr/lib/nim/pure/base64.nim
CC: ../../../../../usr/lib/nim/std/private/decode_helpers.nim
CC: ../../../../../usr/lib/nim/pure/uri.nim
CC: ../../../../../usr/lib/nim/pure/collections/tables.nim
CC: ../../../../../usr/lib/nim/pure/mimetypes.nim
CC: ../../../../../usr/lib/nim/std/sysrand.nim
CC: ../../../../../usr/lib/nim/core/locks.nim
CC: ../../../../../usr/lib/nim/pure/random.nim
CC: ../../../../../usr/lib/nim/pure/httpcore.nim
CC: ../../../../../usr/lib/nim/pure/streams.nim
CC: ../../../../../usr/lib/nim/pure/collections/heapqueue.nim
CC: ../../../../../usr/lib/nim/pure/collections/deques.nim
CC: ../../../../../usr/lib/nim/pure/cstrutils.nim
CC: ../../../../../usr/lib/nim/pure/asyncfutures.nim
CC: ../../../../../usr/lib/nim/pure/asyncstreams.nim
CC: ../../../../../usr/lib/nim/posix/epoll.nim
CC: ../../../../../usr/lib/nim/pure/selectors.nim
CC: ../../../../../usr/lib/nim/pure/asyncmacro.nim
CC: ../../../../../usr/lib/nim/pure/asyncdispatch.nim
CC: ../../../../../usr/lib/nim/pure/asyncnet.nim
CC: ../../../../../usr/lib/nim/pure/asyncfile.nim
CC: ../../../../../usr/lib/nim/pure/httpclient.nim
CC: ../../../../../usr/lib/nim/pure/lexbase.nim
CC: ../../../../../usr/lib/nim/pure/parsejson.nim
CC: ../../../../../usr/lib/nim/pure/json.nim
CC: libchatllm.nim
CC: ../../../../../usr/lib/nim/packages/docutils/highlite.nim
CC: ../../../../../usr/lib/nim/pure/colors.nim
CC: ../../../../../usr/lib/nim/posix/termios.nim
CC: ../../../../../usr/lib/nim/pure/terminal.nim
CC: main.nim
Hint: [Link]
Hint: mm: orc; threads: on; opt: speed; options: -d:release
80910 lines; 6.977s; 167.98MiB peakmem; proj: /home/anon/work/chatllm.cpp/bindings/main.nim; out: /home/anon/work/chatllm.cpp/bindings/main [SuccessX]
[anon@t480 bindings]$ ./main
could not load: libchatllm.so
(compile with -d:nimDebugDlOpen for more information)
Metadata
Metadata
Assignees
Labels
No labels