micro-ROS / micro_ros_arduino

micro-ROS library for Arduino
Apache License 2.0
453 stars 117 forks source link

Compile error for examples - Adruino Due #1218

Closed BartVanderHaagen closed 2 years ago

BartVanderHaagen commented 2 years ago

Issue template

Steps to reproduce the issue

After a clean install of Arduino IDE, I followed the github instructions on how to add the library to Arduino IDE, installed AVR boards via board manager (latest version 1.8.6)

test1: can upload programs when using the :Programming port

added the .zip file

Expected behavior

to compile smoothly and be able to upload the first example suitable for Arduino Due

Actual behavior

see compile output:

Using board 'arduino_due_x_dbg' from platform in folder:

C:\Users\bvand\AppData\Local\Arduino15\packages\arduino\hardware\sam\**1.6.12** 
Using core 'arduino' from platform in folder: C:\Users\bvand\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12
Detecting libraries used...
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\sketch\\micro-ros_subscriber_twist.ino.cpp" -o nul
Alternatives for micro_ros_arduino.h: [micro_ros_arduino@2.0.5-foxy]
ResolveLibrary(micro_ros_arduino.h)
  -> candidates: [micro_ros_arduino@2.0.5-foxy]
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-Ic:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src" "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\sketch\\micro-ros_subscriber_twist.ino.cpp" -o nul
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-Ic:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src" "c:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src\\default_transport.cpp" -o nul
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-Ic:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src" "c:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src\\native_ethernet_transport.cpp" -o nul
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-Ic:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src" "c:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src\\wifi_transport.cpp" -o nul
Generating function prototypes...
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-Ic:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src" "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\sketch\\micro-ros_subscriber_twist.ino.cpp" -o "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-Ic:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src" "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\sketch\\micro-ros_subscriber_twist.ino.cpp" -o "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\sketch\\micro-ros_subscriber_twist.ino.cpp.o"
Compiling libraries...
Compiling library "micro_ros_arduino"
Library micro_ros_arduino has been declared precompiled:
Using precompiled library in c:\Users\bvand\OneDrive\Documents\Arduino\libraries\micro_ros_arduino-2.0.5-foxy\src\cortex-m3
The platform does not support 'compiler.libraries.ldflags' for precompiled libraries.
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-Ic:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src" "c:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src\\default_transport.cpp" -o "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\libraries\\micro_ros_arduino-2.0.5-foxy\\default_transport.cpp.o"
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-Ic:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src" "c:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src\\native_ethernet_transport.cpp" -o "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\libraries\\micro_ros_arduino-2.0.5-foxy\\native_ethernet_transport.cpp.o"
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "-Ic:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src" "c:\\Users\\bvand\\OneDrive\\Documents\\Arduino\\libraries\\micro_ros_arduino-2.0.5-foxy\\src\\wifi_transport.cpp" -o "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\libraries\\micro_ros_arduino-2.0.5-foxy\\wifi_transport.cpp.o"
Compiling core...
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10607 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/libsam" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/CMSIS/Include/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\system/CMSIS/Device/ATMEL/" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\cores\\arduino" "-IC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x" "C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x\\variant.cpp" -o "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\core\\variant.cpp.o"
Using precompiled core: C:\Users\bvand\AppData\Local\Temp\arduino-core-cache\core_arduino_sam_arduino_due_x_dbg_976b5f9f7877b18eaad7ab86121d6d67.a
Linking everything together...
"C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--gc-sections "-TC:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x/linker_scripts/gcc/flash.ld" "-Wl,-Map,C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC/micro-ros_subscriber_twist.ino.map" -o "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC/micro-ros_subscriber_twist.ino.elf" "-LC:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC" -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group -u _sbrk -u link -u _close -u _fstat -u _isatty -u _lseek -u _read -u _write -u _exit -u kill -u _getpid "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\sketch\\micro-ros_subscriber_twist.ino.cpp.o" "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\libraries\\micro_ros_arduino-2.0.5-foxy\\default_transport.cpp.o" "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\libraries\\micro_ros_arduino-2.0.5-foxy\\native_ethernet_transport.cpp.o" "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\libraries\\micro_ros_arduino-2.0.5-foxy\\wifi_transport.cpp.o" "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\\core\\variant.cpp.o" "C:\\Users\\bvand\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam\\1.6.12\\variants\\arduino_due_x/libsam_sam3x8e_gcc_rel.a" "C:\\Users\\bvand\\AppData\\Local\\Temp\\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC/..\\arduino-core-cache\\core_arduino_sam_arduino_due_x_dbg_976b5f9f7877b18eaad7ab86121d6d67.a" -Wl,--end-group -lm -lgcc
C:\Users\bvand\AppData\Local\Temp\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\sketch\micro-ros_subscriber_twist.ino.cpp.o: In function `set_microros_transports':
c:\Users\bvand\OneDrive\Documents\Arduino\libraries\micro_ros_arduino-2.0.5-foxy\src/micro_ros_arduino.h:40: undefined reference to `rmw_uros_set_custom_transport'
C:\Users\bvand\AppData\Local\Temp\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\sketch\micro-ros_subscriber_twist.ino.cpp.o: In function `setup':
C:\Users\bvand\AppData\Local\Temp\.arduinoIDE-unsaved20221023-2952-13vlrl9.4xcz\micro-ros_subscriber_twist/micro-ros_subscriber_twist.ino:45: undefined reference to `rcutils_get_default_allocator'
C:\Users\bvand\AppData\Local\Temp\.arduinoIDE-unsaved20221023-2952-13vlrl9.4xcz\micro-ros_subscriber_twist/micro-ros_subscriber_twist.ino:48: undefined reference to `rclc_support_init'
C:\Users\bvand\AppData\Local\Temp\.arduinoIDE-unsaved20221023-2952-13vlrl9.4xcz\micro-ros_subscriber_twist/micro-ros_subscriber_twist.ino:51: undefined reference to `rclc_node_init_default'
C:\Users\bvand\AppData\Local\Temp\.arduinoIDE-unsaved20221023-2952-13vlrl9.4xcz\micro-ros_subscriber_twist/micro-ros_subscriber_twist.ino:54: undefined reference to `rosidl_typesupport_c__get_message_type_support_handle__geometry_msgs__msg__Twist'
C:\Users\bvand\AppData\Local\Temp\.arduinoIDE-unsaved20221023-2952-13vlrl9.4xcz\micro-ros_subscriber_twist/micro-ros_subscriber_twist.ino:54: undefined reference to `rclc_subscription_init_default'
C:\Users\bvand\AppData\Local\Temp\.arduinoIDE-unsaved20221023-2952-13vlrl9.4xcz\micro-ros_subscriber_twist/micro-ros_subscriber_twist.ino:61: undefined reference to `rclc_executor_init'
C:\Users\bvand\AppData\Local\Temp\.arduinoIDE-unsaved20221023-2952-13vlrl9.4xcz\micro-ros_subscriber_twist/micro-ros_subscriber_twist.ino:62: undefined reference to `rclc_executor_add_subscription'
C:\Users\bvand\AppData\Local\Temp\arduino-sketch-92F5B434F2D49EB35967CFD4C7832BDC\sketch\micro-ros_subscriber_twist.ino.cpp.o: In function `loop':
C:\Users\bvand\AppData\Local\Temp\.arduinoIDE-unsaved20221023-2952-13vlrl9.4xcz\micro-ros_subscriber_twist/micro-ros_subscriber_twist.ino:68: undefined reference to `rclc_executor_spin_some'
collect2.exe: error: ld returned 1 exit status

Using library micro_ros_arduino at version 2.0.5-foxy in folder: C:\Users\bvand\OneDrive\Documents\Arduino\libraries\micro_ros_arduino-2.0.5-foxy 
exit status 1

Compilation error: exit status 1

Additional information

Hope You could help, thanks in advance!

pablogs9 commented 2 years ago

Have you patched the installation: https://github.com/micro-ROS/micro_ros_arduino#patch-sam ?

BartVanderHaagen commented 2 years ago

Thanks for your early reply. I indeed did not make the patch. Im working with ArduinoIDE installed on windows. I tried to make the patch but without success.

Are there any instructions available for making the patch on windows?

BartVanderHaagen commented 2 years ago

I solved my problem by adding a new enviroment variable ARDUINO_PATH

Opened visual studio

typed C:>cd C:\Users\bvand\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12

curl https://raw.githubusercontent.com/micro-ROS/micro_ros_arduino/main/extras/patching_boards/platform_arduinocore_sam.txt > platform.txt % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5619 100 5619 0 0 18172 0 --:--:-- --:--:-- --:--:-- 18184

and reopend the ArduinIDE

compile success!