You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/12/17 20:20:04 UTC
[GitHub] ccollins476ad opened a new issue #1569: `lps33thw` build errors
ccollins476ad opened a new issue #1569: `lps33thw` build errors
URL: https://github.com/apache/mynewt-core/issues/1569
**Repo:** mynewt-core master (`e9e6c717bc364fe99707bcb7769b41a42606c154`)
**Target:**
```
targets/slinky-nrf52dk
app=apps/slinky
bsp=hw/bsp/nrf52dk
build_profile=debug
syscfg=LPS33THW_CLI=1
```
When I attempt to build the above target, I get these build errors:
```
Error: hw/drivers/sensors/lps33thw/src/lps33thw_shell.c: In function 'lps33thw_shell_cmd':
hw/drivers/sensors/lps33thw/src/lps33thw_shell.c:126:23: error: 'struct sensor_itf' has no member named 'si_dev'; did you mean 'si_num'?
if (!g_sensor_itf.si_dev) {
^~~~~~
si_num
hw/drivers/sensors/lps33thw/src/lps33thw_shell.c:127:22: error: 'struct sensor_itf' has no member named 'si_dev'; did you mean 'si_num'?
g_sensor_itf.si_dev = os_dev_open(MYNEWT_VAL(LPS33THW_SHELL_NODE_NAME),
^~~~~~
si_num
In file included from kernel/os/include/os/mynewt.h:23:0,
from hw/drivers/sensors/lps33thw/src/lps33thw_shell.c:22:
bin/targets/slinky-nrf52dk/generated/include/syscfg/syscfg.h:15:49: error: 'MYNEWT_VAL_LPS33THW_SHELL_NODE_NAME' undeclared (first use in this function); did you mean 'MYNEWT_VAL_LPS33THW_SHELL_ITF_NUM'?
#define MYNEWT_VAL(x) MYNEWT_VAL_ ## x
^
hw/drivers/sensors/lps33thw/src/lps33thw_shell.c:127:43: note: in expansion of macro 'MYNEWT_VAL'
g_sensor_itf.si_dev = os_dev_open(MYNEWT_VAL(LPS33THW_SHELL_NODE_NAME),
^~~~~~~~~~
bin/targets/slinky-nrf52dk/generated/include/syscfg/syscfg.h:15:49: note: each undeclared identifier is reported only once for each function it appears in
#define MYNEWT_VAL(x) MYNEWT_VAL_ ## x
^
hw/drivers/sensors/lps33thw/src/lps33thw_shell.c:127:43: note: in expansion of macro 'MYNEWT_VAL'
g_sensor_itf.si_dev = os_dev_open(MYNEWT_VAL(LPS33THW_SHELL_NODE_NAME),
^~~~~~~~~~
hw/drivers/sensors/lps33thw/src/lps33thw_shell.c:130:27: error: 'struct sensor_itf' has no member named 'si_dev'; did you mean 'si_num'?
if (!g_sensor_itf.si_dev) {
^~~~~~
si_num
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services