dtorkin

Untitled

May 8th, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.39 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ make
  2. Compiling svm/svm_main.c...
  3. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_main.o svm/svm_main.c
  4. Compiling svm/svm_handlers.c...
  5. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_handlers.o svm/svm_handlers.c
  6. Compiling svm/svm_timers.c...
  7. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_timers.o svm/svm_timers.c
  8. Compiling svm/svm_receiver.c...
  9. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_receiver.o svm/svm_receiver.c
  10. Compiling svm/svm_processor.c...
  11. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_processor.o svm/svm_processor.c
  12. Compiling svm/svm_sender.c...
  13. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_sender.o svm/svm_sender.c
  14. Compiling protocol/message_utils.c...
  15. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_utils.o protocol/message_utils.c
  16. Compiling protocol/message_builder.c...
  17. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_builder.o protocol/message_builder.c
  18. protocol/message_builder.c: In function ‘create_init_channel_message’:
  19. protocol/message_builder.c:45:52: warning: unused parameter ‘uvm_address’ [-Wunused-parameter]
  20. 45 | Message create_init_channel_message(LogicalAddress uvm_address, LogicalAddress svm_address, uint16_t message_num) {
  21. | ~~~~~~~~~~~~~~~^~~~~~~~~~~
  22. Compiling io/io_common.c...
  23. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_common.o io/io_common.c
  24. Compiling io/io_ethernet.c...
  25. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_ethernet.o io/io_ethernet.c
  26. Compiling io/io_serial.c...
  27. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_serial.o io/io_serial.c
  28. Compiling config/config.c...
  29. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/config.o config/config.c
  30. config/config.c: In function ‘load_config’:
  31. config/config.c:163:80: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  32. 163 | onfig->svm_ethernet[i].port == 0 || config->svm_ethernet[i].port > 65535) {
  33. | ^
  34.  
  35. Compiling config/ini.c...
  36. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/ini.o config/ini.c
  37. Compiling utils/ts_queue.c...
  38. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queue.o utils/ts_queue.c
  39. Compiling utils/ts_queue_req.c...
  40. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queue_req.o utils/ts_queue_req.c
  41. Compiling utils/ts_queued_msg_queue.c...
  42. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queued_msg_queue.o utils/ts_queued_msg_queue.c
  43. Compiling utils/ts_uvm_resp_queue.c...
  44. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_uvm_resp_queue.o utils/ts_uvm_resp_queue.c
  45. Linking svm_app...
  46. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread svm/svm_main.o svm/svm_handlers.o svm/svm_timers.o svm/svm_receiver.o svm/svm_processor.o svm/svm_sender.o protocol/message_utils.o protocol/message_builder.o io/io_common.o io/io_ethernet.o io/io_serial.o config/config.o config/ini.o utils/ts_queue.o utils/ts_queue_req.o utils/ts_queued_msg_queue.o utils/ts_uvm_resp_queue.o -o svm_app -pthread -lrt
  47. SVM application (svm_app) built successfully.
  48. Compiling uvm/uvm_main.c...
  49. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_main.o uvm/uvm_main.c
  50. uvm/uvm_main.c: In function ‘main’:
  51. uvm/uvm_main.c:375:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  52. 375 | if (pthread_create(&sender_tid, NULL, uvm_sender_thread_func, NULL) != 0)
  53. | ^~
  54. uvm/uvm_main.c:377:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  55. 377 | goto cleanup_connections;
  56. | ^~~~
  57. uvm/uvm_main.c:377:9: error: label ‘cleanup_connections’ used but not defined
  58. uvm/uvm_main.c:369:9: error: label ‘cleanup_queues’ used but not defined
  59. 369 | goto cleanup_queues;
  60. | ^~~~
  61. uvm/uvm_main.c: At top level:
  62. uvm/uvm_main.c:381:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
  63. 381 | pthread_mutex_lock(&uvm_links_mutex);
  64. | ^
  65. uvm/uvm_main.c:382:5: error: expected identifier or ‘(’ before ‘for’
  66. 382 | for (int i = 0; i < num_svms_in_config; ++i) {
  67. | ^~~
  68. uvm/uvm_main.c:382:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
  69. 382 | for (int i = 0; i < num_svms_in_config; ++i) {
  70. | ^
  71. uvm/uvm_main.c:382:45: error: expected identifier or ‘(’ before ‘++’ token
  72. 382 | for (int i = 0; i < num_svms_in_config; ++i) {
  73. | ^~
  74. uvm/uvm_main.c:391:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  75. 391 | pthread_mutex_unlock(&uvm_links_mutex);
  76. | ^
  77. uvm/uvm_main.c:394:5: error: expected identifier or ‘(’ before ‘if’
  78. 394 | if (pthread_create(&gui_server_tid, NULL, gui_server_thread, NULL) != 0) {
  79. | ^~
  80. uvm/uvm_main.c:397:12: error: expected declaration specifiers or ‘...’ before string constant
  81. 397 | printf("UVM: Потоки запущены. Режим работы: %d\n", mode);
  82. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  83. uvm/uvm_main.c:397:56: error: unknown type name ‘mode’; did you mean ‘mode_t’?
  84. 397 | printf("UVM: Потоки запущены. Режим работы: %d\n", mode);
  85. | ^~~~
  86. | mode_t
  87. uvm/uvm_main.c:401:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
  88. 401 | request.type = UVM_REQ_SEND_MESSAGE;
  89. | ^
  90. uvm/uvm_main.c:404:12: error: expected declaration specifiers or ‘...’ before string constant
  91. 404 | printf("\n--- Подготовка к сеансу наблюдения ---\n");
  92. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  93. uvm/uvm_main.c:405:5: error: expected identifier or ‘(’ before ‘for’
  94. 405 | for (int i = 0; i < num_svms_in_config; ++i) {
  95. | ^~~
  96. uvm/uvm_main.c:405:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
  97. 405 | for (int i = 0; i < num_svms_in_config; ++i) {
  98. | ^
  99. uvm/uvm_main.c:405:45: error: expected identifier or ‘(’ before ‘++’ token
  100. 405 | for (int i = 0; i < num_svms_in_config; ++i) {
  101. | ^~
  102. uvm/uvm_main.c:443:5: warning: data definition has no type or storage class
  103. 443 | wait_for_outstanding_sends();
  104. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  105. uvm/uvm_main.c:443:5: warning: type defaults to ‘int’ in declaration of ‘wait_for_outstanding_sends’ [-Wimplicit-int]
  106. uvm/uvm_main.c:443:5: error: conflicting types for ‘wait_for_outstanding_sends’; have ‘int()’
  107. uvm/uvm_main.c:108:6: note: previous definition of ‘wait_for_outstanding_sends’ with type ‘void(void)’
  108. 108 | void wait_for_outstanding_sends(void) {
  109. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  110. uvm/uvm_main.c:445:12: error: expected declaration specifiers or ‘...’ before string constant
  111. 445 | printf("\n--- Подготовка к сеансу съемки ---\n");
  112. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  113. uvm/uvm_main.c:446:12: error: expected declaration specifiers or ‘...’ before string constant
  114. 446 | printf("DEBUG UVM: Mode before sending parameters: %d\n", mode); // <-- ЕЩЕ ОДНА ПРОВЕРКА
  115. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  116. uvm/uvm_main.c:446:63: error: unknown type name ‘mode’; did you mean ‘mode_t’?
  117. 446 | printf("DEBUG UVM: Mode before sending parameters: %d\n", mode); // <-- ЕЩЕ ОДНА ПРОВЕРКА
  118. | ^~~~
  119. | mode_t
  120. uvm/uvm_main.c:447:6: error: expected identifier or ‘(’ before ‘for’
  121. 447 | for (int i = 0; i < num_svms_in_config; ++i) {
  122. | ^~~
  123. uvm/uvm_main.c:447:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
  124. 447 | for (int i = 0; i < num_svms_in_config; ++i) {
  125. | ^
  126. uvm/uvm_main.c:447:46: error: expected identifier or ‘(’ before ‘++’ token
  127. 447 | for (int i = 0; i < num_svms_in_config; ++i) {
  128. | ^~
  129. uvm/uvm_main.c:524:5: warning: data definition has no type or storage class
  130. 524 | wait_for_outstanding_sends();
  131. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  132. uvm/uvm_main.c:524:5: warning: type defaults to ‘int’ in declaration of ‘wait_for_outstanding_sends’ [-Wimplicit-int]
  133. uvm/uvm_main.c:524:5: error: conflicting types for ‘wait_for_outstanding_sends’; have ‘int()’
  134. uvm/uvm_main.c:108:6: note: previous definition of ‘wait_for_outstanding_sends’ with type ‘void(void)’
  135. 108 | void wait_for_outstanding_sends(void) {
  136. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  137. uvm/uvm_main.c:525:12: error: expected declaration specifiers or ‘...’ before string constant
  138. 525 | printf("UVM: Все сообщения подготовки к съемке отправлены.\n");
  139. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  140. uvm/uvm_main.c:554:12: error: expected declaration specifiers or ‘...’ before string constant
  141. 554 | printf("UVM: Ожидание асинхронных сообщений от SVM (или Ctrl+C для завершения)...\n");
  142. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  143. uvm/uvm_main.c:556:5: error: expected identifier or ‘(’ before ‘while’
  144. 556 | while (uvm_keep_running) {
  145. | ^~~~~
  146. uvm/uvm_main.c:760:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
  147. 760 | cleanup_connections:
  148. | ^
  149. uvm/uvm_main.c:763:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
  150. 763 | pthread_mutex_lock(&uvm_links_mutex);
  151. | ^
  152. uvm/uvm_main.c:764:5: error: expected identifier or ‘(’ before ‘for’
  153. 764 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) { // Проверяем все слоты
  154. | ^~~
  155. uvm/uvm_main.c:764:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
  156. 764 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) { // Проверяем все слоты
  157. | ^
  158. uvm/uvm_main.c:764:44: error: expected identifier or ‘(’ before ‘++’ token
  159. 764 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) { // Проверяем все слоты
  160. | ^~
  161. uvm/uvm_main.c:778:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  162. 778 | pthread_mutex_unlock(&uvm_links_mutex);
  163. | ^
  164. uvm/uvm_main.c:780:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
  165. 780 | cleanup_queues:
  166. | ^
  167. uvm/uvm_main.c:783:5: error: expected identifier or ‘(’ before ‘if’
  168. 783 | if (uvm_incoming_response_queue) uvq_destroy(uvm_incoming_response_queue);
  169. | ^~
  170. uvm/uvm_main.c:786:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
  171. 786 | pthread_mutex_destroy(&uvm_links_mutex);
  172. | ^
  173. uvm/uvm_main.c:787:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
  174. 787 | pthread_mutex_destroy(&uvm_send_counter_mutex);
  175. | ^
  176. uvm/uvm_main.c:788:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  177. 788 | pthread_cond_destroy(&uvm_all_sent_cond);
  178. | ^
  179. uvm/uvm_main.c:789:31: error: expected declaration specifiers or ‘...’ before ‘&’ token
  180. 789 | pthread_mutex_destroy(&gui_socket_mutex); // <-- Уничтожаем мьютекс GUI
  181. | ^
  182. uvm/uvm_main.c:791:12: error: expected declaration specifiers or ‘...’ before string constant
  183. 791 | printf("UVM: Очистка завершена.\n");
  184. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  185. uvm/uvm_main.c:792:5: error: expected identifier or ‘(’ before ‘return’
  186. 792 | return 0;
  187. | ^~~~~~
  188. uvm/uvm_main.c:793:1: error: expected identifier or ‘(’ before ‘}’ token
  189. 793 | }
  190. | ^
  191. make: *** [Makefile:43: uvm/uvm_main.o] Ошибка 1
  192.  
Advertisement
Add Comment
Please, Sign In to add comment