ros2 run command micro_ros_setup build_firmware.sh gives this error, nucleo_f767zi
isomadinow opened this issue · 0 comments
This is the ros2 run command micro_ros_setup build_firmware.sh gives this error, please help me solve it. I don't know how to solve the problem :(
Starting >>> rcutils
--- stderr: rcutils
In file included from /home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/error_handling.c:35:
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/./error_handling_helpers.h: In function '__rcutils_convert_uint64_t_into_c_str':
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/./error_handling_helpers.h:109:48: warning: unused parameter 'number' [-Wunused-parameter]
__rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
~~~~~~~~~^~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/./error_handling_helpers.h:109:63: warning: unused parameter 'buffer' [-Wunused-parameter]
__rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
~~~~~~~^~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/./error_handling_helpers.h:109:78: warning: unused parameter 'buffer_size' [-Wunused-parameter]
__rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
~~~~~~~^~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/./error_handling_helpers.h: In function '__rcutils_format_error_string':
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/./error_handling_helpers.h:142:28: warning: unused parameter 'error_string' [-Wunused-parameter]
rcutils_error_string_t * error_string,
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/./error_handling_helpers.h:143:33: warning: unused parameter 'error_state' [-Wunused-parameter]
const rcutils_error_state_t * error_state)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/error_handling.c: In function 'rcutils_get_error_string':
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/error_handling.c:240:38: warning: initializer-string for array of chars is too long
return (rcutils_error_string_t) {"error not set"}; // NOLINT(readability/braces)
^~~~~~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/error_handling.c:240:38: note: (near initialization for '(anonymous).str')
In file included from /home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/error_handling.c:35:
At top level:
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/./error_handling_helpers.h:109:1: warning: '__rcutils_convert_uint64_t_into_c_str' defined but not used [-Wunused-function]
__rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/./error_handling_helpers.h:91:1: warning: '__rcutils_reverse_str' defined but not used [-Wunused-function]
__rcutils_reverse_str(char * string_in, size_t string_len)
^~~~~~~~~~~~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/logging.c: In function 'rcutils_get_env_var_zero_or_one':
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/logging.c:127:35: warning: unused parameter 'zero_semantic' [-Wunused-parameter]
const char * name, const char * zero_semantic,
~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/logging.c:128:16: warning: unused parameter 'one_semantic' [-Wunused-parameter]
const char * one_semantic)
~~~~~~~~~~~~~^~~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c: In function 'rcutils_get_symbol':
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c:121:23: warning: implicit declaration of function 'dlsym' [-Wimplicit-function-declaration]
void * lib_symbol = dlsym(lib->lib_pointer, symbol_name);
^~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c:121:23: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c:122:18: warning: implicit declaration of function 'dlerror'; did you mean 'perror'? [-Wimplicit-function-declaration]
char * error = dlerror();
^~~~~~~
perror
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c:122:18: warning: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c: In function 'rcutils_has_symbol':
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c:159:23: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
void * lib_symbol = dlsym(lib->lib_pointer, symbol_name);
^~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c:160:20: warning: comparison between pointer and integer
return dlerror() == NULL && lib_symbol != 0;
^~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c: In function 'rcutils_unload_shared_library':
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c:178:20: warning: implicit declaration of function 'dlclose'; did you mean 'pclose'? [-Wimplicit-function-declaration]
int error_code = dlclose(lib->lib_pointer);
^~~~~~~
pclose
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c: In function 'rcutils_get_platform_library_name':
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c:201:16: warning: unused parameter 'buffer_size' [-Wunused-parameter]
unsigned int buffer_size,
~~~~~~~~~~~~~^~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/shared_library.c:202:8: warning: unused parameter 'debug' [-Wunused-parameter]
bool debug)
^
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/time_unix.c:52:4: warning: #warning is a GCC extension
# warning no monotonic clock function available
^~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/time_unix.c:52:4: warning: #warning no monotonic clock function available [-Wcpp]
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/time_unix.c: In function 'rcutils_system_time_now':
/home/isomadinow/uros_ws2/firmware/mcu_ws/uros/rcutils/src/time_unix.c:74:3: warning: implicit declaration of function 'clock_gettime'; did you mean 'localtime'? [-Wimplicit-function-declaration]
clock_gettime(CLOCK_REALTIME, ×pec_now);
^~~~~~~~~~~~~
localtime
---
Finished <<< rcutils [1.09s]
Starting >>> rosidl_runtime_c
Starting >>> rcl_logging_noop
--- stderr: libyaml_vendor
CMake Warning (dev) at CMakeLists.txt:55 (add_library):
ADD_LIBRARY called with SHARED option but the target platform does not
support dynamic linking. Building a STATIC library instead. This may lead
to problems.
This warning is for project developers. Use -Wno-dev to suppress it.
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/api.c: In function 'yaml_strdup':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/api.c:66:27: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
return (yaml_char_t *)strdup((char *)str);
^~~~~~
strcmp
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/parser.c: In function 'yaml_parser_parse_block_sequence_entry':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/parser.c:762:21: warning: variable 'dummy_mark' set but not used [-Wunused-but-set-variable]
yaml_mark_t dummy_mark; /* Used to eliminate a compiler warning. */
^~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/scanner.c: In function 'yaml_parser_decrease_flow_level':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/scanner.c:1189:23: warning: variable 'dummy_key' set but not used [-Wunused-but-set-variable]
yaml_simple_key_t dummy_key; /* Used to eliminate a compiler warning. */
^~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/parser.c: In function 'yaml_parser_parse_block_mapping_key':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/parser.c:872:21: warning: variable 'dummy_mark' set but not used [-Wunused-but-set-variable]
yaml_mark_t dummy_mark; /* Used to eliminate a compiler warning. */
^~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/parser.c: In function 'yaml_parser_parse_flow_sequence_entry':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/parser.c:955:17: warning: variable 'dummy_mark' set but not used [-Wunused-but-set-variable]
yaml_mark_t dummy_mark; /* Used to eliminate a compiler warning. */
^~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/parser.c: In function 'yaml_parser_parse_flow_mapping_key':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/parser.c:1107:17: warning: variable 'dummy_mark' set but not used [-Wunused-but-set-variable]
yaml_mark_t dummy_mark; /* Used to eliminate a compiler warning. */
^~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/api.c: In function 'yaml_document_delete':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/api.c:1121:7: warning: variable 'context' set but not used [-Wunused-but-set-variable]
} context;
^~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c: In function 'yaml_emitter_write_plain_scalar':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:28:6: warning: value computed is not used [-Wunused-value]
&& ((emitter->line_break == YAML_CR_BREAK ? \
^~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
(PUT_BREAK(emitter), \
^~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:1931:18: note: in expansion of macro 'WRITE_BREAK'
if (!WRITE_BREAK(emitter, string)) return 0;
^~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c: In function 'yaml_emitter_write_single_quoted_scalar':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:28:6: warning: value computed is not used [-Wunused-value]
&& ((emitter->line_break == YAML_CR_BREAK ? \
^~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
(PUT_BREAK(emitter), \
^~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:1988:18: note: in expansion of macro 'WRITE_BREAK'
if (!WRITE_BREAK(emitter, string)) return 0;
^~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c: In function 'yaml_emitter_write_literal_scalar':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:28:6: warning: value computed is not used [-Wunused-value]
&& ((emitter->line_break == YAML_CR_BREAK ? \
^~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
(PUT_BREAK(emitter), \
^~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:2251:18: note: in expansion of macro 'WRITE_BREAK'
if (!WRITE_BREAK(emitter, string)) return 0;
^~~~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c: In function 'yaml_emitter_write_folded_scalar':
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:28:6: warning: value computed is not used [-Wunused-value]
&& ((emitter->line_break == YAML_CR_BREAK ? \
^~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
(PUT_BREAK(emitter), \
^~~~~~~~~
/home/isomadinow/uros_ws2/firmware/mcu_ws/build/libyaml_vendor/libyaml-10c9078-prefix/src/libyaml-10c9078/src/emitter.c:2300:18: note: in expansion of macro 'WRITE_BREAK'
if (!WRITE_BREAK(emitter, string)) return 0;
^~~~~~~~~~~
---
Finished <<< libyaml_vendor [3.89s]
--- stderr: microxrcedds_client
/home/isomadinow/uros_ws2/firmware/mcu_ws/eProsima/Micro-XRCE-DDS-Client/src/c/util/time.c: In function 'uxr_nanos':
/home/isomadinow/uros_ws2/firmware/mcu_ws/eProsima/Micro-XRCE-DDS-Client/src/c/util/time.c:60:5: warning: implicit declaration of function 'clock_gettime'; did you mean 'localtime'? [-Wimplicit-function-declaration]
clock_gettime(CLOCK_REALTIME, &ts);
^~~~~~~~~~~~~
localtime
/home/isomadinow/uros_ws2/firmware/mcu_ws/eProsima/Micro-XRCE-DDS-Client/src/c/profile/transport/ip/ip_posix.c:18:10: fatal error: arpa/inet.h: No such file or directory
#include <arpa/inet.h>
^~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/microxrcedds_client.dir/build.make:391: CMakeFiles/microxrcedds_client.dir/src/c/profile/transport/ip/ip_posix.c.obj] Ошибка 1
make[3]: *** Ожидание завершения заданий…
/home/isomadinow/uros_ws2/firmware/mcu_ws/eProsima/Micro-XRCE-DDS-Client/src/c/profile/transport/ip/udp/udp_transport_posix_nopoll.c:5:10: fatal error: sys/socket.h: No such file or directory
#include <sys/socket.h>
^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/microxrcedds_client.dir/build.make:378: CMakeFiles/microxrcedds_client.dir/src/c/profile/transport/ip/udp/udp_transport_posix_nopoll.c.obj] Ошибка 1
make[2]: *** [CMakeFiles/Makefile2:79: CMakeFiles/microxrcedds_client.dir/all] Ошибка 2
make[1]: *** [Makefile:133: all] Ошибка 2
---
Failed <<< microxrcedds_client [2.09s, exited with code 2]
Aborted <<< rosidl_runtime_c [0.37s]
Aborted <<< rcl_logging_noop [0.54s]
Summary: 16 packages finished [4.63s]
1 package failed: microxrcedds_client
2 packages aborted: rcl_logging_noop rosidl_runtime_c
5 packages had stderr output: libyaml_vendor microxrcedds_client rcl_logging_noop rcutils rosidl_runtime_c
42 packages not processed
make: *** [Makefile:313: colcon_compile] Ошибка 2