Guest User

Untitled

a guest
Nov 4th, 2023
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 145.65 KB | None | 0 0
  1. Submodule path 'ggml': checked out '9e232f0234073358e7031c1b8d7aa45020469a3b'
  2. -- CMAKE_SYSTEM_PROCESSOR: x86_64
  3. -- x86 detected
  4. -- Configuring done (0.0s)
  5. -- Generating done (0.1s)
  6. -- Build files have been written to: /home/stephen/src/ollama/llm/llama.cpp/ggml/build/cpu
  7. [ 9%] Building C object CMakeFiles/ggml.dir/ggml.c.o
  8. [ 18%] Building C object CMakeFiles/ggml.dir/ggml-alloc.c.o
  9. [ 27%] Building C object CMakeFiles/ggml.dir/k_quants.c.o
  10. [ 27%] Built target ggml
  11. [ 36%] Building CXX object CMakeFiles/llama.dir/llama.cpp.o
  12. In file included from /usr/include/c++/13.2.1/string:51,
  13. from /home/stephen/src/ollama/llm/llama.cpp/ggml/llama-util.h:15,
  14. from /home/stephen/src/ollama/llm/llama.cpp/ggml/llama.cpp:9:
  15. In static member function ‘static void std::__copy_move<false, false, std::random_access_iterator_tag>::__assign_one(_Tp*, _Up*) [with _Tp = const llama_grammar_element*; _Up = const llama_grammar_element* const]’,
  16. inlined from ‘static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const llama_grammar_element* const; _Up = const llama_grammar_element*; bool _IsMove = false]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:440:20,
  17. inlined from ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const llama_grammar_element* const*; _OI = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:506:30,
  18. inlined from ‘_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const llama_grammar_element* const*; _OI = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:533:42,
  19. inlined from ‘_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, vector<const llama_grammar_element*> >; _OI = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:540:31,
  20. inlined from ‘_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, vector<const llama_grammar_element*> >; _OI = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:633:7,
  21. inlined from ‘static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, std::vector<const llama_grammar_element*> >; _ForwardIterator = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_uninitialized.h:147:27,
  22. inlined from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, vector<const llama_grammar_element*> >; _ForwardIterator = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_uninitialized.h:185:15,
  23. inlined from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, vector<const llama_grammar_element*> >; _ForwardIterator = const llama_grammar_element**; _Tp = const llama_grammar_element*]’ at /usr/include/c++/13.2.1/bits/stl_uninitialized.h:373:37,
  24. inlined from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:603:31,
  25. inlined from ‘void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::vector<const llama_grammar_element*>; _Args = {const std::vector<const llama_grammar_element*, std::allocator<const llama_grammar_element*> >&}; _Tp = std::vector<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/new_allocator.h:187:4,
  26. inlined from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::vector<const llama_grammar_element*>; _Args = {const std::vector<const llama_grammar_element*, std::allocator<const llama_grammar_element*> >&}; _Tp = std::vector<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/alloc_traits.h:537:17,
  27. inlined from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<const llama_grammar_element*>; _Alloc = std::allocator<std::vector<const llama_grammar_element*> >]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:1283:30,
  28. inlined from ‘void llama_grammar_advance_stack(const std::vector<std::vector<llama_grammar_element> >&, const std::vector<const llama_grammar_element*>&, std::vector<std::vector<const llama_grammar_element*> >&)’ at /home/stephen/src/ollama/llm/llama.cpp/ggml/llama.cpp:2266:29:
  29. /usr/include/c++/13.2.1/bits/stl_algobase.h:398:17: warning: array subscript 0 is outside array bounds of ‘const llama_grammar_element* [0]’ [-Warray-bounds=]
  30. 398 | { *__to = *__from; }
  31. | ~~~~~~^~~~~~~~~
  32. In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
  33. from /usr/include/c++/13.2.1/bits/allocator.h:46,
  34. from /usr/include/c++/13.2.1/string:43:
  35. In member function ‘_Tp* std::__new_allocator<_Tp>::allocate(size_type, const void*) [with _Tp = const llama_grammar_element*]’,
  36. inlined from ‘static _Tp* std::allocator_traits<std::allocator<_CharT> >::allocate(allocator_type&, size_type) [with _Tp = const llama_grammar_element*]’ at /usr/include/c++/13.2.1/bits/alloc_traits.h:482:28,
  37. inlined from ‘std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:378:33,
  38. inlined from ‘void std::_Vector_base<_Tp, _Alloc>::_M_create_storage(std::size_t) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:395:44,
  39. inlined from ‘std::_Vector_base<_Tp, _Alloc>::_Vector_base(std::size_t, const allocator_type&) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:332:26,
  40. inlined from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:600:61,
  41. inlined from ‘void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::vector<const llama_grammar_element*>; _Args = {const std::vector<const llama_grammar_element*, std::allocator<const llama_grammar_element*> >&}; _Tp = std::vector<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/new_allocator.h:187:4,
  42. inlined from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::vector<const llama_grammar_element*>; _Args = {const std::vector<const llama_grammar_element*, std::allocator<const llama_grammar_element*> >&}; _Tp = std::vector<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/alloc_traits.h:537:17,
  43. inlined from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<const llama_grammar_element*>; _Alloc = std::allocator<std::vector<const llama_grammar_element*> >]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:1283:30,
  44. inlined from ‘void llama_grammar_advance_stack(const std::vector<std::vector<llama_grammar_element> >&, const std::vector<const llama_grammar_element*>&, std::vector<std::vector<const llama_grammar_element*> >&)’ at /home/stephen/src/ollama/llm/llama.cpp/ggml/llama.cpp:2266:29:
  45. /usr/include/c++/13.2.1/bits/new_allocator.h:147:55: note: object of size 0 allocated by ‘operator new’
  46. 147 | return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
  47. | ^
  48. [ 45%] Linking CXX static library libllama.a
  49. [ 45%] Built target llama
  50. [ 54%] Building CXX object examples/CMakeFiles/common.dir/common.cpp.o
  51. [ 63%] Building CXX object examples/CMakeFiles/common.dir/grammar-parser.cpp.o
  52. [ 72%] Built target common
  53. [ 81%] Generating build details from Git
  54. -- Found Git: /usr/bin/git (found version "2.42.0")
  55. [ 81%] Built target BUILD_INFO
  56. [ 90%] Building CXX object examples/server/CMakeFiles/server.dir/server.cpp.o
  57. [100%] Linking CXX executable ../../bin/server
  58. [100%] Built target server
  59. Submodule path 'gguf': checked out '9e70cc03229df19ca2d28ce23cc817198f897278'
  60. -- CMAKE_SYSTEM_PROCESSOR: x86_64
  61. -- x86 detected
  62. -- Configuring done (0.0s)
  63. -- Generating done (0.1s)
  64. -- Build files have been written to: /home/stephen/src/ollama/llm/llama.cpp/gguf/build/cpu
  65. [ 28%] Built target ggml
  66. [ 42%] Built target llama
  67. [ 50%] Building CXX object common/CMakeFiles/common.dir/common.cpp.o
  68. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.h:10,
  69. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.cpp:1:
  70. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_test()’:
  71. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  72. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  73. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  74. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  75. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  76. | ^~~~~~~~
  77. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:438:5: note: in expansion of macro ‘LOG’
  78. 438 | LOG("01 Hello World to nobody, because logs are disabled!\n");
  79. | ^~~
  80. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/./llama.h:13,
  81. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.h:5:
  82. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  83. 355 | extern int fprintf (FILE *__restrict __stream,
  84. | ^~~~~~~
  85. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  86. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  87. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  88. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  89. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  90. | ^~~~~~~~
  91. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:440:5: note: in expansion of macro ‘LOG’
  92. 440 | LOG("02 Hello World to default output, which is \"%s\" ( Yaaay, arguments! )!\n", LOG_STRINGIZE(LOG_TARGET));
  93. | ^~~
  94. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  95. 355 | extern int fprintf (FILE *__restrict __stream,
  96. | ^~~~~~~
  97. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  98. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  99. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  100. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  101. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  102. | ^~~~~~~~~~~~
  103. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:441:5: note: in expansion of macro ‘LOG_TEE’
  104. 441 | LOG_TEE("03 Hello World to **both** default output and " LOG_TEE_TARGET_STRING "!\n");
  105. | ^~~~~~~
  106. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  107. 355 | extern int fprintf (FILE *__restrict __stream,
  108. | ^~~~~~~
  109. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  110. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  111. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  112. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  113. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  114. | ^~~~~~~~
  115. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:443:5: note: in expansion of macro ‘LOG’
  116. 443 | LOG("04 Hello World to stderr!\n");
  117. | ^~~
  118. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  119. 355 | extern int fprintf (FILE *__restrict __stream,
  120. | ^~~~~~~
  121. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  122. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  123. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  124. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  125. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  126. | ^~~~~~~~~~~~
  127. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:444:5: note: in expansion of macro ‘LOG_TEE’
  128. 444 | LOG_TEE("05 Hello World TEE with double printing to stderr prevented!\n");
  129. | ^~~~~~~
  130. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  131. 355 | extern int fprintf (FILE *__restrict __stream,
  132. | ^~~~~~~
  133. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  134. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  135. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  136. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  137. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  138. | ^~~~~~~~
  139. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:446:5: note: in expansion of macro ‘LOG’
  140. 446 | LOG("06 Hello World to default log file!\n");
  141. | ^~~
  142. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  143. 355 | extern int fprintf (FILE *__restrict __stream,
  144. | ^~~~~~~
  145. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  146. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  147. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  148. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  149. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  150. | ^~~~~~~~
  151. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:448:5: note: in expansion of macro ‘LOG’
  152. 448 | LOG("07 Hello World to stdout!\n");
  153. | ^~~
  154. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  155. 355 | extern int fprintf (FILE *__restrict __stream,
  156. | ^~~~~~~
  157. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  158. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  159. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  160. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  161. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  162. | ^~~~~~~~
  163. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:450:5: note: in expansion of macro ‘LOG’
  164. 450 | LOG("08 Hello World to default log file again!\n");
  165. | ^~~
  166. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  167. 355 | extern int fprintf (FILE *__restrict __stream,
  168. | ^~~~~~~
  169. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  170. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  171. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  172. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  173. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  174. | ^~~~~~~~
  175. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:452:5: note: in expansion of macro ‘LOG’
  176. 452 | LOG("09 Hello World _1_ into the void!\n");
  177. | ^~~
  178. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  179. 355 | extern int fprintf (FILE *__restrict __stream,
  180. | ^~~~~~~
  181. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  182. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  183. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  184. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  185. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  186. | ^~~~~~~~
  187. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:454:5: note: in expansion of macro ‘LOG’
  188. 454 | LOG("10 Hello World back from the void ( you should not see _1_ in the log or the output )!\n");
  189. | ^~~
  190. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  191. 355 | extern int fprintf (FILE *__restrict __stream,
  192. | ^~~~~~~
  193. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  194. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  195. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  196. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  197. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  198. | ^~~~~~~~
  199. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:457:5: note: in expansion of macro ‘LOG’
  200. 457 | LOG("11 Hello World _2_ to nobody, new target was selected but logs are still disabled!\n");
  201. | ^~~
  202. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  203. 355 | extern int fprintf (FILE *__restrict __stream,
  204. | ^~~~~~~
  205. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  206. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  207. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  208. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  209. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  210. | ^~~~~~~~
  211. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:459:5: note: in expansion of macro ‘LOG’
  212. 459 | LOG("12 Hello World this time in a new file ( you should not see _2_ in the log or the output )?\n");
  213. | ^~~
  214. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  215. 355 | extern int fprintf (FILE *__restrict __stream,
  216. | ^~~~~~~
  217. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  218. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  219. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  220. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  221. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  222. | ^~~~~~~~
  223. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:461:5: note: in expansion of macro ‘LOG’
  224. 461 | LOG("13 Hello World this time in yet new file?\n");
  225. | ^~~
  226. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  227. 355 | extern int fprintf (FILE *__restrict __stream,
  228. | ^~~~~~~
  229. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  230. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  231. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  232. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  233. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  234. | ^~~~~~~~
  235. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:463:5: note: in expansion of macro ‘LOG’
  236. 463 | LOG("14 Hello World in log with generated filename!\n");
  237. | ^~~
  238. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  239. 355 | extern int fprintf (FILE *__restrict __stream,
  240. | ^~~~~~~
  241. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_dump_cmdline_impl(int, char**)’:
  242. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  243. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  244. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  245. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:309:24: note: in expansion of macro ‘LOG_IMPL’
  246. 309 | #define LOGLN(...) LOG_IMPL(__VA_ARGS__, "\n")
  247. | ^~~~~~~~
  248. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:545:5: note: in expansion of macro ‘LOGLN’
  249. 545 | LOGLN("Cmd:%s", buf.str().c_str());
  250. | ^~~~~
  251. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  252. 355 | extern int fprintf (FILE *__restrict __stream,
  253. | ^~~~~~~
  254. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.cpp: In function ‘std::tuple<llama_model*, llama_context*> llama_init_from_gpt_params(gpt_params&)’:
  255. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  256. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  257. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  258. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  259. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  260. | ^~~~~~~~
  261. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.cpp:887:9: note: in expansion of macro ‘LOG’
  262. 887 | LOG("warming up the model with an empty run\n");
  263. | ^~~
  264. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  265. 355 | extern int fprintf (FILE *__restrict __stream,
  266. | ^~~~~~~
  267. [ 57%] Building CXX object common/CMakeFiles/common.dir/sampling.cpp.o
  268. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.h:10,
  269. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.h:58,
  270. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.cpp:1:
  271. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_test()’:
  272. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  273. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  274. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  275. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  276. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  277. | ^~~~~~~~
  278. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:438:5: note: in expansion of macro ‘LOG’
  279. 438 | LOG("01 Hello World to nobody, because logs are disabled!\n");
  280. | ^~~
  281. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/./llama.h:13,
  282. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.h:3:
  283. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  284. 355 | extern int fprintf (FILE *__restrict __stream,
  285. | ^~~~~~~
  286. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  287. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  288. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  289. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  290. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  291. | ^~~~~~~~
  292. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:440:5: note: in expansion of macro ‘LOG’
  293. 440 | LOG("02 Hello World to default output, which is \"%s\" ( Yaaay, arguments! )!\n", LOG_STRINGIZE(LOG_TARGET));
  294. | ^~~
  295. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  296. 355 | extern int fprintf (FILE *__restrict __stream,
  297. | ^~~~~~~
  298. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  299. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  300. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  301. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  302. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  303. | ^~~~~~~~~~~~
  304. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:441:5: note: in expansion of macro ‘LOG_TEE’
  305. 441 | LOG_TEE("03 Hello World to **both** default output and " LOG_TEE_TARGET_STRING "!\n");
  306. | ^~~~~~~
  307. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  308. 355 | extern int fprintf (FILE *__restrict __stream,
  309. | ^~~~~~~
  310. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  311. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  312. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  313. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  314. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  315. | ^~~~~~~~
  316. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:443:5: note: in expansion of macro ‘LOG’
  317. 443 | LOG("04 Hello World to stderr!\n");
  318. | ^~~
  319. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  320. 355 | extern int fprintf (FILE *__restrict __stream,
  321. | ^~~~~~~
  322. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  323. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  324. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  325. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  326. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  327. | ^~~~~~~~~~~~
  328. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:444:5: note: in expansion of macro ‘LOG_TEE’
  329. 444 | LOG_TEE("05 Hello World TEE with double printing to stderr prevented!\n");
  330. | ^~~~~~~
  331. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  332. 355 | extern int fprintf (FILE *__restrict __stream,
  333. | ^~~~~~~
  334. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  335. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  336. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  337. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  338. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  339. | ^~~~~~~~
  340. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:446:5: note: in expansion of macro ‘LOG’
  341. 446 | LOG("06 Hello World to default log file!\n");
  342. | ^~~
  343. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  344. 355 | extern int fprintf (FILE *__restrict __stream,
  345. | ^~~~~~~
  346. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  347. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  348. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  349. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  350. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  351. | ^~~~~~~~
  352. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:448:5: note: in expansion of macro ‘LOG’
  353. 448 | LOG("07 Hello World to stdout!\n");
  354. | ^~~
  355. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  356. 355 | extern int fprintf (FILE *__restrict __stream,
  357. | ^~~~~~~
  358. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  359. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  360. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  361. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  362. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  363. | ^~~~~~~~
  364. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:450:5: note: in expansion of macro ‘LOG’
  365. 450 | LOG("08 Hello World to default log file again!\n");
  366. | ^~~
  367. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  368. 355 | extern int fprintf (FILE *__restrict __stream,
  369. | ^~~~~~~
  370. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  371. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  372. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  373. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  374. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  375. | ^~~~~~~~
  376. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:452:5: note: in expansion of macro ‘LOG’
  377. 452 | LOG("09 Hello World _1_ into the void!\n");
  378. | ^~~
  379. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  380. 355 | extern int fprintf (FILE *__restrict __stream,
  381. | ^~~~~~~
  382. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  383. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  384. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  385. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  386. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  387. | ^~~~~~~~
  388. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:454:5: note: in expansion of macro ‘LOG’
  389. 454 | LOG("10 Hello World back from the void ( you should not see _1_ in the log or the output )!\n");
  390. | ^~~
  391. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  392. 355 | extern int fprintf (FILE *__restrict __stream,
  393. | ^~~~~~~
  394. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  395. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  396. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  398. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  399. | ^~~~~~~~
  400. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:457:5: note: in expansion of macro ‘LOG’
  401. 457 | LOG("11 Hello World _2_ to nobody, new target was selected but logs are still disabled!\n");
  402. | ^~~
  403. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  404. 355 | extern int fprintf (FILE *__restrict __stream,
  405. | ^~~~~~~
  406. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  407. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  408. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  410. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  411. | ^~~~~~~~
  412. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:459:5: note: in expansion of macro ‘LOG’
  413. 459 | LOG("12 Hello World this time in a new file ( you should not see _2_ in the log or the output )?\n");
  414. | ^~~
  415. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  416. 355 | extern int fprintf (FILE *__restrict __stream,
  417. | ^~~~~~~
  418. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  419. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  420. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  421. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  422. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  423. | ^~~~~~~~
  424. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:461:5: note: in expansion of macro ‘LOG’
  425. 461 | LOG("13 Hello World this time in yet new file?\n");
  426. | ^~~
  427. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  428. 355 | extern int fprintf (FILE *__restrict __stream,
  429. | ^~~~~~~
  430. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  431. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  432. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  433. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  434. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  435. | ^~~~~~~~
  436. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:463:5: note: in expansion of macro ‘LOG’
  437. 463 | LOG("14 Hello World in log with generated filename!\n");
  438. | ^~~
  439. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  440. 355 | extern int fprintf (FILE *__restrict __stream,
  441. | ^~~~~~~
  442. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_dump_cmdline_impl(int, char**)’:
  443. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  444. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  445. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  446. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:309:24: note: in expansion of macro ‘LOG_IMPL’
  447. 309 | #define LOGLN(...) LOG_IMPL(__VA_ARGS__, "\n")
  448. | ^~~~~~~~
  449. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:545:5: note: in expansion of macro ‘LOGLN’
  450. 545 | LOGLN("Cmd:%s", buf.str().c_str());
  451. | ^~~~~
  452. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  453. 355 | extern int fprintf (FILE *__restrict __stream,
  454. | ^~~~~~~
  455. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.cpp: In function ‘llama_token llama_sampling_sample(llama_sampling_context*, llama_context*, llama_context*, int)’:
  456. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  457. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  458. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  460. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  461. | ^~~~~~~~
  462. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.cpp:204:13: note: in expansion of macro ‘LOG’
  463. 204 | LOG("sampled token: %5d: '%s'\n", id, llama_token_to_piece(ctx_main, id).c_str());
  464. | ^~~
  465. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  466. 355 | extern int fprintf (FILE *__restrict __stream,
  467. | ^~~~~~~
  468. [ 64%] Building CXX object common/CMakeFiles/common.dir/train.cpp.o
  469. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.h:10,
  470. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/train.cpp:2:
  471. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_test()’:
  472. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  473. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  474. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  476. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  477. | ^~~~~~~~
  478. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:438:5: note: in expansion of macro ‘LOG’
  479. 438 | LOG("01 Hello World to nobody, because logs are disabled!\n");
  480. | ^~~
  481. In file included from /usr/include/c++/13.2.1/cstdio:42,
  482. from /usr/include/c++/13.2.1/ext/string_conversions.h:45,
  483. from /usr/include/c++/13.2.1/bits/basic_string.h:4097,
  484. from /usr/include/c++/13.2.1/string:54,
  485. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/train.h:5,
  486. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/train.cpp:1:
  487. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  488. 355 | extern int fprintf (FILE *__restrict __stream,
  489. | ^~~~~~~
  490. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  491. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  492. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  494. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  495. | ^~~~~~~~
  496. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:440:5: note: in expansion of macro ‘LOG’
  497. 440 | LOG("02 Hello World to default output, which is \"%s\" ( Yaaay, arguments! )!\n", LOG_STRINGIZE(LOG_TARGET));
  498. | ^~~
  499. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  500. 355 | extern int fprintf (FILE *__restrict __stream,
  501. | ^~~~~~~
  502. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  503. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  504. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  505. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  506. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  507. | ^~~~~~~~~~~~
  508. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:441:5: note: in expansion of macro ‘LOG_TEE’
  509. 441 | LOG_TEE("03 Hello World to **both** default output and " LOG_TEE_TARGET_STRING "!\n");
  510. | ^~~~~~~
  511. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  512. 355 | extern int fprintf (FILE *__restrict __stream,
  513. | ^~~~~~~
  514. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  515. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  516. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  517. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  518. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  519. | ^~~~~~~~
  520. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:443:5: note: in expansion of macro ‘LOG’
  521. 443 | LOG("04 Hello World to stderr!\n");
  522. | ^~~
  523. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  524. 355 | extern int fprintf (FILE *__restrict __stream,
  525. | ^~~~~~~
  526. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  527. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  528. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  529. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  530. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  531. | ^~~~~~~~~~~~
  532. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:444:5: note: in expansion of macro ‘LOG_TEE’
  533. 444 | LOG_TEE("05 Hello World TEE with double printing to stderr prevented!\n");
  534. | ^~~~~~~
  535. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  536. 355 | extern int fprintf (FILE *__restrict __stream,
  537. | ^~~~~~~
  538. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  539. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  540. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  541. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  542. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  543. | ^~~~~~~~
  544. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:446:5: note: in expansion of macro ‘LOG’
  545. 446 | LOG("06 Hello World to default log file!\n");
  546. | ^~~
  547. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  548. 355 | extern int fprintf (FILE *__restrict __stream,
  549. | ^~~~~~~
  550. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  551. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  552. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  553. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  554. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  555. | ^~~~~~~~
  556. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:448:5: note: in expansion of macro ‘LOG’
  557. 448 | LOG("07 Hello World to stdout!\n");
  558. | ^~~
  559. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  560. 355 | extern int fprintf (FILE *__restrict __stream,
  561. | ^~~~~~~
  562. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  563. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  564. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  565. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  566. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  567. | ^~~~~~~~
  568. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:450:5: note: in expansion of macro ‘LOG’
  569. 450 | LOG("08 Hello World to default log file again!\n");
  570. | ^~~
  571. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  572. 355 | extern int fprintf (FILE *__restrict __stream,
  573. | ^~~~~~~
  574. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  575. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  576. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  577. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  578. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  579. | ^~~~~~~~
  580. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:452:5: note: in expansion of macro ‘LOG’
  581. 452 | LOG("09 Hello World _1_ into the void!\n");
  582. | ^~~
  583. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  584. 355 | extern int fprintf (FILE *__restrict __stream,
  585. | ^~~~~~~
  586. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  587. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  588. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  589. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  590. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  591. | ^~~~~~~~
  592. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:454:5: note: in expansion of macro ‘LOG’
  593. 454 | LOG("10 Hello World back from the void ( you should not see _1_ in the log or the output )!\n");
  594. | ^~~
  595. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  596. 355 | extern int fprintf (FILE *__restrict __stream,
  597. | ^~~~~~~
  598. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  599. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  600. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  601. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  602. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  603. | ^~~~~~~~
  604. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:457:5: note: in expansion of macro ‘LOG’
  605. 457 | LOG("11 Hello World _2_ to nobody, new target was selected but logs are still disabled!\n");
  606. | ^~~
  607. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  608. 355 | extern int fprintf (FILE *__restrict __stream,
  609. | ^~~~~~~
  610. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  611. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  612. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  613. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  614. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  615. | ^~~~~~~~
  616. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:459:5: note: in expansion of macro ‘LOG’
  617. 459 | LOG("12 Hello World this time in a new file ( you should not see _2_ in the log or the output )?\n");
  618. | ^~~
  619. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  620. 355 | extern int fprintf (FILE *__restrict __stream,
  621. | ^~~~~~~
  622. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  623. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  624. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  625. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  626. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  627. | ^~~~~~~~
  628. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:461:5: note: in expansion of macro ‘LOG’
  629. 461 | LOG("13 Hello World this time in yet new file?\n");
  630. | ^~~
  631. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  632. 355 | extern int fprintf (FILE *__restrict __stream,
  633. | ^~~~~~~
  634. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  635. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  636. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  637. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  638. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  639. | ^~~~~~~~
  640. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:463:5: note: in expansion of macro ‘LOG’
  641. 463 | LOG("14 Hello World in log with generated filename!\n");
  642. | ^~~
  643. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  644. 355 | extern int fprintf (FILE *__restrict __stream,
  645. | ^~~~~~~
  646. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_dump_cmdline_impl(int, char**)’:
  647. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  648. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  649. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  650. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:309:24: note: in expansion of macro ‘LOG_IMPL’
  651. 309 | #define LOGLN(...) LOG_IMPL(__VA_ARGS__, "\n")
  652. | ^~~~~~~~
  653. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:545:5: note: in expansion of macro ‘LOGLN’
  654. 545 | LOGLN("Cmd:%s", buf.str().c_str());
  655. | ^~~~~
  656. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  657. 355 | extern int fprintf (FILE *__restrict __stream,
  658. | ^~~~~~~
  659. [ 78%] Built target common
  660. [ 85%] Generating build details from Git
  661. -- Found Git: /usr/bin/git (found version "2.42.0")
  662. [ 85%] Built target BUILD_INFO
  663. [ 92%] Building CXX object examples/server/CMakeFiles/server.dir/server.cpp.o
  664. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./common.h:10,
  665. from /home/stephen/src/ollama/llm/llama.cpp/gguf/examples/server/server.cpp:1:
  666. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h: In function ‘void log_test()’:
  667. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  668. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  669. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  670. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  671. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  672. | ^~~~~~~~
  673. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:438:5: note: in expansion of macro ‘LOG’
  674. 438 | LOG("01 Hello World to nobody, because logs are disabled!\n");
  675. | ^~~
  676. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/./llama.h:13,
  677. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./common.h:5:
  678. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  679. 355 | extern int fprintf (FILE *__restrict __stream,
  680. | ^~~~~~~
  681. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  682. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  683. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  684. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  685. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  686. | ^~~~~~~~
  687. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:440:5: note: in expansion of macro ‘LOG’
  688. 440 | LOG("02 Hello World to default output, which is \"%s\" ( Yaaay, arguments! )!\n", LOG_STRINGIZE(LOG_TARGET));
  689. | ^~~
  690. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  691. 355 | extern int fprintf (FILE *__restrict __stream,
  692. | ^~~~~~~
  693. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  694. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  695. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  696. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  697. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  698. | ^~~~~~~~~~~~
  699. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:441:5: note: in expansion of macro ‘LOG_TEE’
  700. 441 | LOG_TEE("03 Hello World to **both** default output and " LOG_TEE_TARGET_STRING "!\n");
  701. | ^~~~~~~
  702. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  703. 355 | extern int fprintf (FILE *__restrict __stream,
  704. | ^~~~~~~
  705. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  706. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  707. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  708. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  709. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  710. | ^~~~~~~~
  711. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:443:5: note: in expansion of macro ‘LOG’
  712. 443 | LOG("04 Hello World to stderr!\n");
  713. | ^~~
  714. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  715. 355 | extern int fprintf (FILE *__restrict __stream,
  716. | ^~~~~~~
  717. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  718. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  719. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  720. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  721. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  722. | ^~~~~~~~~~~~
  723. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:444:5: note: in expansion of macro ‘LOG_TEE’
  724. 444 | LOG_TEE("05 Hello World TEE with double printing to stderr prevented!\n");
  725. | ^~~~~~~
  726. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  727. 355 | extern int fprintf (FILE *__restrict __stream,
  728. | ^~~~~~~
  729. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  730. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  731. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  732. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  733. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  734. | ^~~~~~~~
  735. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:446:5: note: in expansion of macro ‘LOG’
  736. 446 | LOG("06 Hello World to default log file!\n");
  737. | ^~~
  738. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  739. 355 | extern int fprintf (FILE *__restrict __stream,
  740. | ^~~~~~~
  741. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  742. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  743. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  744. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  745. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  746. | ^~~~~~~~
  747. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:448:5: note: in expansion of macro ‘LOG’
  748. 448 | LOG("07 Hello World to stdout!\n");
  749. | ^~~
  750. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  751. 355 | extern int fprintf (FILE *__restrict __stream,
  752. | ^~~~~~~
  753. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  754. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  755. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  756. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  757. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  758. | ^~~~~~~~
  759. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:450:5: note: in expansion of macro ‘LOG’
  760. 450 | LOG("08 Hello World to default log file again!\n");
  761. | ^~~
  762. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  763. 355 | extern int fprintf (FILE *__restrict __stream,
  764. | ^~~~~~~
  765. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  766. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  767. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  768. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  769. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  770. | ^~~~~~~~
  771. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:452:5: note: in expansion of macro ‘LOG’
  772. 452 | LOG("09 Hello World _1_ into the void!\n");
  773. | ^~~
  774. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  775. 355 | extern int fprintf (FILE *__restrict __stream,
  776. | ^~~~~~~
  777. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  778. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  779. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  780. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  781. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  782. | ^~~~~~~~
  783. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:454:5: note: in expansion of macro ‘LOG’
  784. 454 | LOG("10 Hello World back from the void ( you should not see _1_ in the log or the output )!\n");
  785. | ^~~
  786. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  787. 355 | extern int fprintf (FILE *__restrict __stream,
  788. | ^~~~~~~
  789. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  790. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  791. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  792. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  793. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  794. | ^~~~~~~~
  795. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:457:5: note: in expansion of macro ‘LOG’
  796. 457 | LOG("11 Hello World _2_ to nobody, new target was selected but logs are still disabled!\n");
  797. | ^~~
  798. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  799. 355 | extern int fprintf (FILE *__restrict __stream,
  800. | ^~~~~~~
  801. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  802. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  803. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  804. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  805. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  806. | ^~~~~~~~
  807. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:459:5: note: in expansion of macro ‘LOG’
  808. 459 | LOG("12 Hello World this time in a new file ( you should not see _2_ in the log or the output )?\n");
  809. | ^~~
  810. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  811. 355 | extern int fprintf (FILE *__restrict __stream,
  812. | ^~~~~~~
  813. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  814. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  815. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  816. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  817. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  818. | ^~~~~~~~
  819. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:461:5: note: in expansion of macro ‘LOG’
  820. 461 | LOG("13 Hello World this time in yet new file?\n");
  821. | ^~~
  822. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  823. 355 | extern int fprintf (FILE *__restrict __stream,
  824. | ^~~~~~~
  825. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  826. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  827. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  828. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  829. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  830. | ^~~~~~~~
  831. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:463:5: note: in expansion of macro ‘LOG’
  832. 463 | LOG("14 Hello World in log with generated filename!\n");
  833. | ^~~
  834. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  835. 355 | extern int fprintf (FILE *__restrict __stream,
  836. | ^~~~~~~
  837. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h: In function ‘void log_dump_cmdline_impl(int, char**)’:
  838. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  839. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  840. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  841. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:309:24: note: in expansion of macro ‘LOG_IMPL’
  842. 309 | #define LOGLN(...) LOG_IMPL(__VA_ARGS__, "\n")
  843. | ^~~~~~~~
  844. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:545:5: note: in expansion of macro ‘LOGLN’
  845. 545 | LOGLN("Cmd:%s", buf.str().c_str());
  846. | ^~~~~
  847. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  848. 355 | extern int fprintf (FILE *__restrict __stream,
  849. | ^~~~~~~
  850. [100%] Linking CXX executable ../../bin/server
  851. [100%] Built target server
  852. -- Could not find nvcc, please set CUDAToolkit_ROOT.
  853. CMake Warning at CMakeLists.txt:295 (message):
  854. cuBLAS not found
  855.  
  856.  
  857. -- CMAKE_SYSTEM_PROCESSOR: x86_64
  858. -- x86 detected
  859. -- Configuring done (0.0s)
  860. -- Generating done (0.1s)
  861. -- Build files have been written to: /home/stephen/src/ollama/llm/llama.cpp/ggml/build/cuda
  862. [ 9%] Building C object CMakeFiles/ggml.dir/ggml.c.o
  863. [ 18%] Building C object CMakeFiles/ggml.dir/ggml-alloc.c.o
  864. [ 27%] Building C object CMakeFiles/ggml.dir/k_quants.c.o
  865. [ 27%] Built target ggml
  866. [ 36%] Building CXX object CMakeFiles/llama.dir/llama.cpp.o
  867. In file included from /usr/include/c++/13.2.1/string:51,
  868. from /home/stephen/src/ollama/llm/llama.cpp/ggml/llama-util.h:15,
  869. from /home/stephen/src/ollama/llm/llama.cpp/ggml/llama.cpp:9:
  870. In static member function ‘static void std::__copy_move<false, false, std::random_access_iterator_tag>::__assign_one(_Tp*, _Up*) [with _Tp = const llama_grammar_element*; _Up = const llama_grammar_element* const]’,
  871. inlined from ‘static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const llama_grammar_element* const; _Up = const llama_grammar_element*; bool _IsMove = false]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:440:20,
  872. inlined from ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const llama_grammar_element* const*; _OI = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:506:30,
  873. inlined from ‘_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const llama_grammar_element* const*; _OI = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:533:42,
  874. inlined from ‘_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, vector<const llama_grammar_element*> >; _OI = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:540:31,
  875. inlined from ‘_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, vector<const llama_grammar_element*> >; _OI = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_algobase.h:633:7,
  876. inlined from ‘static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, std::vector<const llama_grammar_element*> >; _ForwardIterator = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_uninitialized.h:147:27,
  877. inlined from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, vector<const llama_grammar_element*> >; _ForwardIterator = const llama_grammar_element**]’ at /usr/include/c++/13.2.1/bits/stl_uninitialized.h:185:15,
  878. inlined from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const llama_grammar_element* const*, vector<const llama_grammar_element*> >; _ForwardIterator = const llama_grammar_element**; _Tp = const llama_grammar_element*]’ at /usr/include/c++/13.2.1/bits/stl_uninitialized.h:373:37,
  879. inlined from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:603:31,
  880. inlined from ‘void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::vector<const llama_grammar_element*>; _Args = {const std::vector<const llama_grammar_element*, std::allocator<const llama_grammar_element*> >&}; _Tp = std::vector<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/new_allocator.h:187:4,
  881. inlined from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::vector<const llama_grammar_element*>; _Args = {const std::vector<const llama_grammar_element*, std::allocator<const llama_grammar_element*> >&}; _Tp = std::vector<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/alloc_traits.h:537:17,
  882. inlined from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<const llama_grammar_element*>; _Alloc = std::allocator<std::vector<const llama_grammar_element*> >]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:1283:30,
  883. inlined from ‘void llama_grammar_advance_stack(const std::vector<std::vector<llama_grammar_element> >&, const std::vector<const llama_grammar_element*>&, std::vector<std::vector<const llama_grammar_element*> >&)’ at /home/stephen/src/ollama/llm/llama.cpp/ggml/llama.cpp:2266:29:
  884. /usr/include/c++/13.2.1/bits/stl_algobase.h:398:17: warning: array subscript 0 is outside array bounds of ‘const llama_grammar_element* [0]’ [-Warray-bounds=]
  885. 398 | { *__to = *__from; }
  886. | ~~~~~~^~~~~~~~~
  887. In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
  888. from /usr/include/c++/13.2.1/bits/allocator.h:46,
  889. from /usr/include/c++/13.2.1/string:43:
  890. In member function ‘_Tp* std::__new_allocator<_Tp>::allocate(size_type, const void*) [with _Tp = const llama_grammar_element*]’,
  891. inlined from ‘static _Tp* std::allocator_traits<std::allocator<_CharT> >::allocate(allocator_type&, size_type) [with _Tp = const llama_grammar_element*]’ at /usr/include/c++/13.2.1/bits/alloc_traits.h:482:28,
  892. inlined from ‘std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:378:33,
  893. inlined from ‘void std::_Vector_base<_Tp, _Alloc>::_M_create_storage(std::size_t) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:395:44,
  894. inlined from ‘std::_Vector_base<_Tp, _Alloc>::_Vector_base(std::size_t, const allocator_type&) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:332:26,
  895. inlined from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const llama_grammar_element*; _Alloc = std::allocator<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:600:61,
  896. inlined from ‘void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::vector<const llama_grammar_element*>; _Args = {const std::vector<const llama_grammar_element*, std::allocator<const llama_grammar_element*> >&}; _Tp = std::vector<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/new_allocator.h:187:4,
  897. inlined from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::vector<const llama_grammar_element*>; _Args = {const std::vector<const llama_grammar_element*, std::allocator<const llama_grammar_element*> >&}; _Tp = std::vector<const llama_grammar_element*>]’ at /usr/include/c++/13.2.1/bits/alloc_traits.h:537:17,
  898. inlined from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<const llama_grammar_element*>; _Alloc = std::allocator<std::vector<const llama_grammar_element*> >]’ at /usr/include/c++/13.2.1/bits/stl_vector.h:1283:30,
  899. inlined from ‘void llama_grammar_advance_stack(const std::vector<std::vector<llama_grammar_element> >&, const std::vector<const llama_grammar_element*>&, std::vector<std::vector<const llama_grammar_element*> >&)’ at /home/stephen/src/ollama/llm/llama.cpp/ggml/llama.cpp:2266:29:
  900. /usr/include/c++/13.2.1/bits/new_allocator.h:147:55: note: object of size 0 allocated by ‘operator new’
  901. 147 | return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
  902. | ^
  903. [ 45%] Linking CXX static library libllama.a
  904. [ 45%] Built target llama
  905. [ 54%] Building CXX object examples/CMakeFiles/common.dir/common.cpp.o
  906. [ 63%] Building CXX object examples/CMakeFiles/common.dir/grammar-parser.cpp.o
  907. [ 72%] Built target common
  908. [ 81%] Generating build details from Git
  909. -- Found Git: /usr/bin/git (found version "2.42.0")
  910. [ 81%] Built target BUILD_INFO
  911. [ 90%] Building CXX object examples/server/CMakeFiles/server.dir/server.cpp.o
  912. [100%] Linking CXX executable ../../bin/server
  913. [100%] Built target server
  914. -- Could not find nvcc, please set CUDAToolkit_ROOT.
  915. CMake Warning at CMakeLists.txt:343 (message):
  916. cuBLAS not found
  917.  
  918.  
  919. -- CMAKE_SYSTEM_PROCESSOR: x86_64
  920. -- x86 detected
  921. -- Configuring done (0.0s)
  922. -- Generating done (0.1s)
  923. -- Build files have been written to: /home/stephen/src/ollama/llm/llama.cpp/gguf/build/cuda
  924. [ 28%] Built target ggml
  925. [ 42%] Built target llama
  926. [ 50%] Building CXX object common/CMakeFiles/common.dir/common.cpp.o
  927. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.h:10,
  928. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.cpp:1:
  929. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_test()’:
  930. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  931. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  932. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  933. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  934. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  935. | ^~~~~~~~
  936. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:438:5: note: in expansion of macro ‘LOG’
  937. 438 | LOG("01 Hello World to nobody, because logs are disabled!\n");
  938. | ^~~
  939. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/./llama.h:13,
  940. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.h:5:
  941. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  942. 355 | extern int fprintf (FILE *__restrict __stream,
  943. | ^~~~~~~
  944. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  945. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  946. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  947. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  948. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  949. | ^~~~~~~~
  950. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:440:5: note: in expansion of macro ‘LOG’
  951. 440 | LOG("02 Hello World to default output, which is \"%s\" ( Yaaay, arguments! )!\n", LOG_STRINGIZE(LOG_TARGET));
  952. | ^~~
  953. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  954. 355 | extern int fprintf (FILE *__restrict __stream,
  955. | ^~~~~~~
  956. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  957. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  958. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  959. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  960. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  961. | ^~~~~~~~~~~~
  962. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:441:5: note: in expansion of macro ‘LOG_TEE’
  963. 441 | LOG_TEE("03 Hello World to **both** default output and " LOG_TEE_TARGET_STRING "!\n");
  964. | ^~~~~~~
  965. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  966. 355 | extern int fprintf (FILE *__restrict __stream,
  967. | ^~~~~~~
  968. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  969. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  970. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  971. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  972. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  973. | ^~~~~~~~
  974. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:443:5: note: in expansion of macro ‘LOG’
  975. 443 | LOG("04 Hello World to stderr!\n");
  976. | ^~~
  977. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  978. 355 | extern int fprintf (FILE *__restrict __stream,
  979. | ^~~~~~~
  980. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  981. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  982. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  983. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  984. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  985. | ^~~~~~~~~~~~
  986. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:444:5: note: in expansion of macro ‘LOG_TEE’
  987. 444 | LOG_TEE("05 Hello World TEE with double printing to stderr prevented!\n");
  988. | ^~~~~~~
  989. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  990. 355 | extern int fprintf (FILE *__restrict __stream,
  991. | ^~~~~~~
  992. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  993. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  994. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  995. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  996. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  997. | ^~~~~~~~
  998. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:446:5: note: in expansion of macro ‘LOG’
  999. 446 | LOG("06 Hello World to default log file!\n");
  1000. | ^~~
  1001. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1002. 355 | extern int fprintf (FILE *__restrict __stream,
  1003. | ^~~~~~~
  1004. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1005. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1006. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1007. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1008. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1009. | ^~~~~~~~
  1010. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:448:5: note: in expansion of macro ‘LOG’
  1011. 448 | LOG("07 Hello World to stdout!\n");
  1012. | ^~~
  1013. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1014. 355 | extern int fprintf (FILE *__restrict __stream,
  1015. | ^~~~~~~
  1016. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1017. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1018. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1019. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1020. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1021. | ^~~~~~~~
  1022. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:450:5: note: in expansion of macro ‘LOG’
  1023. 450 | LOG("08 Hello World to default log file again!\n");
  1024. | ^~~
  1025. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1026. 355 | extern int fprintf (FILE *__restrict __stream,
  1027. | ^~~~~~~
  1028. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1029. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1030. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1031. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1032. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1033. | ^~~~~~~~
  1034. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:452:5: note: in expansion of macro ‘LOG’
  1035. 452 | LOG("09 Hello World _1_ into the void!\n");
  1036. | ^~~
  1037. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1038. 355 | extern int fprintf (FILE *__restrict __stream,
  1039. | ^~~~~~~
  1040. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1041. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1042. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1043. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1044. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1045. | ^~~~~~~~
  1046. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:454:5: note: in expansion of macro ‘LOG’
  1047. 454 | LOG("10 Hello World back from the void ( you should not see _1_ in the log or the output )!\n");
  1048. | ^~~
  1049. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1050. 355 | extern int fprintf (FILE *__restrict __stream,
  1051. | ^~~~~~~
  1052. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1053. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1054. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1055. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1056. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1057. | ^~~~~~~~
  1058. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:457:5: note: in expansion of macro ‘LOG’
  1059. 457 | LOG("11 Hello World _2_ to nobody, new target was selected but logs are still disabled!\n");
  1060. | ^~~
  1061. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1062. 355 | extern int fprintf (FILE *__restrict __stream,
  1063. | ^~~~~~~
  1064. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1065. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1066. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1067. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1068. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1069. | ^~~~~~~~
  1070. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:459:5: note: in expansion of macro ‘LOG’
  1071. 459 | LOG("12 Hello World this time in a new file ( you should not see _2_ in the log or the output )?\n");
  1072. | ^~~
  1073. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1074. 355 | extern int fprintf (FILE *__restrict __stream,
  1075. | ^~~~~~~
  1076. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1077. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1078. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1079. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1080. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1081. | ^~~~~~~~
  1082. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:461:5: note: in expansion of macro ‘LOG’
  1083. 461 | LOG("13 Hello World this time in yet new file?\n");
  1084. | ^~~
  1085. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1086. 355 | extern int fprintf (FILE *__restrict __stream,
  1087. | ^~~~~~~
  1088. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1089. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1090. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1091. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1092. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1093. | ^~~~~~~~
  1094. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:463:5: note: in expansion of macro ‘LOG’
  1095. 463 | LOG("14 Hello World in log with generated filename!\n");
  1096. | ^~~
  1097. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1098. 355 | extern int fprintf (FILE *__restrict __stream,
  1099. | ^~~~~~~
  1100. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_dump_cmdline_impl(int, char**)’:
  1101. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1102. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1103. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1104. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:309:24: note: in expansion of macro ‘LOG_IMPL’
  1105. 309 | #define LOGLN(...) LOG_IMPL(__VA_ARGS__, "\n")
  1106. | ^~~~~~~~
  1107. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:545:5: note: in expansion of macro ‘LOGLN’
  1108. 545 | LOGLN("Cmd:%s", buf.str().c_str());
  1109. | ^~~~~
  1110. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1111. 355 | extern int fprintf (FILE *__restrict __stream,
  1112. | ^~~~~~~
  1113. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.cpp: In function ‘std::tuple<llama_model*, llama_context*> llama_init_from_gpt_params(gpt_params&)’:
  1114. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1115. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1116. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1117. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1118. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1119. | ^~~~~~~~
  1120. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.cpp:887:9: note: in expansion of macro ‘LOG’
  1121. 887 | LOG("warming up the model with an empty run\n");
  1122. | ^~~
  1123. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1124. 355 | extern int fprintf (FILE *__restrict __stream,
  1125. | ^~~~~~~
  1126. [ 57%] Building CXX object common/CMakeFiles/common.dir/sampling.cpp.o
  1127. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.h:10,
  1128. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.h:58,
  1129. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.cpp:1:
  1130. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_test()’:
  1131. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1132. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1133. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1134. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1135. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1136. | ^~~~~~~~
  1137. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:438:5: note: in expansion of macro ‘LOG’
  1138. 438 | LOG("01 Hello World to nobody, because logs are disabled!\n");
  1139. | ^~~
  1140. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/./llama.h:13,
  1141. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.h:3:
  1142. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1143. 355 | extern int fprintf (FILE *__restrict __stream,
  1144. | ^~~~~~~
  1145. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1146. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1147. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1148. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1149. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1150. | ^~~~~~~~
  1151. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:440:5: note: in expansion of macro ‘LOG’
  1152. 440 | LOG("02 Hello World to default output, which is \"%s\" ( Yaaay, arguments! )!\n", LOG_STRINGIZE(LOG_TARGET));
  1153. | ^~~
  1154. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1155. 355 | extern int fprintf (FILE *__restrict __stream,
  1156. | ^~~~~~~
  1157. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1158. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1159. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1160. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  1161. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  1162. | ^~~~~~~~~~~~
  1163. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:441:5: note: in expansion of macro ‘LOG_TEE’
  1164. 441 | LOG_TEE("03 Hello World to **both** default output and " LOG_TEE_TARGET_STRING "!\n");
  1165. | ^~~~~~~
  1166. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1167. 355 | extern int fprintf (FILE *__restrict __stream,
  1168. | ^~~~~~~
  1169. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1170. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1171. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1172. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1173. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1174. | ^~~~~~~~
  1175. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:443:5: note: in expansion of macro ‘LOG’
  1176. 443 | LOG("04 Hello World to stderr!\n");
  1177. | ^~~
  1178. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1179. 355 | extern int fprintf (FILE *__restrict __stream,
  1180. | ^~~~~~~
  1181. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1182. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1183. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1184. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  1185. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  1186. | ^~~~~~~~~~~~
  1187. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:444:5: note: in expansion of macro ‘LOG_TEE’
  1188. 444 | LOG_TEE("05 Hello World TEE with double printing to stderr prevented!\n");
  1189. | ^~~~~~~
  1190. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1191. 355 | extern int fprintf (FILE *__restrict __stream,
  1192. | ^~~~~~~
  1193. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1194. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1195. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1196. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1197. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1198. | ^~~~~~~~
  1199. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:446:5: note: in expansion of macro ‘LOG’
  1200. 446 | LOG("06 Hello World to default log file!\n");
  1201. | ^~~
  1202. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1203. 355 | extern int fprintf (FILE *__restrict __stream,
  1204. | ^~~~~~~
  1205. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1206. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1207. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1208. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1209. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1210. | ^~~~~~~~
  1211. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:448:5: note: in expansion of macro ‘LOG’
  1212. 448 | LOG("07 Hello World to stdout!\n");
  1213. | ^~~
  1214. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1215. 355 | extern int fprintf (FILE *__restrict __stream,
  1216. | ^~~~~~~
  1217. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1218. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1219. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1220. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1221. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1222. | ^~~~~~~~
  1223. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:450:5: note: in expansion of macro ‘LOG’
  1224. 450 | LOG("08 Hello World to default log file again!\n");
  1225. | ^~~
  1226. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1227. 355 | extern int fprintf (FILE *__restrict __stream,
  1228. | ^~~~~~~
  1229. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1230. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1231. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1232. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1233. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1234. | ^~~~~~~~
  1235. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:452:5: note: in expansion of macro ‘LOG’
  1236. 452 | LOG("09 Hello World _1_ into the void!\n");
  1237. | ^~~
  1238. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1239. 355 | extern int fprintf (FILE *__restrict __stream,
  1240. | ^~~~~~~
  1241. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1242. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1243. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1244. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1245. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1246. | ^~~~~~~~
  1247. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:454:5: note: in expansion of macro ‘LOG’
  1248. 454 | LOG("10 Hello World back from the void ( you should not see _1_ in the log or the output )!\n");
  1249. | ^~~
  1250. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1251. 355 | extern int fprintf (FILE *__restrict __stream,
  1252. | ^~~~~~~
  1253. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1254. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1255. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1256. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1257. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1258. | ^~~~~~~~
  1259. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:457:5: note: in expansion of macro ‘LOG’
  1260. 457 | LOG("11 Hello World _2_ to nobody, new target was selected but logs are still disabled!\n");
  1261. | ^~~
  1262. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1263. 355 | extern int fprintf (FILE *__restrict __stream,
  1264. | ^~~~~~~
  1265. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1266. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1267. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1268. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1269. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1270. | ^~~~~~~~
  1271. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:459:5: note: in expansion of macro ‘LOG’
  1272. 459 | LOG("12 Hello World this time in a new file ( you should not see _2_ in the log or the output )?\n");
  1273. | ^~~
  1274. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1275. 355 | extern int fprintf (FILE *__restrict __stream,
  1276. | ^~~~~~~
  1277. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1278. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1279. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1280. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1281. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1282. | ^~~~~~~~
  1283. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:461:5: note: in expansion of macro ‘LOG’
  1284. 461 | LOG("13 Hello World this time in yet new file?\n");
  1285. | ^~~
  1286. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1287. 355 | extern int fprintf (FILE *__restrict __stream,
  1288. | ^~~~~~~
  1289. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1290. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1291. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1292. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1293. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1294. | ^~~~~~~~
  1295. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:463:5: note: in expansion of macro ‘LOG’
  1296. 463 | LOG("14 Hello World in log with generated filename!\n");
  1297. | ^~~
  1298. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1299. 355 | extern int fprintf (FILE *__restrict __stream,
  1300. | ^~~~~~~
  1301. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_dump_cmdline_impl(int, char**)’:
  1302. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1303. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1304. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1305. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:309:24: note: in expansion of macro ‘LOG_IMPL’
  1306. 309 | #define LOGLN(...) LOG_IMPL(__VA_ARGS__, "\n")
  1307. | ^~~~~~~~
  1308. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:545:5: note: in expansion of macro ‘LOGLN’
  1309. 545 | LOGLN("Cmd:%s", buf.str().c_str());
  1310. | ^~~~~
  1311. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1312. 355 | extern int fprintf (FILE *__restrict __stream,
  1313. | ^~~~~~~
  1314. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.cpp: In function ‘llama_token llama_sampling_sample(llama_sampling_context*, llama_context*, llama_context*, int)’:
  1315. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1316. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1317. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1318. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1319. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1320. | ^~~~~~~~
  1321. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/sampling.cpp:204:13: note: in expansion of macro ‘LOG’
  1322. 204 | LOG("sampled token: %5d: '%s'\n", id, llama_token_to_piece(ctx_main, id).c_str());
  1323. | ^~~
  1324. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1325. 355 | extern int fprintf (FILE *__restrict __stream,
  1326. | ^~~~~~~
  1327. [ 64%] Building CXX object common/CMakeFiles/common.dir/train.cpp.o
  1328. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/common.h:10,
  1329. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/train.cpp:2:
  1330. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_test()’:
  1331. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1332. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1333. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1334. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1335. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1336. | ^~~~~~~~
  1337. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:438:5: note: in expansion of macro ‘LOG’
  1338. 438 | LOG("01 Hello World to nobody, because logs are disabled!\n");
  1339. | ^~~
  1340. In file included from /usr/include/c++/13.2.1/cstdio:42,
  1341. from /usr/include/c++/13.2.1/ext/string_conversions.h:45,
  1342. from /usr/include/c++/13.2.1/bits/basic_string.h:4097,
  1343. from /usr/include/c++/13.2.1/string:54,
  1344. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/train.h:5,
  1345. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/train.cpp:1:
  1346. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1347. 355 | extern int fprintf (FILE *__restrict __stream,
  1348. | ^~~~~~~
  1349. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1350. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1351. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1352. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1353. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1354. | ^~~~~~~~
  1355. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:440:5: note: in expansion of macro ‘LOG’
  1356. 440 | LOG("02 Hello World to default output, which is \"%s\" ( Yaaay, arguments! )!\n", LOG_STRINGIZE(LOG_TARGET));
  1357. | ^~~
  1358. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1359. 355 | extern int fprintf (FILE *__restrict __stream,
  1360. | ^~~~~~~
  1361. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1362. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1363. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1364. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  1365. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  1366. | ^~~~~~~~~~~~
  1367. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:441:5: note: in expansion of macro ‘LOG_TEE’
  1368. 441 | LOG_TEE("03 Hello World to **both** default output and " LOG_TEE_TARGET_STRING "!\n");
  1369. | ^~~~~~~
  1370. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1371. 355 | extern int fprintf (FILE *__restrict __stream,
  1372. | ^~~~~~~
  1373. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1374. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1375. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1376. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1377. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1378. | ^~~~~~~~
  1379. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:443:5: note: in expansion of macro ‘LOG’
  1380. 443 | LOG("04 Hello World to stderr!\n");
  1381. | ^~~
  1382. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1383. 355 | extern int fprintf (FILE *__restrict __stream,
  1384. | ^~~~~~~
  1385. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1386. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1387. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1388. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  1389. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  1390. | ^~~~~~~~~~~~
  1391. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:444:5: note: in expansion of macro ‘LOG_TEE’
  1392. 444 | LOG_TEE("05 Hello World TEE with double printing to stderr prevented!\n");
  1393. | ^~~~~~~
  1394. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1395. 355 | extern int fprintf (FILE *__restrict __stream,
  1396. | ^~~~~~~
  1397. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1398. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1399. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1400. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1401. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1402. | ^~~~~~~~
  1403. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:446:5: note: in expansion of macro ‘LOG’
  1404. 446 | LOG("06 Hello World to default log file!\n");
  1405. | ^~~
  1406. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1407. 355 | extern int fprintf (FILE *__restrict __stream,
  1408. | ^~~~~~~
  1409. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1410. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1411. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1412. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1413. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1414. | ^~~~~~~~
  1415. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:448:5: note: in expansion of macro ‘LOG’
  1416. 448 | LOG("07 Hello World to stdout!\n");
  1417. | ^~~
  1418. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1419. 355 | extern int fprintf (FILE *__restrict __stream,
  1420. | ^~~~~~~
  1421. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1422. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1423. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1424. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1425. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1426. | ^~~~~~~~
  1427. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:450:5: note: in expansion of macro ‘LOG’
  1428. 450 | LOG("08 Hello World to default log file again!\n");
  1429. | ^~~
  1430. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1431. 355 | extern int fprintf (FILE *__restrict __stream,
  1432. | ^~~~~~~
  1433. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1434. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1435. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1436. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1437. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1438. | ^~~~~~~~
  1439. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:452:5: note: in expansion of macro ‘LOG’
  1440. 452 | LOG("09 Hello World _1_ into the void!\n");
  1441. | ^~~
  1442. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1443. 355 | extern int fprintf (FILE *__restrict __stream,
  1444. | ^~~~~~~
  1445. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1446. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1447. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1448. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1449. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1450. | ^~~~~~~~
  1451. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:454:5: note: in expansion of macro ‘LOG’
  1452. 454 | LOG("10 Hello World back from the void ( you should not see _1_ in the log or the output )!\n");
  1453. | ^~~
  1454. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1455. 355 | extern int fprintf (FILE *__restrict __stream,
  1456. | ^~~~~~~
  1457. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1458. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1459. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1460. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1461. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1462. | ^~~~~~~~
  1463. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:457:5: note: in expansion of macro ‘LOG’
  1464. 457 | LOG("11 Hello World _2_ to nobody, new target was selected but logs are still disabled!\n");
  1465. | ^~~
  1466. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1467. 355 | extern int fprintf (FILE *__restrict __stream,
  1468. | ^~~~~~~
  1469. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1470. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1471. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1472. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1473. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1474. | ^~~~~~~~
  1475. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:459:5: note: in expansion of macro ‘LOG’
  1476. 459 | LOG("12 Hello World this time in a new file ( you should not see _2_ in the log or the output )?\n");
  1477. | ^~~
  1478. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1479. 355 | extern int fprintf (FILE *__restrict __stream,
  1480. | ^~~~~~~
  1481. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1482. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1483. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1484. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1485. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1486. | ^~~~~~~~
  1487. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:461:5: note: in expansion of macro ‘LOG’
  1488. 461 | LOG("13 Hello World this time in yet new file?\n");
  1489. | ^~~
  1490. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1491. 355 | extern int fprintf (FILE *__restrict __stream,
  1492. | ^~~~~~~
  1493. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1494. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1495. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1496. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1497. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1498. | ^~~~~~~~
  1499. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:463:5: note: in expansion of macro ‘LOG’
  1500. 463 | LOG("14 Hello World in log with generated filename!\n");
  1501. | ^~~
  1502. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1503. 355 | extern int fprintf (FILE *__restrict __stream,
  1504. | ^~~~~~~
  1505. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h: In function ‘void log_dump_cmdline_impl(int, char**)’:
  1506. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1507. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1508. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1509. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:309:24: note: in expansion of macro ‘LOG_IMPL’
  1510. 309 | #define LOGLN(...) LOG_IMPL(__VA_ARGS__, "\n")
  1511. | ^~~~~~~~
  1512. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/log.h:545:5: note: in expansion of macro ‘LOGLN’
  1513. 545 | LOGLN("Cmd:%s", buf.str().c_str());
  1514. | ^~~~~
  1515. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1516. 355 | extern int fprintf (FILE *__restrict __stream,
  1517. | ^~~~~~~
  1518. [ 78%] Built target common
  1519. [ 85%] Generating build details from Git
  1520. -- Found Git: /usr/bin/git (found version "2.42.0")
  1521. [ 85%] Built target BUILD_INFO
  1522. [ 92%] Building CXX object examples/server/CMakeFiles/server.dir/server.cpp.o
  1523. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./common.h:10,
  1524. from /home/stephen/src/ollama/llm/llama.cpp/gguf/examples/server/server.cpp:1:
  1525. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h: In function ‘void log_test()’:
  1526. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1527. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1528. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1529. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1530. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1531. | ^~~~~~~~
  1532. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:438:5: note: in expansion of macro ‘LOG’
  1533. 438 | LOG("01 Hello World to nobody, because logs are disabled!\n");
  1534. | ^~~
  1535. In file included from /home/stephen/src/ollama/llm/llama.cpp/gguf/./llama.h:13,
  1536. from /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./common.h:5:
  1537. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1538. 355 | extern int fprintf (FILE *__restrict __stream,
  1539. | ^~~~~~~
  1540. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1541. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1542. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1543. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1544. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1545. | ^~~~~~~~
  1546. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:440:5: note: in expansion of macro ‘LOG’
  1547. 440 | LOG("02 Hello World to default output, which is \"%s\" ( Yaaay, arguments! )!\n", LOG_STRINGIZE(LOG_TARGET));
  1548. | ^~~
  1549. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1550. 355 | extern int fprintf (FILE *__restrict __stream,
  1551. | ^~~~~~~
  1552. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1553. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1554. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1555. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  1556. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  1557. | ^~~~~~~~~~~~
  1558. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:441:5: note: in expansion of macro ‘LOG_TEE’
  1559. 441 | LOG_TEE("03 Hello World to **both** default output and " LOG_TEE_TARGET_STRING "!\n");
  1560. | ^~~~~~~
  1561. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1562. 355 | extern int fprintf (FILE *__restrict __stream,
  1563. | ^~~~~~~
  1564. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1565. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1566. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1567. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1568. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1569. | ^~~~~~~~
  1570. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:443:5: note: in expansion of macro ‘LOG’
  1571. 443 | LOG("04 Hello World to stderr!\n");
  1572. | ^~~
  1573. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1574. 355 | extern int fprintf (FILE *__restrict __stream,
  1575. | ^~~~~~~
  1576. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:255:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1577. 255 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1578. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1579. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:302:26: note: in expansion of macro ‘LOG_TEE_IMPL’
  1580. 302 | #define LOG_TEE(...) LOG_TEE_IMPL(__VA_ARGS__, "")
  1581. | ^~~~~~~~~~~~
  1582. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:444:5: note: in expansion of macro ‘LOG_TEE’
  1583. 444 | LOG_TEE("05 Hello World TEE with double printing to stderr prevented!\n");
  1584. | ^~~~~~~
  1585. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1586. 355 | extern int fprintf (FILE *__restrict __stream,
  1587. | ^~~~~~~
  1588. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1589. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1590. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1591. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1592. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1593. | ^~~~~~~~
  1594. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:446:5: note: in expansion of macro ‘LOG’
  1595. 446 | LOG("06 Hello World to default log file!\n");
  1596. | ^~~
  1597. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1598. 355 | extern int fprintf (FILE *__restrict __stream,
  1599. | ^~~~~~~
  1600. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1601. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1602. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1603. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1604. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1605. | ^~~~~~~~
  1606. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:448:5: note: in expansion of macro ‘LOG’
  1607. 448 | LOG("07 Hello World to stdout!\n");
  1608. | ^~~
  1609. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1610. 355 | extern int fprintf (FILE *__restrict __stream,
  1611. | ^~~~~~~
  1612. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1613. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1614. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1615. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1616. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1617. | ^~~~~~~~
  1618. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:450:5: note: in expansion of macro ‘LOG’
  1619. 450 | LOG("08 Hello World to default log file again!\n");
  1620. | ^~~
  1621. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1622. 355 | extern int fprintf (FILE *__restrict __stream,
  1623. | ^~~~~~~
  1624. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1625. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1626. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1627. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1628. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1629. | ^~~~~~~~
  1630. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:452:5: note: in expansion of macro ‘LOG’
  1631. 452 | LOG("09 Hello World _1_ into the void!\n");
  1632. | ^~~
  1633. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1634. 355 | extern int fprintf (FILE *__restrict __stream,
  1635. | ^~~~~~~
  1636. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1637. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1638. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1639. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1640. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1641. | ^~~~~~~~
  1642. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:454:5: note: in expansion of macro ‘LOG’
  1643. 454 | LOG("10 Hello World back from the void ( you should not see _1_ in the log or the output )!\n");
  1644. | ^~~
  1645. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1646. 355 | extern int fprintf (FILE *__restrict __stream,
  1647. | ^~~~~~~
  1648. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1649. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1650. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1651. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1652. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1653. | ^~~~~~~~
  1654. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:457:5: note: in expansion of macro ‘LOG’
  1655. 457 | LOG("11 Hello World _2_ to nobody, new target was selected but logs are still disabled!\n");
  1656. | ^~~
  1657. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1658. 355 | extern int fprintf (FILE *__restrict __stream,
  1659. | ^~~~~~~
  1660. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1661. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1662. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1663. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1664. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1665. | ^~~~~~~~
  1666. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:459:5: note: in expansion of macro ‘LOG’
  1667. 459 | LOG("12 Hello World this time in a new file ( you should not see _2_ in the log or the output )?\n");
  1668. | ^~~
  1669. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1670. 355 | extern int fprintf (FILE *__restrict __stream,
  1671. | ^~~~~~~
  1672. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1673. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1674. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1675. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1676. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1677. | ^~~~~~~~
  1678. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:461:5: note: in expansion of macro ‘LOG’
  1679. 461 | LOG("13 Hello World this time in yet new file?\n");
  1680. | ^~~
  1681. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1682. 355 | extern int fprintf (FILE *__restrict __stream,
  1683. | ^~~~~~~
  1684. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1685. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1686. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1687. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:288:22: note: in expansion of macro ‘LOG_IMPL’
  1688. 288 | #define LOG(...) LOG_IMPL(__VA_ARGS__, "")
  1689. | ^~~~~~~~
  1690. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:463:5: note: in expansion of macro ‘LOG’
  1691. 463 | LOG("14 Hello World in log with generated filename!\n");
  1692. | ^~~
  1693. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1694. 355 | extern int fprintf (FILE *__restrict __stream,
  1695. | ^~~~~~~
  1696. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h: In function ‘void log_dump_cmdline_impl(int, char**)’:
  1697. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:232:20: warning: argument 1 null where non-null expected [-Wnonnull]
  1698. 232 | fprintf(LOG_TARGET, LOG_TIMESTAMP_FMT LOG_FLF_FMT str "%s" LOG_TIMESTAMP_VAL LOG_FLF_VAL, __VA_ARGS__); \
  1699. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1700. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:309:24: note: in expansion of macro ‘LOG_IMPL’
  1701. 309 | #define LOGLN(...) LOG_IMPL(__VA_ARGS__, "\n")
  1702. | ^~~~~~~~
  1703. /home/stephen/src/ollama/llm/llama.cpp/gguf/common/./log.h:545:5: note: in expansion of macro ‘LOGLN’
  1704. 545 | LOGLN("Cmd:%s", buf.str().c_str());
  1705. | ^~~~~
  1706. /usr/include/stdio.h:355:12: note: in a call to function ‘int fprintf(FILE*, const char*, ...)’ declared ‘nonnull’
  1707. 355 | extern int fprintf (FILE *__restrict __stream,
  1708. | ^~~~~~~
  1709. [100%] Linking CXX executable ../../bin/server
  1710. [100%] Built target server
  1711.  
Advertisement
Add Comment
Please, Sign In to add comment