You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Unable to build sample bluetooth application st_ble_sensor for steval_fcu001v1 board
What have you tried to diagnose or workaround this issue?
I tried the same build for other boards and it worked without any error:
board nrf52840dk_nrf52840: successful build without error
board nucleo_wb55rg: successful build without error
To Reproduce
Steps to reproduce the behavior:
git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
rm -rf build
west build -b steval_fcu001v1 samples/bluetooth/st_ble_sensor
See error
Expected behavior
The build for samples/bluetooth/st_ble_sensor should run without errors
Impact
Use the kernel as a development platform for drones
Logs and console output
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/msam/zephyr_2.3.x/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor
-- Zephyr version: 2.3.99 (/home/msam/zephyr_2.3.x/zephyrproject/zephyr)
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.2") found components: Interpreter
-- Board: steval_fcu001v1
-- Found toolchain: zephyr (/home/msam/zephyr-sdk)
-- Found west: /home/msam/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")
-- Found dtc: /home/msam/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/boards/arm/steval_fcu001v1/steval_fcu001v1.dts
-- Generated zephyr.dts: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
Parsing /home/msam/zephyr_2.3.x/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/msam/zephyr_2.3.x/zephyrproject/zephyr/boards/arm/steval_fcu001v1/steval_fcu001v1_defconfig'
Merged configuration '/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/prj.conf'
Configuration saved to '/home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/msam/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Cache files will be written to: /home/msam/.cache/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/build
-- west build: building application
[1/161] Preparing syscall dependency handling
[32/161] Building C object CMakeFiles/app.dir/src/button_svc.c.obj
FAILED: CMakeFiles/app.dir/src/button_svc.c.obj
ccache /home/msam/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBUILD_VERSION=zephyr-v2.3.0-1324-g1c2f127e3fd1 -DCORE_CM4 -DHSE_VALUE=16000000 -DKERNEL -DSTM32F401xC -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include -Izephyr/include/generated -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/soc/arm/st_stm32/stm32f4 -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/drivers -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/soc/arm/st_stm32/common -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/subsys/bluetooth -I/home/msam/zephyr_2.3.x/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/msam/zephyr_2.3.x/zephyrproject/modules/hal/stm32/stm32cube/stm32f4xx/soc -I/home/msam/zephyr_2.3.x/zephyrproject/modules/hal/stm32/stm32cube/stm32f4xx/drivers/include -I/home/msam/zephyr_2.3.x/zephyrproject/modules/hal/stm32/stm32cube/stm32f4xx/drivers/include/Legacy -I/home/msam/zephyr_2.3.x/zephyrproject/modules/crypto/tinycrypt/lib/include -isystem /home/msam/zephyr_2.3.x/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/msam/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include -isystem /home/msam/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include-fixed -Os -imacros/home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m4 -mthumb -mabi=aapcs -imacros/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-address-of-packed-member -Wno-pointer-sign -Wpointer-arith -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/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/msam/zephyr_2.3.x/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/msam/zephyr_2.3.x/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/button_svc.c.obj -MF CMakeFiles/app.dir/src/button_svc.c.obj.d -o CMakeFiles/app.dir/src/button_svc.c.obj -c /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/arch/arm/aarch32/arch.h:20,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/arch/cpu.h:19,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel_includes.h:38,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel.h:17,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/zephyr.h:18,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:17:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c: In function 'button_init':
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: error: 'DT_N_ALIAS_sw0_P_gpios_IDX_0_PH_P_label' undeclared (first use in this function)
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:565:2: note: in expansion of macro 'DT_PROP'
565 | DT_PROP(DT_PHANDLE_BY_IDX(node_id, phs, idx), prop)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:393:32: note: in expansion of macro 'DT_CAT'
393 | #define DT_PROP(node_id, prop) DT_CAT(node_id, P##prop)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:764:2: note: in expansion of macro 'DT_PROP'
764 | DT_PROP(node_id, prop##IDX##idx##PH)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:565:10: note: in expansion of macro 'DT_PHANDLE_BY_IDX'
565 | DT_PROP(DT_PHANDLE_BY_IDX(node_id, phs, idx), prop)
| ^~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:61:2: note: in expansion of macro 'DT_PROP_BY_PHANDLE_IDX'
61 | DT_PROP_BY_PHANDLE_IDX(node_id, gpio_pha, idx, label)
| ^~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:72:2: note: in expansion of macro 'DT_GPIO_LABEL_BY_IDX'
72 | DT_GPIO_LABEL_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:30:21: note: in expansion of macro 'DT_GPIO_LABEL'
30 | #define BUT_PORT DT_GPIO_LABEL(DT_ALIAS(sw0), gpios)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:30:35: note: in expansion of macro 'DT_ALIAS'
30 | #define BUT_PORT DT_GPIO_LABEL(DT_ALIAS(sw0), gpios)
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:69:34: note: in expansion of macro 'BUT_PORT'
69 | button_dev = device_get_binding(BUT_PORT);
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: note: each undeclared identifier is reported only once for each function it appears in
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:565:2: note: in expansion of macro 'DT_PROP'
565 | DT_PROP(DT_PHANDLE_BY_IDX(node_id, phs, idx), prop)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:393:32: note: in expansion of macro 'DT_CAT'
393 | #define DT_PROP(node_id, prop) DT_CAT(node_id, P##prop)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:764:2: note: in expansion of macro 'DT_PROP'
764 | DT_PROP(node_id, prop##IDX##idx##PH)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:565:10: note: in expansion of macro 'DT_PHANDLE_BY_IDX'
565 | DT_PROP(DT_PHANDLE_BY_IDX(node_id, phs, idx), prop)
| ^~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:61:2: note: in expansion of macro 'DT_PROP_BY_PHANDLE_IDX'
61 | DT_PROP_BY_PHANDLE_IDX(node_id, gpio_pha, idx, label)
| ^~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:72:2: note: in expansion of macro 'DT_GPIO_LABEL_BY_IDX'
72 | DT_GPIO_LABEL_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:30:21: note: in expansion of macro 'DT_GPIO_LABEL'
30 | #define BUT_PORT DT_GPIO_LABEL(DT_ALIAS(sw0), gpios)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:30:35: note: in expansion of macro 'DT_ALIAS'
30 | #define BUT_PORT DT_GPIO_LABEL(DT_ALIAS(sw0), gpios)
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:69:34: note: in expansion of macro 'BUT_PORT'
69 | button_dev = device_get_binding(BUT_PORT);
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: error: 'DT_N_ALIAS_sw0_P_gpios_IDX_0_VAL_pin' undeclared (first use in this function); did you mean 'DT_N_S_leds_S_led_2_P_gpios_IDX_0_VAL_pin'?
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:630:2: note: in expansion of macro 'DT_PROP'
630 | DT_PROP(node_id, pha##IDX##idx##VAL##cell)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:116:2: note: in expansion of macro 'DT_PHA_BY_IDX'
116 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:127:2: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
127 | DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:31:21: note: in expansion of macro 'DT_GPIO_PIN'
31 | #define BUT_PIN DT_GPIO_PIN(DT_ALIAS(sw0), gpios)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:31:33: note: in expansion of macro 'DT_ALIAS'
31 | #define BUT_PIN DT_GPIO_PIN(DT_ALIAS(sw0), gpios)
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:74:39: note: in expansion of macro 'BUT_PIN'
74 | ret = gpio_pin_configure(button_dev, BUT_PIN,
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: error: 'DT_N_ALIAS_sw0_P_gpios_IDX_0_VAL_flags' undeclared (first use in this function); did you mean 'DT_N_S_leds_S_led_2_P_gpios_IDX_0_VAL_flags'?
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:630:2: note: in expansion of macro 'DT_PROP'
630 | DT_PROP(node_id, pha##IDX##idx##VAL##cell)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:170:2: note: in expansion of macro 'DT_PHA_BY_IDX'
170 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, flags)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:181:2: note: in expansion of macro 'DT_GPIO_FLAGS_BY_IDX'
181 | DT_GPIO_FLAGS_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:75:6: note: in expansion of macro 'DT_GPIO_FLAGS'
75 | DT_GPIO_FLAGS(DT_ALIAS(sw0), gpios) |
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:75:20: note: in expansion of macro 'DT_ALIAS'
75 | DT_GPIO_FLAGS(DT_ALIAS(sw0), gpios) |
| ^~~~~~~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: error: 'DT_N_ALIAS_sw0_P_label' undeclared (first use in this function)
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:239:6: note: in definition of macro 'Z_LOG_TO_PRINTK'
239 | ##VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:393:32: note: in expansion of macro 'DT_CAT'
393 | #define DT_PROP(node_id, prop) DT_CAT(node_id, P##prop)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:479:27: note: in expansion of macro 'DT_PROP'
479 | #define DT_LABEL(node_id) DT_PROP(node_id, label)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:79:18: note: in expansion of macro 'DT_LABEL'
79 | ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:79:27: note: in expansion of macro 'DT_ALIAS'
79 | ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:47: note: format string is defined here
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:11: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | _LOG(level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:51: note: format string is defined here
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ~^
| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:11: warning: format '%d' expects argument of type 'int', but argument 3 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:291:27: note: in definition of macro '__LOG'
291 | log_printf_arg_checker(VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:47: note: format string is defined here
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:11: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:291:27: note: in definition of macro '__LOG'
291 | log_printf_arg_checker(VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:51: note: format string is defined here
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^
| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/sched_priq.h:9,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel_includes.h:23,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel.h:17,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/zephyr.h:18,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:17:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/sys/util.h:302:22: error: invalid operands to binary << (have 'long unsigned int' and 'log_arg_t *' {aka 'long unsigned int *'})
302 | #define BIT(n) (1UL << (n))
| ^
| |
| log_arg_t * {aka long unsigned int *}
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:85:7: note: in expansion of macro 'BIT'
85 | BIT(BUT_PIN));
| ^~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/sys/util.h:302:17: warning: passing argument 3 of 'gpio_init_callback' makes integer from pointer without a cast [-Wint-conversion]
302 | #define BIT(n) (1UL << (n))
| ^~~~~~~~~~~~
| |
| log_arg_t * {aka long unsigned int *}
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:85:7: note: in expansion of macro 'BIT'
85 | BIT(BUT_PIN));
| ^~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:18:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/drivers/gpio.h:1023:28: note: expected 'gpio_port_pins_t' {aka 'unsigned int'} but argument is of type 'log_arg_t *' {aka 'long unsigned int *'}
1023 | gpio_port_pins_t pin_mask)
| ~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/arch/arm/aarch32/arch.h:20,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/arch/cpu.h:19,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel_includes.h:38,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel.h:17,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/zephyr.h:18,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:17:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: warning: passing argument 2 of 'gpio_pin_interrupt_configure' makes integer from pointer without a cast [-Wint-conversion]
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~~~~~~
| |
| log_arg_t * {aka long unsigned int *}
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:630:2: note: in expansion of macro 'DT_PROP'
630 | DT_PROP(node_id, pha##IDX##idx##VAL##cell)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:116:2: note: in expansion of macro 'DT_PHA_BY_IDX'
116 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:127:2: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
127 | DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:31:21: note: in expansion of macro 'DT_GPIO_PIN'
31 | #define BUT_PIN DT_GPIO_PIN(DT_ALIAS(sw0), gpios)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:31:33: note: in expansion of macro 'DT_ALIAS'
31 | #define BUT_PIN DT_GPIO_PIN(DT_ALIAS(sw0), gpios)
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:87:49: note: in expansion of macro 'BUT_PIN'
87 | ret = gpio_pin_interrupt_configure(button_dev, BUT_PIN,
| ^~~~~~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/drivers/gpio.h:1121,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:18:
zephyr/include/generated/syscalls/gpio.h:38:81: note: expected 'gpio_pin_t' {aka 'unsigned char'} but argument is of type 'log_arg_t *' {aka 'long unsigned int *'}
38 | static inline int gpio_pin_interrupt_configure(struct device * port, gpio_pin_t pin, gpio_flags_t flags)
| ~~~~~~~~~~~^~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:238:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
238 | printk("%c: " fmt "\n", z_log_minimal_level_to_char(_level),
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:266:5: note: in expansion of macro 'Z_LOG_TO_PRINTK'
266 | Z_LOG_TO_PRINTK(_level, VA_ARGS);
| ^~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:6: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:238:10: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
238 | printk("%c: " fmt "\n", z_log_minimal_level_to_char(_level),
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:266:5: note: in expansion of macro 'Z_LOG_TO_PRINTK'
266 | Z_LOG_TO_PRINTK(_level, VA_ARGS);
| ^~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:10: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:155:24: warning: format '%d' expects argument of type 'int', but argument 5 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
155 | #define Z_LOG_STR(...) "%s: " GET_ARG_N(1, VA_ARGS), func
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:279:14: note: in expansion of macro 'Z_LOG_STR'
279 | Z_LOG_STR(VA_ARGS));
| ^~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:6: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:155:24: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
155 | #define Z_LOG_STR(...) "%s: " GET_ARG_N(1, VA_ARGS), func
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:279:14: note: in expansion of macro 'Z_LOG_STR'
279 | Z_LOG_STR(VA_ARGS));
| ^~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:10: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:6: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:11: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:10: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:11: warning: format '%d' expects argument of type 'int', but argument 3 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:291:27: note: in definition of macro '__LOG'
291 | log_printf_arg_checker(VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:6: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:11: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:291:27: note: in definition of macro '__LOG'
291 | log_printf_arg_checker(VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:10: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| char *
| %ln
[41/161] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/clock_control/clock_stm32_ll_common.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /home/msam/zephyr_2.3.x/zephyrproject/zephyr/build
Environment (please complete the following information):
Describe the bug
Unable to build sample bluetooth application st_ble_sensor for steval_fcu001v1 board
What have you tried to diagnose or workaround this issue?
I tried the same build for other boards and it worked without any error:
board nrf52840dk_nrf52840: successful build without error
board nucleo_wb55rg: successful build without error
To Reproduce
Steps to reproduce the behavior:
git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
rm -rf build
west build -b steval_fcu001v1 samples/bluetooth/st_ble_sensor
See error
Expected behavior
The build for samples/bluetooth/st_ble_sensor should run without errors
Impact
Use the kernel as a development platform for drones
Logs and console output
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/msam/zephyr_2.3.x/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor
-- Zephyr version: 2.3.99 (/home/msam/zephyr_2.3.x/zephyrproject/zephyr)
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.2") found components: Interpreter
-- Board: steval_fcu001v1
-- Found toolchain: zephyr (/home/msam/zephyr-sdk)
-- Found west: /home/msam/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")
-- Found dtc: /home/msam/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/boards/arm/steval_fcu001v1/steval_fcu001v1.dts
-- Generated zephyr.dts: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
Parsing /home/msam/zephyr_2.3.x/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/msam/zephyr_2.3.x/zephyrproject/zephyr/boards/arm/steval_fcu001v1/steval_fcu001v1_defconfig'
Merged configuration '/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/prj.conf'
Configuration saved to '/home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/msam/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Cache files will be written to: /home/msam/.cache/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /home/msam/zephyr_2.3.x/zephyrproject/zephyr/build
-- west build: building application
[1/161] Preparing syscall dependency handling
[32/161] Building C object CMakeFiles/app.dir/src/button_svc.c.obj
FAILED: CMakeFiles/app.dir/src/button_svc.c.obj
ccache /home/msam/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBUILD_VERSION=zephyr-v2.3.0-1324-g1c2f127e3fd1 -DCORE_CM4 -DHSE_VALUE=16000000 -DKERNEL -DSTM32F401xC -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include -Izephyr/include/generated -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/soc/arm/st_stm32/stm32f4 -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/drivers -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/soc/arm/st_stm32/common -I/home/msam/zephyr_2.3.x/zephyrproject/zephyr/subsys/bluetooth -I/home/msam/zephyr_2.3.x/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/home/msam/zephyr_2.3.x/zephyrproject/modules/hal/stm32/stm32cube/stm32f4xx/soc -I/home/msam/zephyr_2.3.x/zephyrproject/modules/hal/stm32/stm32cube/stm32f4xx/drivers/include -I/home/msam/zephyr_2.3.x/zephyrproject/modules/hal/stm32/stm32cube/stm32f4xx/drivers/include/Legacy -I/home/msam/zephyr_2.3.x/zephyrproject/modules/crypto/tinycrypt/lib/include -isystem /home/msam/zephyr_2.3.x/zephyrproject/zephyr/lib/libc/minimal/include -isystem /home/msam/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include -isystem /home/msam/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include-fixed -Os -imacros/home/msam/zephyr_2.3.x/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m4 -mthumb -mabi=aapcs -imacros/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-address-of-packed-member -Wno-pointer-sign -Wpointer-arith -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/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/msam/zephyr_2.3.x/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/msam/zephyr_2.3.x/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/button_svc.c.obj -MF CMakeFiles/app.dir/src/button_svc.c.obj.d -o CMakeFiles/app.dir/src/button_svc.c.obj -c /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/arch/arm/aarch32/arch.h:20,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/arch/cpu.h:19,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel_includes.h:38,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel.h:17,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/zephyr.h:18,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:17:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c: In function 'button_init':
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: error: 'DT_N_ALIAS_sw0_P_gpios_IDX_0_PH_P_label' undeclared (first use in this function)
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:565:2: note: in expansion of macro 'DT_PROP'
565 | DT_PROP(DT_PHANDLE_BY_IDX(node_id, phs, idx), prop)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:393:32: note: in expansion of macro 'DT_CAT'
393 | #define DT_PROP(node_id, prop) DT_CAT(node_id, P##prop)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:764:2: note: in expansion of macro 'DT_PROP'
764 | DT_PROP(node_id, prop##IDX##idx##PH)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:565:10: note: in expansion of macro 'DT_PHANDLE_BY_IDX'
565 | DT_PROP(DT_PHANDLE_BY_IDX(node_id, phs, idx), prop)
| ^~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:61:2: note: in expansion of macro 'DT_PROP_BY_PHANDLE_IDX'
61 | DT_PROP_BY_PHANDLE_IDX(node_id, gpio_pha, idx, label)
| ^~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:72:2: note: in expansion of macro 'DT_GPIO_LABEL_BY_IDX'
72 | DT_GPIO_LABEL_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:30:21: note: in expansion of macro 'DT_GPIO_LABEL'
30 | #define BUT_PORT DT_GPIO_LABEL(DT_ALIAS(sw0), gpios)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:30:35: note: in expansion of macro 'DT_ALIAS'
30 | #define BUT_PORT DT_GPIO_LABEL(DT_ALIAS(sw0), gpios)
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:69:34: note: in expansion of macro 'BUT_PORT'
69 | button_dev = device_get_binding(BUT_PORT);
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: note: each undeclared identifier is reported only once for each function it appears in
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:565:2: note: in expansion of macro 'DT_PROP'
565 | DT_PROP(DT_PHANDLE_BY_IDX(node_id, phs, idx), prop)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:393:32: note: in expansion of macro 'DT_CAT'
393 | #define DT_PROP(node_id, prop) DT_CAT(node_id, P##prop)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:764:2: note: in expansion of macro 'DT_PROP'
764 | DT_PROP(node_id, prop##IDX##idx##PH)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:565:10: note: in expansion of macro 'DT_PHANDLE_BY_IDX'
565 | DT_PROP(DT_PHANDLE_BY_IDX(node_id, phs, idx), prop)
| ^~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:61:2: note: in expansion of macro 'DT_PROP_BY_PHANDLE_IDX'
61 | DT_PROP_BY_PHANDLE_IDX(node_id, gpio_pha, idx, label)
| ^~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:72:2: note: in expansion of macro 'DT_GPIO_LABEL_BY_IDX'
72 | DT_GPIO_LABEL_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:30:21: note: in expansion of macro 'DT_GPIO_LABEL'
30 | #define BUT_PORT DT_GPIO_LABEL(DT_ALIAS(sw0), gpios)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:30:35: note: in expansion of macro 'DT_ALIAS'
30 | #define BUT_PORT DT_GPIO_LABEL(DT_ALIAS(sw0), gpios)
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:69:34: note: in expansion of macro 'BUT_PORT'
69 | button_dev = device_get_binding(BUT_PORT);
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: error: 'DT_N_ALIAS_sw0_P_gpios_IDX_0_VAL_pin' undeclared (first use in this function); did you mean 'DT_N_S_leds_S_led_2_P_gpios_IDX_0_VAL_pin'?
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:630:2: note: in expansion of macro 'DT_PROP'
630 | DT_PROP(node_id, pha##IDX##idx##VAL##cell)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:116:2: note: in expansion of macro 'DT_PHA_BY_IDX'
116 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:127:2: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
127 | DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:31:21: note: in expansion of macro 'DT_GPIO_PIN'
31 | #define BUT_PIN DT_GPIO_PIN(DT_ALIAS(sw0), gpios)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:31:33: note: in expansion of macro 'DT_ALIAS'
31 | #define BUT_PIN DT_GPIO_PIN(DT_ALIAS(sw0), gpios)
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:74:39: note: in expansion of macro 'BUT_PIN'
74 | ret = gpio_pin_configure(button_dev, BUT_PIN,
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: error: 'DT_N_ALIAS_sw0_P_gpios_IDX_0_VAL_flags' undeclared (first use in this function); did you mean 'DT_N_S_leds_S_led_2_P_gpios_IDX_0_VAL_flags'?
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:630:2: note: in expansion of macro 'DT_PROP'
630 | DT_PROP(node_id, pha##IDX##idx##VAL##cell)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:170:2: note: in expansion of macro 'DT_PHA_BY_IDX'
170 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, flags)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:181:2: note: in expansion of macro 'DT_GPIO_FLAGS_BY_IDX'
181 | DT_GPIO_FLAGS_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:75:6: note: in expansion of macro 'DT_GPIO_FLAGS'
75 | DT_GPIO_FLAGS(DT_ALIAS(sw0), gpios) |
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:75:20: note: in expansion of macro 'DT_ALIAS'
75 | DT_GPIO_FLAGS(DT_ALIAS(sw0), gpios) |
| ^~~~~~~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: error: 'DT_N_ALIAS_sw0_P_label' undeclared (first use in this function)
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:239:6: note: in definition of macro 'Z_LOG_TO_PRINTK'
239 | ##VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:393:32: note: in expansion of macro 'DT_CAT'
393 | #define DT_PROP(node_id, prop) DT_CAT(node_id, P##prop)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:479:27: note: in expansion of macro 'DT_PROP'
479 | #define DT_LABEL(node_id) DT_PROP(node_id, label)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:79:18: note: in expansion of macro 'DT_LABEL'
79 | ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:79:27: note: in expansion of macro 'DT_ALIAS'
79 | ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:47: note: format string is defined here
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:11: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | _LOG(level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:51: note: format string is defined here
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ~^
| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:11: warning: format '%d' expects argument of type 'int', but argument 3 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:291:27: note: in definition of macro '__LOG'
291 | log_printf_arg_checker(VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:47: note: format string is defined here
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:11: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:291:27: note: in definition of macro '__LOG'
291 | log_printf_arg_checker(VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:3: note: in expansion of macro 'LOG_ERR'
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:78:51: note: format string is defined here
78 | LOG_ERR("Error %d: failed to configure pin %d '%s'\n",
|
^| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/sched_priq.h:9,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel_includes.h:23,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel.h:17,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/zephyr.h:18,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:17:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/sys/util.h:302:22: error: invalid operands to binary << (have 'long unsigned int' and 'log_arg_t *' {aka 'long unsigned int *'})
302 | #define BIT(n) (1UL << (n))
| ^
| |
| log_arg_t * {aka long unsigned int *}
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:85:7: note: in expansion of macro 'BIT'
85 | BIT(BUT_PIN));
| ^~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/sys/util.h:302:17: warning: passing argument 3 of 'gpio_init_callback' makes integer from pointer without a cast [-Wint-conversion]
302 | #define BIT(n) (1UL << (n))
| ^~~~~~~~~~~~
| |
| log_arg_t * {aka long unsigned int *}
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:85:7: note: in expansion of macro 'BIT'
85 | BIT(BUT_PIN));
| ^~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:18:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/drivers/gpio.h:1023:28: note: expected 'gpio_port_pins_t' {aka 'unsigned int'} but argument is of type 'log_arg_t *' {aka 'long unsigned int *'}
1023 | gpio_port_pins_t pin_mask)
| ~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/arch/arm/aarch32/arch.h:20,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/arch/cpu.h:19,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel_includes.h:38,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/kernel.h:17,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/zephyr.h:18,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:17:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:32: warning: passing argument 2 of 'gpio_pin_interrupt_configure' makes integer from pointer without a cast [-Wint-conversion]
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~~~~~~
| |
| log_arg_t * {aka long unsigned int *}
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:1786:38: note: in definition of macro 'DT_CAT'
1786 | #define DT_CAT(node_id, prop_suffix) node_id##prop_suffix
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:630:2: note: in expansion of macro 'DT_PROP'
630 | DT_PROP(node_id, pha##IDX##idx##VAL##cell)
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:116:2: note: in expansion of macro 'DT_PHA_BY_IDX'
116 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
| ^~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree/gpio.h:127:2: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
127 | DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, 0)
| ^~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:31:21: note: in expansion of macro 'DT_GPIO_PIN'
31 | #define BUT_PIN DT_GPIO_PIN(DT_ALIAS(sw0), gpios)
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/devicetree.h:205:25: note: in expansion of macro 'DT_CAT'
205 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS, alias)
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:31:33: note: in expansion of macro 'DT_ALIAS'
31 | #define BUT_PIN DT_GPIO_PIN(DT_ALIAS(sw0), gpios)
| ^~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:87:49: note: in expansion of macro 'BUT_PIN'
87 | ret = gpio_pin_interrupt_configure(button_dev, BUT_PIN,
| ^~~~~~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/drivers/gpio.h:1121,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:18:
zephyr/include/generated/syscalls/gpio.h:38:81: note: expected 'gpio_pin_t' {aka 'unsigned char'} but argument is of type 'log_arg_t *' {aka 'long unsigned int *'}
38 | static inline int gpio_pin_interrupt_configure(struct device * port, gpio_pin_t pin, gpio_flags_t flags)
| ~~~~~~~~~~~^~~
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:238:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
238 | printk("%c: " fmt "\n", z_log_minimal_level_to_char(_level),
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:266:5: note: in expansion of macro 'Z_LOG_TO_PRINTK'
266 | Z_LOG_TO_PRINTK(_level, VA_ARGS);
| ^~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:6: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:238:10: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
238 | printk("%c: " fmt "\n", z_log_minimal_level_to_char(_level),
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:266:5: note: in expansion of macro 'Z_LOG_TO_PRINTK'
266 | Z_LOG_TO_PRINTK(_level, VA_ARGS);
| ^~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:10: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:155:24: warning: format '%d' expects argument of type 'int', but argument 5 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
155 | #define Z_LOG_STR(...) "%s: " GET_ARG_N(1, VA_ARGS), func
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:279:14: note: in expansion of macro 'Z_LOG_STR'
279 | Z_LOG_STR(VA_ARGS));
| ^~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:6: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:155:24: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
155 | #define Z_LOG_STR(...) "%s: " GET_ARG_N(1, VA_ARGS), func
| ^~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:279:14: note: in expansion of macro 'Z_LOG_STR'
279 | Z_LOG_STR(VA_ARGS));
| ^~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:10: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:6: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:11: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:188:30: note: in definition of macro '__LOG_INTERNAL'
188 | log_from_user(_src_level, VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:296:2: note: in expansion of macro '__LOG'
296 | __LOG(_level,
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:10: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| char *
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:11: warning: format '%d' expects argument of type 'int', but argument 3 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:291:27: note: in definition of macro '__LOG'
291 | log_printf_arg_checker(VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:6: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| int
| %ln
In file included from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:11,
from /home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:19:
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:11: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'log_arg_t *' {aka 'long unsigned int *'} [-Wformat=]
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log_core.h:291:27: note: in definition of macro '__LOG'
291 | log_printf_arg_checker(VA_ARGS);
| ^~~~~~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
40 | #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, VA_ARGS)
| ^~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:90:3: note: in expansion of macro 'LOG_ERR'
90 | LOG_ERR("Error %d: failed to configure interrupt on pin "
| ^~~~~~~
/home/msam/zephyr_2.3.x/zephyrproject/zephyr/samples/bluetooth/st_ble_sensor/src/button_svc.c:91:10: note: format string is defined here
91 | "%d '%s'\n", ret, BUT_PIN, DT_LABEL(DT_ALIAS(sw0)));
| ~^
| |
| char *
| %ln
[41/161] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/clock_control/clock_stm32_ll_common.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /home/msam/zephyr_2.3.x/zephyrproject/zephyr/build
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: