Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS-Micro locale_ctype_ptr is undefined! Error:undefined reference to ctype_ptr' #19

Open
ZhaoSQ-CH opened this issue Oct 25, 2023 · 0 comments

Comments

@ZhaoSQ-CH
Copy link
Contributor

I have a problem exactly like this:
https://answers.ros.org/question/416463/ros-micro-locale_ctype_ptr-is-undefined/

Now, I use gcc-arm version:
gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Processors 7-2018-q3-update)

This is my log of comp;lier:
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/microros.o src/microros.c
In file included from microros/install/include/rcl/wait.h:31:0,
from microros/install/include/rcl/rcl.h:80,
from src/microros.c:5:
microros/install/include/rcl/service.h:46:3: warning: redefinition of typedef 'rcl_service_t' [-Wpedantic]
} rcl_service_t;
^~~~~~~~~~~~~
In file included from microros/install/include/rcl/rcl.h:77:0,
from src/microros.c:5:
microros/install/include/rcl/node.h:43:30: note: previous declaration of 'rcl_service_t' was here
typedef struct rcl_service_s rcl_service_t;
^~~~~~~~~~~~~
In file included from microros/install/include/rclc/action_client.h:26:0,
from microros/install/include/rclc/rclc.h:35,
from src/microros.c:7:
microros/install/include/rclc/action_goal_handle.h:35:4: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic]
};
^
microros/install/include/rclc/action_goal_handle.h:53:4: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic]
};
^
microros/install/include/rclc/action_goal_handle.h:58:4: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic]
};
^
microros/install/include/rclc/action_goal_handle.h:63:4: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic]
};
^
In file included from microros/install/include/rclc/executor.h:30:0,
from src/microros.c:8:
microros/install/include/rclc/executor_handle.h:120:4: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic]
};
^
microros/install/include/rclc/executor_handle.h:154:4: warning: ISO C99 doesn't support unnamed structs/unions [-Wpedantic]
};
^
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/syscalls.o src/syscalls.c
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/microros_usbcdc_transport.o src/microros_usbcdc_transport.c
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/microros_time.o src/microros_time.c
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/microros_allocators.o src/microros_allocators.c
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/startup_gcc.o src/startup_gcc.c
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/uartstdio.o tivaware_c_series/utils/uartstdio.c
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/main.o src/main.c
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/usb_serial_structs.o src/usb_serial_structs.c
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/ustdlib.o tivaware_c_series/utils/ustdlib.c
arm-none-eabi-gcc -o gcc/microros_tivac.elf -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wl,--gc-sections -Wl,--print-memory-usage -T "microros_tivac.ld" --specs=nano.specs gcc/microros.o gcc/syscalls.o gcc/microros_usbcdc_transport.o gcc/microros_time.o gcc/microros_allocators.o gcc/startup_gcc.o gcc/uartstdio.o gcc/main.o gcc/usb_serial_structs.o gcc/ustdlib.o tivaware_c_series/usblib/gcc/libusb.a tivaware_c_series/driverlib/gcc/libdriver.a microros/install/libmicroros.a
Memory region Used Size Region Size %age Used
FLASH: 73820 B 256 KB 28.16%
SRAM: 11988 B 32 KB 36.58%
microros/install/libmicroros.a(librmw-validate_full_topic_name.c.obj): In function rmw_validate_full_topic_name_with_size': /home/user/Desktop/workspace/microros/micro_ros_tivac_launchpad_app/microros/install/micro_ros_src/src/rmw/rmw/src/validate_full_topic_name.c:127: undefined reference to ctype_ptr'
microros/install/libmicroros.a(librmw-validate_node_name.c.obj): In function rmw_validate_node_name_with_size': /home/user/Desktop/workspace/microros/micro_ros_tivac_launchpad_app/microros/install/micro_ros_src/src/rmw/rmw/src/validate_node_name.c:91: undefined reference to ctype_ptr'
microros/install/libmicroros.a(librcl-validate_topic_name.c.obj): In function rcl_validate_topic_name_with_size': /home/user/Desktop/workspace/microros/micro_ros_tivac_launchpad_app/microros/install/micro_ros_src/src/rcl/rcl/src/rcl/validate_topic_name.c:157: undefined reference to ctype_ptr'
collect2: error: ld returned 1 exit status

Makefile:56: recipe for target 'gcc/microros_tivac.elf' failed
make: *** [gcc/microros_tivac.elf] Error 1

@ZhaoSQ-CH ZhaoSQ-CH changed the title ROS-Micro locale_ctype_ptr is undefined ROS-Micro locale_ctype_ptr is undefined! Error:undefined reference to ctype_ptr' Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant