-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Description
Git commit
I don't compile only one example, but all, yes.
¿What is the command line gcc or g++ gcc-14 or g++14?
Operating systems
Linux
GGML backends
CUDA
Problem description & steps to reproduce
sudo g++ examples/tts/tts.cpp -o tts
examples/tts/tts.cpp:3:10: fatal error: arg.h: No existe el archivo o el directorio
ok, i add more:
sudo g++ examples/tts/tts.cpp -o tts common/.cpp ggml/src/.* -Icommon -Lcommon -Iinclude -Iggml/include -I/home/raul/Desktop/Librerias/uWebSockets/src -I/home/raul/Desktop/Librerias/uWebSockets/uSockets/src -I/home/raul/Desktop/Librerias/nlohmann/json/include -L/home/raul/Desktop/Librerias/uWebSockets/uSockets -lz -Lbuild/common/libcommon -lpthread -l:socket.o -l:bsd.o -l:context.o -l:epoll_kqueue.o -l:loop.o -I. -I./examples -O3 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native
and say errors:
ggml/src/ggml-alloc.c:384:27: error: invalid conversion from ‘void*’ to ‘ggml_backend_buffer_type**’ [-fpermissive]
384 | galloc->bufts = calloc(n_bufs, sizeof(ggml_backend_buffer_type_t));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
ggml/src/ggml-alloc.c:387:29: error: invalid conversion from ‘void*’ to ‘ggml_backend_buffer**’ [-fpermissive]
387 | galloc->buffers = calloc(n_bufs, sizeof(ggml_backend_buffer_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
First Bad Commit
No response
Compile command
**sudo g++ examples/tts/tts.cpp -o tts**
and
**sudo g++ examples/tts/tts.cpp -o tts common/*.cpp ggml/src/*.* -Icommon -Lcommon -Iinclude -Iggml/include -I/home/raul/Desktop/Librerias/uWebSockets/src -I/home/raul/Desktop/Librerias/uWebSockets/uSockets/src -I/home/raul/Desktop/Librerias/nlohmann/json/include -L/home/raul/Desktop/Librerias/uWebSockets/uSockets -lz -Lbuild/common/libcommon -lpthread -l:socket.o -l:bsd.o -l:context.o -l:epoll_kqueue.o -l:loop.o -I. -I./examples -O3 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native**
Relevant log output
ggml/src/ggml-alloc.c:384:27: error: invalid conversion from ‘void*’ to ‘ggml_backend_buffer_type**’ [-fpermissive]
384 | galloc->bufts = calloc(n_bufs, sizeof(ggml_backend_buffer_type_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
ggml/src/ggml-alloc.c:387:29: error: invalid conversion from ‘void*’ to ‘ggml_backend_buffer**’ [-fpermissive]
387 | galloc->buffers = calloc(n_bufs, sizeof(ggml_backend_buffer_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
ggml/src/ggml-alloc.c:390:33: error: invalid conversion from ‘void*’ to ‘ggml_dyn_tallocr**’ [-fpermissive]
390 | galloc->buf_tallocs = calloc(n_bufs, sizeof(struct ggml_dyn_tallocr *));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
ggml/src/ggml-alloc.c: In function ‘bool ggml_gallocr_reserve_n(ggml_gallocr_t, ggml_cgraph*, const int*, const int*)’:
ggml/src/ggml-alloc.c:685:37: error: invalid conversion from ‘void*’ to ‘hash_node*’ [-fpermissive]
685 | galloc->hash_values = malloc(sizeof(struct hash_node) * galloc->hash_set.size);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
ggml/src/ggml-alloc.c:700:37: error: invalid conversion from ‘void*’ to ‘node_alloc*’ [-fpermissive]
700 | galloc->node_allocs = calloc(graph->n_nodes, sizeof(struct node_alloc));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
ggml/src/ggml-alloc.c:733:37: error: invalid conversion from ‘void*’ to ‘leaf_alloc*’ [-fpermissive]
733 | galloc->leaf_allocs = calloc(graph->n_leafs, sizeof(galloc->leaf_allocs[0]));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
ggml/src/ggml-alloc.c: In function ‘bool alloc_tensor_range(ggml_context*, ggml_tensor*, ggml_tensor*, ggml_backend_buffer_type_t, size_t, ggml_backend_buffer***, size_t*)’:
ggml/src/ggml-alloc.c:955:23: error: invalid conversion from ‘void*’ to ‘ggml_backend_buffer**’ [-fpermissive]
955 | *buffers = realloc(*buffers, sizeof(ggml_backend_buffer_t) * (*n_buffers + 1));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
...