dtorkin

Untitled

May 14th, 2025 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 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:848:28: warning: variable ‘status_before_ka_check’ set but not used [-Wunused-but-set-variable]
  6. 848 | UvmLinkStatus status_before_ka_check = UVM_LINK_INACTIVE;
  7. | ^~~~~~~~~~~~~~~~~~~~~~
  8. uvm/uvm_main.c:818:9: error: label ‘cleanup_queues’ used but not defined
  9. 818 | goto cleanup_queues; // Используем правильную метку
  10. | ^~~~
  11. uvm/uvm_main.c:719:9: error: label ‘cleanup_mutexes_early’ used but not defined
  12. 719 | goto cleanup_mutexes_early;
  13. | ^~~~
  14. uvm/uvm_main.c: At top level:
  15. uvm/uvm_main.c:931:12: error: expected declaration specifiers or ‘...’ before string constant
  16. 931 | printf("UVM: All link-specific threads joined.\n");
  17. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. uvm/uvm_main.c:934:5: error: expected identifier or ‘(’ before ‘if’
  19. 934 | if (sender_tid != 0) {
  20. | ^~
  21. uvm/uvm_main.c:943:5: error: expected identifier or ‘(’ before ‘if’
  22. 943 | if (gui_server_tid != 0) {
  23. | ^~
  24. uvm/uvm_main.c:949:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
  25. 949 | cleanup_connections:
  26. | ^
  27. uvm/uvm_main.c:951:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
  28. 951 | pthread_mutex_lock(&uvm_links_mutex);
  29. | ^
  30. uvm/uvm_main.c:952:5: error: expected identifier or ‘(’ before ‘for’
  31. 952 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
  32. | ^~~
  33. uvm/uvm_main.c:952:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
  34. 952 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
  35. | ^
  36. uvm/uvm_main.c:952:44: error: expected identifier or ‘(’ before ‘++’ token
  37. 952 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
  38. | ^~
  39. uvm/uvm_main.c:963:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  40. 963 | pthread_mutex_unlock(&uvm_links_mutex);
  41. | ^
  42. uvm/uvm_main.c:965:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
  43. 965 | cleanup_queues:
  44. | ^
  45. uvm/uvm_main.c:967:5: error: expected identifier or ‘(’ before ‘if’
  46. 967 | if (uvm_outgoing_request_queue) queue_req_destroy(uvm_outgoing_request_queue);
  47. | ^~
  48. uvm/uvm_main.c:968:5: error: expected identifier or ‘(’ before ‘for’
  49. 968 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
  50. | ^~~
  51. uvm/uvm_main.c:968:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
  52. 968 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
  53. | ^
  54. uvm/uvm_main.c:968:44: error: expected identifier or ‘(’ before ‘++’ token
  55. 968 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
  56. | ^~
  57. uvm/uvm_main.c:974:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
  58. 974 | cleanup_mutexes_early: // Метка для самого раннего выхода
  59. | ^
  60. uvm/uvm_main.c:976:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
  61. 976 | pthread_mutex_destroy(&uvm_links_mutex);
  62. | ^
  63. uvm/uvm_main.c:977:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
  64. 977 | pthread_mutex_destroy(&gui_socket_mutex);
  65. | ^
  66. uvm/uvm_main.c:978:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
  67. 978 | pthread_mutex_destroy(&uvm_send_counter_mutex);
  68. | ^
  69. uvm/uvm_main.c:979:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
  70. 979 | pthread_cond_destroy(&uvm_all_sent_cond);
  71. | ^
  72. uvm/uvm_main.c:981:12: error: expected declaration specifiers or ‘...’ before string constant
  73. 981 | printf("UVM: Очистка завершена.\n");
  74. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  75. uvm/uvm_main.c:982:5: error: expected identifier or ‘(’ before ‘return’
  76. 982 | return 0;
  77. | ^~~~~~
  78. uvm/uvm_main.c:983:1: error: expected identifier or ‘(’ before ‘}’ token
  79. 983 | }
  80. | ^
  81. make: *** [Makefile:43: uvm/uvm_main.o] Ошибка 1
  82.  
Advertisement
Add Comment
Please, Sign In to add comment