Advertisement
dhruvag2000

errors-building-arduino-zephyr

May 25th, 2022
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 47.81 KB | None | 0 0
  1. └─❯ west build -p -b arduino_zero  samples/basic/blinky
  2.  
  3. -- west build: making build dir /home/dhruva/zephyrproject/zephyr/build pristine
  4. -- west build: generating a build system
  5. -- Application: /home/dhruva/zephyrproject/zephyr/samples/basic/blinky
  6. -- Zephyr version: 2.7.99 (/home/dhruva/zephyrproject/zephyr), build: v2.7.99-2750-g7f5eb921dc8b
  7. -- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.4") found components: Interpreter
  8. -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
  9. -- Board: arduino_zero
  10. -- Cache files will be written to: /home/dhruva/.cache/zephyr
  11. -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
  12. -- Found host-tools: zephyr 0.14.2 (/home/dhruva/zephyr-sdk-0.14.2)
  13. -- Found dtc: /home/dhruva/zephyr-sdk-0.14.2/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
  14. -- Found toolchain: zephyr 0.14.2 (/home/dhruva/zephyr-sdk-0.14.2)
  15. -- Found BOARD.dts: /home/dhruva/zephyrproject/zephyr/boards/arm/arduino_zero/arduino_zero.dts
  16. -- Generated zephyr.dts: /home/dhruva/zephyrproject/zephyr/build/zephyr/zephyr.dts
  17. -- Generated devicetree_unfixed.h: /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
  18. -- Generated device_extern.h: /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/device_extern.h
  19. -- Including generated dts.cmake file: /home/dhruva/zephyrproject/zephyr/build/zephyr/dts.cmake
  20. Parsing /home/dhruva/zephyrproject/zephyr/Kconfig
  21. Loaded configuration '/home/dhruva/zephyrproject/zephyr/boards/arm/arduino_zero/arduino_zero_defconfig'
  22. Merged configuration '/home/dhruva/zephyrproject/zephyr/samples/basic/blinky/prj.conf'
  23. Configuration saved to '/home/dhruva/zephyrproject/zephyr/build/zephyr/.config'
  24. Kconfig header saved to '/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
  25. -- The C compiler identification is GNU 10.3.0
  26. -- The CXX compiler identification is GNU 10.3.0
  27. -- The ASM compiler identification is GNU
  28. -- Found assembler: /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
  29. -- Configuring done
  30. -- Generating done
  31. -- Build files have been written to: /home/dhruva/zephyrproject/zephyr/build
  32. -- west build: building application
  33. [1/155] Preparing syscall dependency handling
  34.  
  35. [2/155] Generating misc/generated/syscalls_subdirs.trigger
  36. [3/155] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
  37. [4/155] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
  38. [5/155] Generating include/generated/driver-validation.h
  39. [6/155] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
  40. [7/155] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
  41. [8/155] Generating include/generated/offsets.h
  42. [9/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
  43. [10/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
  44. [11/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
  45. [12/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
  46. [13/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
  47. [14/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
  48. [15/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
  49. [16/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
  50. [17/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
  51. [18/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
  52. [19/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
  53. [20/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
  54. [21/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
  55. [22/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
  56. [23/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
  57. [24/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
  58. [25/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
  59. [26/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
  60. [27/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
  61. [28/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
  62. [29/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
  63. [30/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
  64. [31/155] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
  65. [32/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/HardwareSerial.cpp.obj
  66. [33/155] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/atmel_sam0/common/soc_port.c.obj
  67. [34/155] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/atmel_sam0/common/soc_samd2x.c.obj
  68. [35/155] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
  69. [36/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/itoa.c.obj
  70. [37/155] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/pinmux/pinmux_sam0.c.obj
  71. [38/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/IPAddress.cpp.obj
  72. [39/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Tone.cpp.obj
  73. [40/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring.c.obj
  74. [41/155] Building C object CMakeFiles/app.dir/src/main.c.obj
  75. [42/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_shift.c.obj
  76. [43/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WMath.cpp.obj
  77. [44/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WString.cpp.obj
  78. [45/155] Linking C static library app/libapp.a
  79. [46/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c.obj
  80. FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c.obj
  81. ccache /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBUILD_VERSION=v2.7.99-2750-g7f5eb921dc8b -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/dhruva/zephyrproject/zephyr/kernel/include -I/home/dhruva/zephyrproject/zephyr/arch/arm/include -I/home/dhruva/zephyrproject/zephyr/include -I/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/samd21 -I/home/dhruva/zephyrproject/zephyr/drivers -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/common/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -isystem /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -imacros /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -imacros /home/dhruva/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dhruva/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c.obj -MF zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c.obj -c /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c
  82. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
  83.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c:20:
  84. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'delay':
  85. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h:76:10: error: incompatible type for argument 1 of 'k_sleep'
  86.    76 |  k_sleep(dwMs);
  87.       |          ^~~~
  88.       |          |
  89.       |          long unsigned int
  90. In file included from /home/dhruva/zephyrproject/zephyr/include/kernel.h:5911,
  91.                  from /home/dhruva/zephyrproject/zephyr/include/zephyr.h:18,
  92.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:31,
  93.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c:20:
  94. /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/syscalls/kernel.h:95:43: note: expected 'k_timeout_t' but argument is of type 'long unsigned int'
  95.    95 | static inline int32_t k_sleep(k_timeout_t timeout)
  96.       |                               ~~~~~~~~~~~~^~~~~~~
  97. [47/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/variant.cpp.obj
  98. [48/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c.obj
  99. FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c.obj
  100. ccache /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBUILD_VERSION=v2.7.99-2750-g7f5eb921dc8b -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/dhruva/zephyrproject/zephyr/kernel/include -I/home/dhruva/zephyrproject/zephyr/arch/arm/include -I/home/dhruva/zephyrproject/zephyr/include -I/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/samd21 -I/home/dhruva/zephyrproject/zephyr/drivers -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/common/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -isystem /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -imacros /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -imacros /home/dhruva/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dhruva/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c.obj -MF zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c.obj -c /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c
  101. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
  102.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c:19:
  103. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'delay':
  104. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h:76:10: error: incompatible type for argument 1 of 'k_sleep'
  105.    76 |  k_sleep(dwMs);
  106.       |          ^~~~
  107.       |          |
  108.       |          long unsigned int
  109. In file included from /home/dhruva/zephyrproject/zephyr/include/kernel.h:5911,
  110.                  from /home/dhruva/zephyrproject/zephyr/include/zephyr.h:18,
  111.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:31,
  112.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c:19:
  113. /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/syscalls/kernel.h:95:43: note: expected 'k_timeout_t' but argument is of type 'long unsigned int'
  114.    95 | static inline int32_t k_sleep(k_timeout_t timeout)
  115.       |                               ~~~~~~~~~~~~^~~~~~~
  116. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c: At top level:
  117. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c:27:10: fatal error: adc.h: No such file or directory
  118.    27 | #include <adc.h>
  119.       |          ^~~~~~~
  120. compilation terminated.
  121. [49/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp.obj
  122. FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp.obj
  123. ccache /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ -DBUILD_VERSION=v2.7.99-2750-g7f5eb921dc8b -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/dhruva/zephyrproject/zephyr/kernel/include -I/home/dhruva/zephyrproject/zephyr/arch/arm/include -I/home/dhruva/zephyrproject/zephyr/include -I/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/samd21 -I/home/dhruva/zephyrproject/zephyr/drivers -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/common/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -isystem /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -fcheck-new -fno-exceptions -fno-rtti -imacros /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -imacros /home/dhruva/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dhruva/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -nostdinc -nostdinc++ -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp.obj -MF zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp.obj -c /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp
  124. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
  125.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp:20:
  126. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
  127.    37 | static inline int iscntrl(int c)
  128.       |                   ^~~~~~~
  129. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:22,
  130.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
  131.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp:20:
  132. /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
  133.    72 | static inline int iscntrl(int c)
  134.       |                   ^~~~~~~
  135. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
  136.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp:20:
  137. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
  138. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h:76:10: error: could not convert 'dwMs' from 'long unsigned int' to 'k_timeout_t'
  139.    76 |  k_sleep(dwMs);
  140.       |          ^~~~
  141.       |          |
  142.       |          long unsigned int
  143. [50/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
  144. [51/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp.obj
  145. FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp.obj
  146. ccache /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ -DBUILD_VERSION=v2.7.99-2750-g7f5eb921dc8b -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/dhruva/zephyrproject/zephyr/kernel/include -I/home/dhruva/zephyrproject/zephyr/arch/arm/include -I/home/dhruva/zephyrproject/zephyr/include -I/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/samd21 -I/home/dhruva/zephyrproject/zephyr/drivers -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/common/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -isystem /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -fcheck-new -fno-exceptions -fno-rtti -imacros /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -imacros /home/dhruva/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dhruva/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -nostdinc -nostdinc++ -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp.obj -MF zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp.obj -c /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp
  147. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
  148.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp:30:
  149. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
  150.    37 | static inline int iscntrl(int c)
  151.       |                   ^~~~~~~
  152. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:22,
  153.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
  154.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp:30:
  155. /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
  156.    72 | static inline int iscntrl(int c)
  157.       |                   ^~~~~~~
  158. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
  159.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp:30:
  160. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
  161. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h:76:10: error: could not convert 'dwMs' from 'long unsigned int' to 'k_timeout_t'
  162.    76 |  k_sleep(dwMs);
  163.       |          ^~~~
  164.       |          |
  165.       |          long unsigned int
  166. [52/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp.obj
  167. FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp.obj
  168. ccache /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ -DBUILD_VERSION=v2.7.99-2750-g7f5eb921dc8b -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/dhruva/zephyrproject/zephyr/kernel/include -I/home/dhruva/zephyrproject/zephyr/arch/arm/include -I/home/dhruva/zephyrproject/zephyr/include -I/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/samd21 -I/home/dhruva/zephyrproject/zephyr/drivers -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/common/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -isystem /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -fcheck-new -fno-exceptions -fno-rtti -imacros /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -imacros /home/dhruva/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dhruva/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -nostdinc -nostdinc++ -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp.obj -MF zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp.obj -c /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp
  169. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
  170.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:22:
  171. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
  172.    37 | static inline int iscntrl(int c)
  173.       |                   ^~~~~~~
  174. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WString.h:28,
  175.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.h:25,
  176.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.h:26,
  177.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/HardwareSerial.h:24,
  178.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.h:26,
  179.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:21:
  180. /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
  181.    72 | static inline int iscntrl(int c)
  182.       |                   ^~~~~~~
  183. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
  184.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:22:
  185. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
  186. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h:76:10: error: could not convert 'dwMs' from 'long unsigned int' to 'k_timeout_t'
  187.    76 |  k_sleep(dwMs);
  188.       |          ^~~~
  189.       |          |
  190.       |          long unsigned int
  191. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp: In member function 'virtual void Uart::begin_impl(long unsigned int, uint16_t)':
  192. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:95:46: error: invalid conversion from 'void (*)(void*)' to 'uart_irq_callback_user_data_t' {aka 'void (*)(const device*, void*)'} [-fpermissive]
  193.    95 |  uart_irq_callback_user_data_set(uart, Uart::IrqDispatch, this);
  194.       |                                        ~~~~~~^~~~~~~~~~~
  195.       |                                              |
  196.       |                                              void (*)(void*)
  197. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:20:
  198. /home/dhruva/zephyrproject/zephyr/include/drivers/uart.h:1433:40: note:   initializing argument 2 of 'void uart_irq_callback_user_data_set(const device*, uart_irq_callback_user_data_t, void*)'
  199.  1433 |          uart_irq_callback_user_data_t cb,
  200.       |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  201. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp: In member function 'void Uart::IrqHandler()':
  202. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:139:56: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
  203.   139 |    int written = uart_fifo_fill(uart, const_cast<const u8_t*>(txbuffer)+txidx, txcount-txidx);
  204.       |                                                        ^~~~
  205. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:139:56: error: expected '>' before 'u8_t'
  206. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:139:56: error: expected '(' before 'u8_t'
  207.   139 |    int written = uart_fifo_fill(uart, const_cast<const u8_t*>(txbuffer)+txidx, txcount-txidx);
  208.       |                                                        ^~~~
  209.       |                                                        (
  210. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:139:56: error: 'u8_t' was not declared in this scope
  211.   139 |    int written = uart_fifo_fill(uart, const_cast<const u8_t*>(txbuffer)+txidx, txcount-txidx);
  212.       |                                                        ^~~~
  213. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:139:61: error: expected primary-expression before '>' token
  214.   139 |    int written = uart_fifo_fill(uart, const_cast<const u8_t*>(txbuffer)+txidx, txcount-txidx);
  215.       |                                                             ^
  216. [53/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp.obj
  217. FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp.obj
  218. ccache /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ -DBUILD_VERSION=v2.7.99-2750-g7f5eb921dc8b -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/dhruva/zephyrproject/zephyr/kernel/include -I/home/dhruva/zephyrproject/zephyr/arch/arm/include -I/home/dhruva/zephyrproject/zephyr/include -I/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/samd21 -I/home/dhruva/zephyrproject/zephyr/drivers -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/common/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -isystem /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -fcheck-new -fno-exceptions -fno-rtti -imacros /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -imacros /home/dhruva/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dhruva/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -nostdinc -nostdinc++ -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp.obj -MF zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp.obj -c /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp
  219. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
  220.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp:75:
  221. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
  222.    37 | static inline int iscntrl(int c)
  223.       |                   ^~~~~~~
  224. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:22,
  225.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
  226.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp:75:
  227. /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
  228.    72 | static inline int iscntrl(int c)
  229.       |                   ^~~~~~~
  230. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
  231.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp:75:
  232. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
  233. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h:76:10: error: could not convert 'dwMs' from 'long unsigned int' to 'k_timeout_t'
  234.    76 |  k_sleep(dwMs);
  235.       |          ^~~~
  236.       |          |
  237.       |          long unsigned int
  238. [54/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp.obj
  239. FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp.obj
  240. ccache /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ -DBUILD_VERSION=v2.7.99-2750-g7f5eb921dc8b -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/dhruva/zephyrproject/zephyr/kernel/include -I/home/dhruva/zephyrproject/zephyr/arch/arm/include -I/home/dhruva/zephyrproject/zephyr/include -I/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/samd21 -I/home/dhruva/zephyrproject/zephyr/drivers -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/common/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -isystem /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -fcheck-new -fno-exceptions -fno-rtti -imacros /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -imacros /home/dhruva/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dhruva/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -nostdinc -nostdinc++ -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp.obj -MF zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp.obj -c /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp
  241. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
  242.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp:25:
  243. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
  244.    37 | static inline int iscntrl(int c)
  245.       |                   ^~~~~~~
  246. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:22,
  247.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
  248.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp:25:
  249. /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
  250.    72 | static inline int iscntrl(int c)
  251.       |                   ^~~~~~~
  252. In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
  253.                  from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp:25:
  254. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
  255. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h:76:10: error: could not convert 'dwMs' from 'long unsigned int' to 'k_timeout_t'
  256.    76 |  k_sleep(dwMs);
  257.       |          ^~~~
  258.       |          |
  259.       |          long unsigned int
  260. [55/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c.obj
  261. FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c.obj
  262. ccache /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBUILD_VERSION=v2.7.99-2750-g7f5eb921dc8b -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/dhruva/zephyrproject/zephyr/kernel/include -I/home/dhruva/zephyrproject/zephyr/arch/arm/include -I/home/dhruva/zephyrproject/zephyr/include -I/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/samd21 -I/home/dhruva/zephyrproject/zephyr/drivers -I/home/dhruva/zephyrproject/zephyr/soc/arm/atmel_sam0/common/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/. -I/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -isystem /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -Os -imacros /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -imacros /home/dhruva/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dhruva/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dhruva/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c.obj -MF zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c.obj -c /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c
  263. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:35:43: warning: excess elements in array initializer
  264.    35 | static int w_pin_mode[W_GPIO_PIN_NUM] = { 0 };
  265.       |                                           ^
  266. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:35:43: note: (near initialization for 'w_pin_mode')
  267. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:36:15: warning: excess elements in array initializer
  268.    36 | static struct w_gpio_callbacks w_callbacks[W_GPIO_PIN_NUM] = { 0 };
  269.       |               ^~~~~~~~~~~~~~~~
  270. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:36:15: note: (near initialization for 'w_callbacks')
  271. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:38:73: error: unknown type name 'u32_t'; did you mean 'uint32_t'?
  272.    38 | static void gpio_handler(struct device *port, struct gpio_callback *cb, u32_t pins)
  273.       |                                                                         ^~~~~
  274.       |                                                                         uint32_t
  275. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c: In function 'w_configure_gpio_interrupt':
  276. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:55:13: error: 'GPIO_DIR_IN' undeclared (first use in this function); did you mean 'GPIO_DIR_MASK'?
  277.    55 |   pinconf = GPIO_DIR_IN;
  278.       |             ^~~~~~~~~~~
  279.       |             GPIO_DIR_MASK
  280. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:55:13: note: each undeclared identifier is reported only once for each function it appears in
  281. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:58:13: error: 'GPIO_DIR_OUT' undeclared (first use in this function); did you mean 'GPIO_INPUT'?
  282.    58 |   pinconf = GPIO_DIR_OUT;
  283.       |             ^~~~~~~~~~~~
  284.       |             GPIO_INPUT
  285. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:61:27: error: 'GPIO_PUD_PULL_UP' undeclared (first use in this function); did you mean 'GPIO_PULL_UP'?
  286.    61 |   pinconf = GPIO_DIR_IN | GPIO_PUD_PULL_UP;
  287.       |                           ^~~~~~~~~~~~~~~~
  288.       |                           GPIO_PULL_UP
  289. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:64:27: error: 'GPIO_PUD_PULL_DOWN' undeclared (first use in this function); did you mean 'GPIO_PULL_DOWN'?
  290.    64 |   pinconf = GPIO_DIR_IN | GPIO_PUD_PULL_DOWN;
  291.       |                           ^~~~~~~~~~~~~~~~~~
  292.       |                           GPIO_PULL_DOWN
  293. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:72:16: error: 'GPIO_INT' undeclared (first use in this function); did you mean 'GPIO_INPUT'?
  294.    72 |    pinconf |= (GPIO_INT | GPIO_INT_LEVEL | GPIO_INT_ACTIVE_LOW);
  295.       |                ^~~~~~~~
  296.       |                GPIO_INPUT
  297. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:72:27: error: 'GPIO_INT_LEVEL' undeclared (first use in this function); did you mean 'GPIO_INT_LEVEL_LOW'?
  298.    72 |    pinconf |= (GPIO_INT | GPIO_INT_LEVEL | GPIO_INT_ACTIVE_LOW);
  299.       |                           ^~~~~~~~~~~~~~
  300.       |                           GPIO_INT_LEVEL_LOW
  301. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:72:44: error: 'GPIO_INT_ACTIVE_LOW' undeclared (first use in this function); did you mean 'GPIO_ACTIVE_LOW'?
  302.    72 |    pinconf |= (GPIO_INT | GPIO_INT_LEVEL | GPIO_INT_ACTIVE_LOW);
  303.       |                                            ^~~~~~~~~~~~~~~~~~~
  304.       |                                            GPIO_ACTIVE_LOW
  305. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:75:44: error: 'GPIO_INT_ACTIVE_HIGH' undeclared (first use in this function); did you mean 'GPIO_ACTIVE_HIGH'?
  306.    75 |    pinconf |= (GPIO_INT | GPIO_INT_LEVEL | GPIO_INT_ACTIVE_HIGH);
  307.       |                                            ^~~~~~~~~~~~~~~~~~~~
  308.       |                                            GPIO_ACTIVE_HIGH
  309. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:78:44: error: 'GPIO_INT_DOUBLE_EDGE' undeclared (first use in this function); did you mean 'GPIO_INT_MODE_EDGE'?
  310.    78 |    pinconf |= (GPIO_INT | GPIO_INT_EDGE  | GPIO_INT_DOUBLE_EDGE);
  311.       |                                            ^~~~~~~~~~~~~~~~~~~~
  312.       |                                            GPIO_INT_MODE_EDGE
  313. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:96:52: error: 'gpio_handler' undeclared (first use in this function)
  314.    96 |   gpio_init_callback(&w_callbacks[pin].z_callback, gpio_handler, BIT(W_PIN2PORTPIN(pin)));
  315.       |                                                    ^~~~~~~~~~~~
  316. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:98:3: warning: implicit declaration of function 'gpio_pin_enable_callback'; did you mean 'gpio_remove_callback'? [-Wimplicit-function-declaration]
  317.    98 |   gpio_pin_enable_callback(device_get_binding(W_PIN2PORT(pin)), pin);
  318.       |   ^~~~~~~~~~~~~~~~~~~~~~~~
  319.       |   gpio_remove_callback
  320. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c: In function 'detachInterrupt':
  321. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:119:2: warning: implicit declaration of function 'gpio_pin_disable_callback'; did you mean 'gpio_init_callback'? [-Wimplicit-function-declaration]
  322.   119 |  gpio_pin_disable_callback(device_get_binding(W_PIN2PORT(pin)), pin);
  323.       |  ^~~~~~~~~~~~~~~~~~~~~~~~~
  324.       |  gpio_init_callback
  325. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c: In function 'digitalWrite':
  326. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:131:2: warning: implicit declaration of function 'gpio_pin_write'; did you mean 'gpio_pin_set'? [-Wimplicit-function-declaration]
  327.   131 |  gpio_pin_write(device_get_binding(W_PIN2PORT(ulPin)), W_PIN2PORTPIN(ulPin), ulVal ? 1 : 0);
  328.       |  ^~~~~~~~~~~~~~
  329.       |  gpio_pin_set
  330. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c: In function 'digitalRead':
  331. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:136:2: error: unknown type name 'u32_t'; did you mean 'uint32_t'?
  332.   136 |  u32_t value;
  333.       |  ^~~~~
  334.       |  uint32_t
  335. /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:137:2: warning: implicit declaration of function 'gpio_pin_read'; did you mean 'gpio_pin_set'? [-Wimplicit-function-declaration]
  336.   137 |  gpio_pin_read(device_get_binding(W_PIN2PORT(ulPin)), W_PIN2PORTPIN(ulPin), &value);
  337.       |  ^~~~~~~~~~~~~
  338.       |  gpio_pin_set
  339. ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement