Closed DhruvaG2000 closed 1 year ago
west build -p -b arduino_nano_33_iot samples/blinky_arduino failed for other samples as well with following errors:
west build -p -b arduino_nano_33_iot samples/blinky_arduino
[76/160] Building CXX object zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/zephyrCommon.cpp.obj FAILED: zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/zephyrCommon.cpp.obj ccache /home/dhruva/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ -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/modules/lib/Arduino-Zephyr-API/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-Zephyr-API/cores/arduino/. -I/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/../../variants -I/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/variants/. -I/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/variants/arduino_nano_33_iot -I/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/libraries/Wire/. -I/home/dhruva/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/dhruva/zephyrproject/modules/hal/atmel/include -I/home/dhruva/zephyrproject/modules/hal/atmel/asf/sam0/include/samd21 -I/home/dhruva/zephyrproject/zephyr/modules/hal_nxp/. -isystem /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/dhruva/zephyrproject/zephyr/subsys/cpp/include -isystem /home/dhruva/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -isystem /home/dhruva/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -fno-strict-aliasing -Os -fcheck-new -std=c++11 -Wno-register -fno-exceptions -fno-rtti -imacros /home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/build/zephyr/include/generated/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/home/dhruva/zephyr-sdk-0.15.0/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/dhruva/zephyrproject/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/samples/blinky_arduino=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++ -Wno-unused-variable -Wno-comment -MD -MT zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/zephyrCommon.cpp.obj -MF zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/zephyrCommon.cpp.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/zephyrCommon.cpp.obj -c /home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/zephyrCommon.cpp In file included from /home/dhruva/zephyrproject/zephyr/include/zephyr/toolchain/gcc.h:88, from /home/dhruva/zephyrproject/zephyr/include/zephyr/toolchain.h:50, from /home/dhruva/zephyrproject/zephyr/lib/libc/minimal/include/string.h:13, from /home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/./api/String.h:28, from /home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/./api/IPAddress.h:24, from /home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/./api/ArduinoAPI.h:30, from /home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/./Arduino.h:7, from /home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/cores/arduino/zephyrCommon.cpp:7: /home/dhruva/zephyrproject/zephyr/include/zephyr/device.h:104:39: error: '__device_dts_ord_DT_N_NODELABEL_i2c0_ORD' was not declared in this scope 104 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name) | ^~~~~~~~~ /home/dhruva/zephyrproject/zephyr/include/zephyr/device.h:274:37: note: in expansion of macro 'DEVICE_NAME_GET' 274 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id)) | ^~~~~~~~~~~~~~~ /home/dhruva/zephyrproject/zephyr/include/zephyr/device.h:292:34: note: in expansion of macro 'DEVICE_DT_NAME_GET' 292 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) | ^~~~~~~~~~~~~~~~~~ /home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/variants/arduino_nano_33_iot/arduino_nano_33_iot_pinmap.h:86:39: note: in expansion of macro 'DEVICE_DT_GET' 86 | const static struct device *i2c_dev = DEVICE_DT_GET(DT_NODELABEL(i2c0)); | ^~~~~~~~~~~~~ [79/160] Building C object zephyr/drivers/interrupt_controller/CMakeFiles/drivers__interrupt_controller.dir/intc_sam0_eic.c.obj ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/dhruva/zephyrproject/modules/lib/Arduino-Zephyr-API/build
@beriberikix since you have the board and also added the variant can you please take a look at this?
west build -p -b arduino_nano_33_iot samples/blinky_arduino
failed for other samples as well with following errors:@beriberikix since you have the board and also added the variant can you please take a look at this?