Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- └─❯ west build -p -b arduino_zero samples/basic/blinky
- -- west build: making build dir /home/dhruva/zephyrproject/zephyr/build pristine
- -- west build: generating a build system
- -- Application: /home/dhruva/zephyrproject/zephyr/samples/basic/blinky
- -- Zephyr version: 2.7.99 (/home/dhruva/zephyrproject/zephyr), build: v2.7.99-2750-g7f5eb921dc8b
- -- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.4") found components: Interpreter
- -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
- -- Board: arduino_zero
- -- Cache files will be written to: /home/dhruva/.cache/zephyr
- -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
- -- Found host-tools: zephyr 0.14.2 (/home/dhruva/zephyr-sdk-0.14.2)
- -- 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")
- -- Found toolchain: zephyr 0.14.2 (/home/dhruva/zephyr-sdk-0.14.2)
- -- Found BOARD.dts: /home/dhruva/zephyrproject/zephyr/boards/arm/arduino_zero/arduino_zero.dts
- -- Generated zephyr.dts: /home/dhruva/zephyrproject/zephyr/build/zephyr/zephyr.dts
- -- Generated devicetree_unfixed.h: /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
- -- Generated device_extern.h: /home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/device_extern.h
- -- Including generated dts.cmake file: /home/dhruva/zephyrproject/zephyr/build/zephyr/dts.cmake
- Parsing /home/dhruva/zephyrproject/zephyr/Kconfig
- Loaded configuration '/home/dhruva/zephyrproject/zephyr/boards/arm/arduino_zero/arduino_zero_defconfig'
- Merged configuration '/home/dhruva/zephyrproject/zephyr/samples/basic/blinky/prj.conf'
- Configuration saved to '/home/dhruva/zephyrproject/zephyr/build/zephyr/.config'
- Kconfig header saved to '/home/dhruva/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
- -- The C compiler identification is GNU 10.3.0
- -- The CXX compiler identification is GNU 10.3.0
- -- The ASM compiler identification is GNU
- -- Found assembler: /home/dhruva/zephyr-sdk-0.14.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /home/dhruva/zephyrproject/zephyr/build
- -- west build: building application
- [1/155] Preparing syscall dependency handling
- [2/155] Generating misc/generated/syscalls_subdirs.trigger
- [3/155] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
- [4/155] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
- [5/155] Generating include/generated/driver-validation.h
- [6/155] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
- [7/155] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
- [8/155] Generating include/generated/offsets.h
- [9/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
- [10/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
- [11/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
- [12/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
- [13/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
- [14/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
- [15/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
- [16/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
- [17/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
- [18/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
- [19/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
- [20/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
- [21/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
- [22/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
- [23/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
- [24/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
- [25/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
- [26/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
- [27/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
- [28/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
- [29/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
- [30/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
- [31/155] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
- [32/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/HardwareSerial.cpp.obj
- [33/155] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/atmel_sam0/common/soc_port.c.obj
- [34/155] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/atmel_sam0/common/soc_samd2x.c.obj
- [35/155] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
- [36/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/itoa.c.obj
- [37/155] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/pinmux/pinmux_sam0.c.obj
- [38/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/IPAddress.cpp.obj
- [39/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Tone.cpp.obj
- [40/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring.c.obj
- [41/155] Building C object CMakeFiles/app.dir/src/main.c.obj
- [42/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_shift.c.obj
- [43/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WMath.cpp.obj
- [44/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WString.cpp.obj
- [45/155] Linking C static library app/libapp.a
- [46/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c.obj
- FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c.obj
- 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
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c:20:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'delay':
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h:76:10: error: incompatible type for argument 1 of 'k_sleep'
- 76 | k_sleep(dwMs);
- | ^~~~
- | |
- | long unsigned int
- In file included from /home/dhruva/zephyrproject/zephyr/include/kernel.h:5911,
- from /home/dhruva/zephyrproject/zephyr/include/zephyr.h:18,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:31,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/pulse.c:20:
- /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 | static inline int32_t k_sleep(k_timeout_t timeout)
- | ~~~~~~~~~~~~^~~~~~~
- [47/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/variants/_FALLBACK_/variant.cpp.obj
- [48/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c.obj
- FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c.obj
- 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
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c:19:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'delay':
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h:76:10: error: incompatible type for argument 1 of 'k_sleep'
- 76 | k_sleep(dwMs);
- | ^~~~
- | |
- | long unsigned int
- In file included from /home/dhruva/zephyrproject/zephyr/include/kernel.h:5911,
- from /home/dhruva/zephyrproject/zephyr/include/zephyr.h:18,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:31,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c:19:
- /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 | static inline int32_t k_sleep(k_timeout_t timeout)
- | ~~~~~~~~~~~~^~~~~~~
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c: At top level:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_analog.c:27:10: fatal error: adc.h: No such file or directory
- 27 | #include <adc.h>
- | ^~~~~~~
- compilation terminated.
- [49/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp.obj
- FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp.obj
- 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
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp:20:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
- 37 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:22,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp:20:
- /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
- 72 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/main.cpp:20:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
- /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'
- 76 | k_sleep(dwMs);
- | ^~~~
- | |
- | long unsigned int
- [50/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
- [51/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp.obj
- FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp.obj
- 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
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp:30:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
- 37 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:22,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp:30:
- /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
- 72 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.cpp:30:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
- /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'
- 76 | k_sleep(dwMs);
- | ^~~~
- | |
- | long unsigned int
- [52/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp.obj
- FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp.obj
- 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
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:22:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
- 37 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WString.h:28,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Print.h:25,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.h:26,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/HardwareSerial.h:24,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.h:26,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:21:
- /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
- 72 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:22:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
- /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'
- 76 | k_sleep(dwMs);
- | ^~~~
- | |
- | long unsigned int
- /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)':
- /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]
- 95 | uart_irq_callback_user_data_set(uart, Uart::IrqDispatch, this);
- | ~~~~~~^~~~~~~~~~~
- | |
- | void (*)(void*)
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:20:
- /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*)'
- 1433 | uart_irq_callback_user_data_t cb,
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp: In member function 'void Uart::IrqHandler()':
- /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]
- 139 | int written = uart_fifo_fill(uart, const_cast<const u8_t*>(txbuffer)+txidx, txcount-txidx);
- | ^~~~
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:139:56: error: expected '>' before 'u8_t'
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:139:56: error: expected '(' before 'u8_t'
- 139 | int written = uart_fifo_fill(uart, const_cast<const u8_t*>(txbuffer)+txidx, txcount-txidx);
- | ^~~~
- | (
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:139:56: error: 'u8_t' was not declared in this scope
- 139 | int written = uart_fifo_fill(uart, const_cast<const u8_t*>(txbuffer)+txidx, txcount-txidx);
- | ^~~~
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/UartDevice.cpp:139:61: error: expected primary-expression before '>' token
- 139 | int written = uart_fifo_fill(uart, const_cast<const u8_t*>(txbuffer)+txidx, txcount-txidx);
- | ^
- [53/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp.obj
- FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp.obj
- 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
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp:75:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
- 37 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:22,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp:75:
- /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
- 72 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_private.cpp:75:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
- /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'
- 76 | k_sleep(dwMs);
- | ^~~~
- | |
- | long unsigned int
- [54/155] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp.obj
- FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp.obj
- 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
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp:25:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:37:19: error: redefinition of 'int iscntrl(int)'
- 37 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/WCharacter.h:22,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:81,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp:25:
- /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/ctype.h:72:19: note: 'int iscntrl(int)' previously defined here
- 72 | static inline int iscntrl(int c)
- | ^~~~~~~
- In file included from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Arduino.h:88,
- from /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/Stream.cpp:25:
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/delay.h: In function 'void delay(long unsigned int)':
- /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'
- 76 | k_sleep(dwMs);
- | ^~~~
- | |
- | long unsigned int
- [55/155] Building C object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c.obj
- FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c.obj
- 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
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:35:43: warning: excess elements in array initializer
- 35 | static int w_pin_mode[W_GPIO_PIN_NUM] = { 0 };
- | ^
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:35:43: note: (near initialization for 'w_pin_mode')
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:36:15: warning: excess elements in array initializer
- 36 | static struct w_gpio_callbacks w_callbacks[W_GPIO_PIN_NUM] = { 0 };
- | ^~~~~~~~~~~~~~~~
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:36:15: note: (near initialization for 'w_callbacks')
- /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'?
- 38 | static void gpio_handler(struct device *port, struct gpio_callback *cb, u32_t pins)
- | ^~~~~
- | uint32_t
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c: In function 'w_configure_gpio_interrupt':
- /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'?
- 55 | pinconf = GPIO_DIR_IN;
- | ^~~~~~~~~~~
- | GPIO_DIR_MASK
- /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
- /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'?
- 58 | pinconf = GPIO_DIR_OUT;
- | ^~~~~~~~~~~~
- | GPIO_INPUT
- /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'?
- 61 | pinconf = GPIO_DIR_IN | GPIO_PUD_PULL_UP;
- | ^~~~~~~~~~~~~~~~
- | GPIO_PULL_UP
- /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'?
- 64 | pinconf = GPIO_DIR_IN | GPIO_PUD_PULL_DOWN;
- | ^~~~~~~~~~~~~~~~~~
- | GPIO_PULL_DOWN
- /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'?
- 72 | pinconf |= (GPIO_INT | GPIO_INT_LEVEL | GPIO_INT_ACTIVE_LOW);
- | ^~~~~~~~
- | GPIO_INPUT
- /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'?
- 72 | pinconf |= (GPIO_INT | GPIO_INT_LEVEL | GPIO_INT_ACTIVE_LOW);
- | ^~~~~~~~~~~~~~
- | GPIO_INT_LEVEL_LOW
- /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'?
- 72 | pinconf |= (GPIO_INT | GPIO_INT_LEVEL | GPIO_INT_ACTIVE_LOW);
- | ^~~~~~~~~~~~~~~~~~~
- | GPIO_ACTIVE_LOW
- /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'?
- 75 | pinconf |= (GPIO_INT | GPIO_INT_LEVEL | GPIO_INT_ACTIVE_HIGH);
- | ^~~~~~~~~~~~~~~~~~~~
- | GPIO_ACTIVE_HIGH
- /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'?
- 78 | pinconf |= (GPIO_INT | GPIO_INT_EDGE | GPIO_INT_DOUBLE_EDGE);
- | ^~~~~~~~~~~~~~~~~~~~
- | GPIO_INT_MODE_EDGE
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c:96:52: error: 'gpio_handler' undeclared (first use in this function)
- 96 | gpio_init_callback(&w_callbacks[pin].z_callback, gpio_handler, BIT(W_PIN2PORTPIN(pin)));
- | ^~~~~~~~~~~~
- /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]
- 98 | gpio_pin_enable_callback(device_get_binding(W_PIN2PORT(pin)), pin);
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- | gpio_remove_callback
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c: In function 'detachInterrupt':
- /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]
- 119 | gpio_pin_disable_callback(device_get_binding(W_PIN2PORT(pin)), pin);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- | gpio_init_callback
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c: In function 'digitalWrite':
- /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]
- 131 | gpio_pin_write(device_get_binding(W_PIN2PORT(ulPin)), W_PIN2PORTPIN(ulPin), ulVal ? 1 : 0);
- | ^~~~~~~~~~~~~~
- | gpio_pin_set
- /home/dhruva/zephyrproject/modules/lib/arduino-on-zephyr/cores/arduino/wiring_digital.c: In function 'digitalRead':
- /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'?
- 136 | u32_t value;
- | ^~~~~
- | uint32_t
- /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]
- 137 | gpio_pin_read(device_get_binding(W_PIN2PORT(ulPin)), W_PIN2PORTPIN(ulPin), &value);
- | ^~~~~~~~~~~~~
- | gpio_pin_set
- ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement