ROS-Micro locale_ctype_ptr is undefined
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 _localectype_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 microrosarduino has been declared precompiled:
Using precompiled library in c:\Users\geert\Documents\Arduino\libraries\microrosarduino-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 to
pendablesrvreqisr'
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 `systickisr'
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\microrosarduino-iron\src\imxrt1062\fpv5-d16-hard\libmicroros.a(librmw-validatefulltopicname.c.obj): in function `rmwvalidatefulltopicname':
validatefulltopicname.c:(.text.rmwvalidatefulltopicname+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 function
rmwvalidatenodename':
validatenodename.c:(.text.rmwvalidatenodename+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 function
rclvalidatetopicname':
validatetopicname.c:(.text.rclvalidatetopicname+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
localectypeptr'
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: validatetopicname.c:(.text.rclvalidatetopic_name+0x164): undefined reference to `localectypeptr'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
Asked by Geert on 2023-06-14 06:10:14 UTC
Comments