dtorkin

Untitled

May 20th, 2025 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.22 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ make
  2. Compiling uvm/uvm_main.c...
  3. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_main.o uvm/uvm_main.c
  4. uvm/uvm_main.c: In function ‘main’:
  5. uvm/uvm_main.c:444:21: error: ‘current_link_status_on_recv_local’ undeclared (first use in this function); did you mean ‘current_link_status_on_recv_local_local’?
  6. 444 | if(current_link_status_on_recv_local == UVM_LINK_ACTIVE || current_link_status_on_recv_local == UVM_LINK_WARNING) {
  7. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8. | current_link_status_on_recv_local_local
  9. uvm/uvm_main.c:444:21: note: each undeclared identifier is reported only once for each function it appears in
  10. uvm/uvm_main.c:463:42: error: ‘event_sent_from_handler’ undeclared (first use in this function)
  11. 463 | event_sent_from_handler = true;
  12. | ^~~~~~~~~~~~~~~~~~~~~~~
  13. uvm/uvm_main.c:426:14: warning: variable ‘bcb_was_in_message’ set but not used [-Wunused-but-set-variable]
  14. 426 | bool bcb_was_in_message = false;
  15. | ^~~~~~~~~~~~~~~~~~
  16. uvm/uvm_main.c:423:14: warning: variable ‘activity_in_this_iteration’ set but not used [-Wunused-but-set-variable]
  17. 423 | bool activity_in_this_iteration = false;
  18. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  19. uvm/uvm_main.c:548:11: error: ‘else’ without a previous ‘if’
  20. 548 | } else { // Очередь пуста или закрыта
  21. | ^~~~
  22. uvm/uvm_main.c:549:36: error: break statement not within loop or switch
  23. 549 | if (!uvm_keep_running) break;
  24. | ^~~~~
  25. uvm/uvm_main.c:578:44: error: ‘activity_in_this_iteration’ undeclared (first use in this function)
  26. 578 | msg_counters[i]++; activity_in_this_iteration = true;
  27. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  28. uvm/uvm_main.c:327:5: error: label ‘cleanup_connections’ used but not defined
  29. 327 | if (pthread_create(&sender_tid, NULL, uvm_sender_thread_func, NULL) != 0) { /*...*/ goto cleanup_connections; }
  30. | ^~
  31. uvm/uvm_main.c:322:5: error: label ‘cleanup_queues’ used but not defined
  32. 322 | if (active_svm_count == 0) { /*...*/ goto cleanup_queues; }
  33. | ^~
  34. uvm/uvm_main.c:277:5: error: label ‘cleanup_mutexes’ used but not defined
  35. 277 | if (num_svms_to_run == 0) { fprintf(stderr, "UVM: No SVM configurations found. Exiting.\n"); goto cleanup_mutexes; }
  36. | ^~
  37. uvm/uvm_main.c: At top level:
  38. uvm/uvm_main.c:644:12: error: expected declaration specifiers or ‘...’ before string constant
  39. 644 | printf("UVM: Shutdown initiated by main loop exit or signal...\n");
  40. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. uvm/uvm_main.c:647:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
  42. 647 | cleanup_connections: // Метка для goto, если не все потоки стартанули
  43. | ^
  44. uvm/uvm_main.c:650:5: error: expected identifier or ‘(’ before ‘if’
  45. 650 | if (uvm_outgoing_request_queue) {
  46. | ^~
  47. uvm/uvm_main.c:655:5: error: expected identifier or ‘(’ before ‘if’
  48. 655 | if (uvm_incoming_response_queue) uvq_shutdown(uvm_incoming_response_queue);
  49. | ^~
  50. uvm/uvm_main.c:657:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
  51. 657 | pthread_mutex_lock(&uvm_send_counter_mutex);
  52. | ^
  53. uvm/uvm_main.c:658:5: warning: data definition has no type or storage class
  54. 658 | uvm_outstanding_sends = 0;
  55. | ^~~~~~~~~~~~~~~~~~~~~
  56. uvm/uvm_main.c:658:5: warning: type defaults to ‘int’ in declaration of ‘uvm_outstanding_sends’ [-Wimplicit-int]
  57. uvm/uvm_main.c:658:5: error: conflicting type qualifiers for ‘uvm_outstanding_sends’
  58. uvm/uvm_main.c:36:14: note: previous definition of ‘uvm_outstanding_sends’ with type ‘int’
  59. 36 | volatile int uvm_outstanding_sends = 0;
  60. | ^~~~~~~~~~~~~~~~~~~~~
  61. uvm/uvm_main.c:659:28: error: expected declaration specifiers or ‘...’ before ‘&’ token
  62. 659 | pthread_cond_broadcast(&uvm_all_sent_cond);
  63. | ^
  64. uvm/uvm_main.c:660:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  65. 660 | pthread_mutex_unlock(&uvm_send_counter_mutex);
  66. | ^
  67. uvm/uvm_main.c:662:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
  68. 662 | pthread_mutex_lock(&gui_socket_mutex);
  69. | ^
  70. uvm/uvm_main.c:663:5: error: expected identifier or ‘(’ before ‘if’
  71. 663 | if (gui_listen_fd >= 0) { int fd=gui_listen_fd; gui_listen_fd=-1; shutdown(fd, SHUT_RDWR); close(fd); }
  72. | ^~
  73. uvm/uvm_main.c:664:5: error: expected identifier or ‘(’ before ‘if’
  74. 664 | if (gui_client_fd >= 0) { int fd=gui_client_fd; gui_client_fd=-1; shutdown(fd, SHUT_RDWR); close(fd); }
  75. | ^~
  76. uvm/uvm_main.c:665:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  77. 665 | pthread_mutex_unlock(&gui_socket_mutex);
  78. | ^
  79. uvm/uvm_main.c:667:12: error: expected declaration specifiers or ‘...’ before string constant
  80. 667 | printf("UVM: Closing SVM connections...\n");
  81. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  82. uvm/uvm_main.c:668:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
  83. 668 | pthread_mutex_lock(&uvm_links_mutex);
  84. | ^
  85. uvm/uvm_main.c:669:5: error: expected identifier or ‘(’ before ‘for’
  86. 669 | for(int i=0; i<num_svms_to_run; ++i) {
  87. | ^~~
  88. uvm/uvm_main.c:669:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
  89. 669 | for(int i=0; i<num_svms_to_run; ++i) {
  90. | ^
  91. uvm/uvm_main.c:669:37: error: expected identifier or ‘(’ before ‘++’ token
  92. 669 | for(int i=0; i<num_svms_to_run; ++i) {
  93. | ^~
  94. uvm/uvm_main.c:674:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  95. 674 | pthread_mutex_unlock(&uvm_links_mutex);
  96. | ^
  97. uvm/uvm_main.c:677:12: error: expected declaration specifiers or ‘...’ before string constant
  98. 677 | printf("UVM: Joining threads...\n");
  99. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  100. uvm/uvm_main.c:678:5: error: expected identifier or ‘(’ before ‘if’
  101. 678 | if (sender_tid != 0) pthread_join(sender_tid, NULL);
  102. | ^~
  103. uvm/uvm_main.c:679:12: error: expected declaration specifiers or ‘...’ before string constant
  104. 679 | printf("UVM: Sender thread joined.\n");
  105. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  106. uvm/uvm_main.c:680:5: error: expected identifier or ‘(’ before ‘for’
  107. 680 | for (int i = 0; i < num_svms_to_run; ++i) {
  108. | ^~~
  109. uvm/uvm_main.c:680:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
  110. 680 | for (int i = 0; i < num_svms_to_run; ++i) {
  111. | ^
  112. uvm/uvm_main.c:680:42: error: expected identifier or ‘(’ before ‘++’ token
  113. 680 | for (int i = 0; i < num_svms_to_run; ++i) {
  114. | ^~
  115. uvm/uvm_main.c:685:12: error: expected declaration specifiers or ‘...’ before string constant
  116. 685 | printf("UVM: All receiver threads joined.\n");
  117. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  118. uvm/uvm_main.c:686:5: error: expected identifier or ‘(’ before ‘if’
  119. 686 | if (gui_server_tid != 0) pthread_join(gui_server_tid, NULL);
  120. | ^~
  121. uvm/uvm_main.c:687:12: error: expected declaration specifiers or ‘...’ before string constant
  122. 687 | printf("UVM: GUI server thread joined.\n");
  123. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  124. uvm/uvm_main.c:690:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
  125. 690 | pthread_mutex_lock(&uvm_links_mutex);
  126. | ^
  127. uvm/uvm_main.c:691:5: error: expected identifier or ‘(’ before ‘for’
  128. 691 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
  129. | ^~~
  130. uvm/uvm_main.c:691:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
  131. 691 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
  132. | ^
  133. uvm/uvm_main.c:691:44: error: expected identifier or ‘(’ before ‘++’ token
  134. 691 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
  135. | ^~
  136. uvm/uvm_main.c:700:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  137. 700 | pthread_mutex_unlock(&uvm_links_mutex);
  138. | ^
  139. uvm/uvm_main.c:701:12: error: expected declaration specifiers or ‘...’ before string constant
  140. 701 | printf("UVM: Connections and IO interfaces cleaned up.\n");
  141. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  142. uvm/uvm_main.c:703:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
  143. 703 | cleanup_queues:
  144. | ^
  145. uvm/uvm_main.c:705:5: error: expected identifier or ‘(’ before ‘if’
  146. 705 | if (uvm_incoming_response_queue) uvq_destroy(uvm_incoming_response_queue);
  147. | ^~
  148. uvm/uvm_main.c:706:12: error: expected declaration specifiers or ‘...’ before string constant
  149. 706 | printf("UVM: Queues destroyed.\n");
  150. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  151. uvm/uvm_main.c:708:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
  152. 708 | cleanup_mutexes:
  153. | ^
  154. uvm/uvm_main.c:710:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
  155. 710 | pthread_mutex_destroy(&gui_socket_mutex);
  156. | ^
  157. uvm/uvm_main.c:711:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
  158. 711 | pthread_mutex_destroy(&uvm_send_counter_mutex);
  159. | ^
  160. uvm/uvm_main.c:712:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  161. 712 | pthread_cond_destroy(&uvm_all_sent_cond);
  162. | ^
  163. uvm/uvm_main.c:713:12: error: expected declaration specifiers or ‘...’ before string constant
  164. 713 | printf("UVM: Mutexes and condvar destroyed.\n");
  165. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  166. uvm/uvm_main.c:715:12: error: expected declaration specifiers or ‘...’ before string constant
  167. 715 | printf("UVM Application finished.\n");
  168. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  169. uvm/uvm_main.c:716:5: error: expected identifier or ‘(’ before ‘return’
  170. 716 | return 0;
  171. | ^~~~~~
  172. uvm/uvm_main.c:717:1: error: expected identifier or ‘(’ before ‘}’ token
  173. 717 | }
  174. | ^
  175. make: *** [Makefile:43: uvm/uvm_main.o] Ошибка 1
  176.  
Advertisement
Add Comment
Please, Sign In to add comment