Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dtorkin@ubuntu1:~/Desktop/practice$ make
- Compiling uvm/uvm_main.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_main.o uvm/uvm_main.c
- uvm/uvm_main.c: In function ‘main’:
- 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’?
- 444 | if(current_link_status_on_recv_local == UVM_LINK_ACTIVE || current_link_status_on_recv_local == UVM_LINK_WARNING) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- | current_link_status_on_recv_local_local
- uvm/uvm_main.c:444:21: note: each undeclared identifier is reported only once for each function it appears in
- uvm/uvm_main.c:463:42: error: ‘event_sent_from_handler’ undeclared (first use in this function)
- 463 | event_sent_from_handler = true;
- | ^~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:426:14: warning: variable ‘bcb_was_in_message’ set but not used [-Wunused-but-set-variable]
- 426 | bool bcb_was_in_message = false;
- | ^~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:423:14: warning: variable ‘activity_in_this_iteration’ set but not used [-Wunused-but-set-variable]
- 423 | bool activity_in_this_iteration = false;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:548:11: error: ‘else’ without a previous ‘if’
- 548 | } else { // Очередь пуста или закрыта
- | ^~~~
- uvm/uvm_main.c:549:36: error: break statement not within loop or switch
- 549 | if (!uvm_keep_running) break;
- | ^~~~~
- uvm/uvm_main.c:578:44: error: ‘activity_in_this_iteration’ undeclared (first use in this function)
- 578 | msg_counters[i]++; activity_in_this_iteration = true;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:327:5: error: label ‘cleanup_connections’ used but not defined
- 327 | if (pthread_create(&sender_tid, NULL, uvm_sender_thread_func, NULL) != 0) { /*...*/ goto cleanup_connections; }
- | ^~
- uvm/uvm_main.c:322:5: error: label ‘cleanup_queues’ used but not defined
- 322 | if (active_svm_count == 0) { /*...*/ goto cleanup_queues; }
- | ^~
- uvm/uvm_main.c:277:5: error: label ‘cleanup_mutexes’ used but not defined
- 277 | if (num_svms_to_run == 0) { fprintf(stderr, "UVM: No SVM configurations found. Exiting.\n"); goto cleanup_mutexes; }
- | ^~
- uvm/uvm_main.c: At top level:
- uvm/uvm_main.c:644:12: error: expected declaration specifiers or ‘...’ before string constant
- 644 | printf("UVM: Shutdown initiated by main loop exit or signal...\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:647:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
- 647 | cleanup_connections: // Метка для goto, если не все потоки стартанули
- | ^
- uvm/uvm_main.c:650:5: error: expected identifier or ‘(’ before ‘if’
- 650 | if (uvm_outgoing_request_queue) {
- | ^~
- uvm/uvm_main.c:655:5: error: expected identifier or ‘(’ before ‘if’
- 655 | if (uvm_incoming_response_queue) uvq_shutdown(uvm_incoming_response_queue);
- | ^~
- uvm/uvm_main.c:657:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 657 | pthread_mutex_lock(&uvm_send_counter_mutex);
- | ^
- uvm/uvm_main.c:658:5: warning: data definition has no type or storage class
- 658 | uvm_outstanding_sends = 0;
- | ^~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:658:5: warning: type defaults to ‘int’ in declaration of ‘uvm_outstanding_sends’ [-Wimplicit-int]
- uvm/uvm_main.c:658:5: error: conflicting type qualifiers for ‘uvm_outstanding_sends’
- uvm/uvm_main.c:36:14: note: previous definition of ‘uvm_outstanding_sends’ with type ‘int’
- 36 | volatile int uvm_outstanding_sends = 0;
- | ^~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:659:28: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 659 | pthread_cond_broadcast(&uvm_all_sent_cond);
- | ^
- uvm/uvm_main.c:660:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 660 | pthread_mutex_unlock(&uvm_send_counter_mutex);
- | ^
- uvm/uvm_main.c:662:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 662 | pthread_mutex_lock(&gui_socket_mutex);
- | ^
- uvm/uvm_main.c:663:5: error: expected identifier or ‘(’ before ‘if’
- 663 | if (gui_listen_fd >= 0) { int fd=gui_listen_fd; gui_listen_fd=-1; shutdown(fd, SHUT_RDWR); close(fd); }
- | ^~
- uvm/uvm_main.c:664:5: error: expected identifier or ‘(’ before ‘if’
- 664 | if (gui_client_fd >= 0) { int fd=gui_client_fd; gui_client_fd=-1; shutdown(fd, SHUT_RDWR); close(fd); }
- | ^~
- uvm/uvm_main.c:665:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 665 | pthread_mutex_unlock(&gui_socket_mutex);
- | ^
- uvm/uvm_main.c:667:12: error: expected declaration specifiers or ‘...’ before string constant
- 667 | printf("UVM: Closing SVM connections...\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:668:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 668 | pthread_mutex_lock(&uvm_links_mutex);
- | ^
- uvm/uvm_main.c:669:5: error: expected identifier or ‘(’ before ‘for’
- 669 | for(int i=0; i<num_svms_to_run; ++i) {
- | ^~~
- uvm/uvm_main.c:669:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
- 669 | for(int i=0; i<num_svms_to_run; ++i) {
- | ^
- uvm/uvm_main.c:669:37: error: expected identifier or ‘(’ before ‘++’ token
- 669 | for(int i=0; i<num_svms_to_run; ++i) {
- | ^~
- uvm/uvm_main.c:674:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 674 | pthread_mutex_unlock(&uvm_links_mutex);
- | ^
- uvm/uvm_main.c:677:12: error: expected declaration specifiers or ‘...’ before string constant
- 677 | printf("UVM: Joining threads...\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:678:5: error: expected identifier or ‘(’ before ‘if’
- 678 | if (sender_tid != 0) pthread_join(sender_tid, NULL);
- | ^~
- uvm/uvm_main.c:679:12: error: expected declaration specifiers or ‘...’ before string constant
- 679 | printf("UVM: Sender thread joined.\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:680:5: error: expected identifier or ‘(’ before ‘for’
- 680 | for (int i = 0; i < num_svms_to_run; ++i) {
- | ^~~
- uvm/uvm_main.c:680:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
- 680 | for (int i = 0; i < num_svms_to_run; ++i) {
- | ^
- uvm/uvm_main.c:680:42: error: expected identifier or ‘(’ before ‘++’ token
- 680 | for (int i = 0; i < num_svms_to_run; ++i) {
- | ^~
- uvm/uvm_main.c:685:12: error: expected declaration specifiers or ‘...’ before string constant
- 685 | printf("UVM: All receiver threads joined.\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:686:5: error: expected identifier or ‘(’ before ‘if’
- 686 | if (gui_server_tid != 0) pthread_join(gui_server_tid, NULL);
- | ^~
- uvm/uvm_main.c:687:12: error: expected declaration specifiers or ‘...’ before string constant
- 687 | printf("UVM: GUI server thread joined.\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:690:24: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 690 | pthread_mutex_lock(&uvm_links_mutex);
- | ^
- uvm/uvm_main.c:691:5: error: expected identifier or ‘(’ before ‘for’
- 691 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
- | ^~~
- uvm/uvm_main.c:691:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
- 691 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
- | ^
- uvm/uvm_main.c:691:44: error: expected identifier or ‘(’ before ‘++’ token
- 691 | for (int i = 0; i < MAX_SVM_INSTANCES; ++i) {
- | ^~
- uvm/uvm_main.c:700:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 700 | pthread_mutex_unlock(&uvm_links_mutex);
- | ^
- uvm/uvm_main.c:701:12: error: expected declaration specifiers or ‘...’ before string constant
- 701 | printf("UVM: Connections and IO interfaces cleaned up.\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:703:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
- 703 | cleanup_queues:
- | ^
- uvm/uvm_main.c:705:5: error: expected identifier or ‘(’ before ‘if’
- 705 | if (uvm_incoming_response_queue) uvq_destroy(uvm_incoming_response_queue);
- | ^~
- uvm/uvm_main.c:706:12: error: expected declaration specifiers or ‘...’ before string constant
- 706 | printf("UVM: Queues destroyed.\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:708:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
- 708 | cleanup_mutexes:
- | ^
- uvm/uvm_main.c:710:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 710 | pthread_mutex_destroy(&gui_socket_mutex);
- | ^
- uvm/uvm_main.c:711:27: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 711 | pthread_mutex_destroy(&uvm_send_counter_mutex);
- | ^
- uvm/uvm_main.c:712:26: error: expected declaration specifiers or ‘...’ before ‘&’ token
- 712 | pthread_cond_destroy(&uvm_all_sent_cond);
- | ^
- uvm/uvm_main.c:713:12: error: expected declaration specifiers or ‘...’ before string constant
- 713 | printf("UVM: Mutexes and condvar destroyed.\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:715:12: error: expected declaration specifiers or ‘...’ before string constant
- 715 | printf("UVM Application finished.\n");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- uvm/uvm_main.c:716:5: error: expected identifier or ‘(’ before ‘return’
- 716 | return 0;
- | ^~~~~~
- uvm/uvm_main.c:717:1: error: expected identifier or ‘(’ before ‘}’ token
- 717 | }
- | ^
- make: *** [Makefile:43: uvm/uvm_main.o] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment