Sensor Bosh BME680 with supported board rak4631_nrf52840 - build error

Good morning,

I am try to build a application from example list, Bosh bme680 with supported board rak4631_nrf52840, and I am receiving a error message, but if I try to build using a nrf52840dk_nrf52840 the build process is completed without error.

Below I pasted the errors messages

In file included from C:/ncs/v2.6.1/zephyr/include/zephyr/sys/util_macro.h:34,
from C:/ncs/v2.6.1/zephyr/include/zephyr/sys/atomic.h:16,
from C:/ncs/v2.6.1/zephyr/include/zephyr/kernel_includes.h:25,
from C:/ncs/v2.6.1/zephyr/include/zephyr/kernel.h:17,
from C:/nordic/myapps/bme680/src/main.c:7:

In file included from C:/ncs/v2.6.1/zephyr/include/zephyr/sys/util_macro.h:34,
from C:/ncs/v2.6.1/zephyr/include/zephyr/sys/atomic.h:16,
from C:/ncs/v2.6.1/zephyr/include/zephyr/kernel_includes.h:25,
from C:/ncs/v2.6.1/zephyr/include/zephyr/kernel.h:17,
from C:/nordic/myapps/bme680/src/main.c:7:
C:/nordic/myapps/bme680/src/main.c: In function 'main':
C:/ncs/v2.6.1/zephyr/include/zephyr/sys/util.h:94:55: error: size of unnamed array is negative
94 | #define ZERO_OR_COMPILE_ERROR(cond) ((int) sizeof(char[1 - 2 * !(cond)]) - 1)
| ^
C:/ncs/v2.6.1/zephyr/include/zephyr/sys/util_internal.h:72:26: note: in definition of macro '__DEBRACKET'
72 | #define __DEBRACKET(...) __VA_ARGS__
| ^~~~~~~~~~~
C:/ncs/v2.6.1/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
64 | __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
| ^~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.6.1/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_CODE'
59 | __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
| ^~~~~~~~~~~
C:/ncs/v2.6.1/zephyr/include/zephyr/sys/util_macro.h:180:9: note: in expansion of macro 'Z_COND_CODE_1'
180 | Z_COND_CODE_1(_flag, _if_1_code, _else_code)
| ^~~~~~~~~~~~~
C:/ncs/v2.6.1/zephyr/include/zephyr/device.h:284:9: note: in expansion of macro 'COND_CODE_1'
284 | COND_CODE_1(DT_HAS_COMPAT_STATUS_OKAY(compat), \
| ^~~~~~~~~~~
C:/ncs/v2.6.1/zephyr/include/zephyr/device.h:286:22: note: in expansion of macro 'ZERO_OR_COMPILE_ERROR'
286 | (ZERO_OR_COMPILE_ERROR(0)))
| ^~~~~~~~~~~~~~~~~~~~~
C:/nordic/myapps/bme680/src/main.c:14:42: note: in expansion of macro 'DEVICE_DT_GET_ONE'
14 | const struct device *const dev = DEVICE_DT_GET_ONE(bosch_bme680);
| ^~~~~~~~~~~~~~~~~

[52/147] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' --build 'c:\nordic\myapps\bme680\build'

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it

Could you help me?

Claudio

Related