ROS-Micro locale_ctype_ptr is undefined

asked 2023-06-14 06:10:14 -0500

Geert gravatar image

I have downloaded the ros micro libary from this repo. I followed this guide and updated the platform.txt files using this guide. I tested this with the old and the new Arduino IDE for a Teensy 4.0 board. But when compiling an example sketch from the ROS-Micro library I get the following error message.

It seems that __locale_ctype_ptr is undefined? This is my first time using ROS or ROS-Micro and I am trying to get message from a Teensy 4.0 via Serial to a ROS Iron project running on a linux machine. (For now in a VirtualBox, but later natively)

I googled but I can't seem to find a solution. Can anyone help?

Error message

WARNING: library micro_ros_arduino claims to run on stm32, OpenCR, Teensyduino, samd, sam, mbed, esp32, mbed_portenta architecture(s) and may be incompatible with your current board which runs on avr architecture(s).

Library micro_ros_arduino has been declared precompiled: Using precompiled library in c:\Users\geert\Documents\Arduino\libraries\micro_ros_arduino-iron\src\imxrt1062\fpv5-d16-hard c:/users/geert/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\geert\AppData\Local\Temp\arduino\sketches\36F43AB2D8C7BEA9F25700C7EA3A1536/core\core.a(startup.c.o): in function ResetHandler2': C:\Users\geert\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\cores\teensy4/startup.c:180: undefined reference topendablesrvreq_isr' c:/users/geert/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\geert\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\cores\teensy4/startup.c:180: undefined reference to systick_isr' c:/users/geert/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: c:\Users\geert\Documents\Arduino\libraries\micro_ros_arduino-iron\src\imxrt1062\fpv5-d16-hard\libmicroros.a(librmw-validate_full_topic_name.c.obj): in functionrmw_validate_full_topic_name': validate_full_topic_name.c:(.text.rmw_validate_full_topic_name+0xbe): undefined reference to __locale_ctype_ptr' c:/users/geert/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: c:\Users\geert\Documents\Arduino\libraries\micro_ros_arduino-iron\src\imxrt1062\fpv5-d16-hard\libmicroros.a(librmw-validate_node_name.c.obj): in functionrmw_validate_node_name': validate_node_name.c:(.text.rmw_validate_node_name+0x5e): undefined reference to __locale_ctype_ptr' c:/users/geert/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: c:\Users\geert\Documents\Arduino\libraries\micro_ros_arduino-iron\src\imxrt1062\fpv5-d16-hard\libmicroros.a(librcl-validate_topic_name.c.obj): in functionrcl_validate_topic_name': validate_topic_name.c:(.text.rcl_validate_topic_name+0x46): undefined reference to __locale_ctype_ptr' c:/users/geert/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: validate_topic_name.c:(.text.rcl_validate_topic_name+0xb6): undefined reference to__locale_ctype_ptr' c:/users/geert/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: validate_topic_name.c:(.text ... (more)

edit retag flag offensive close merge delete