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/08/05 18:36:08 UTC
[GitHub] 1am opened a new issue #158: Missing include of nimble_npl.h
1am opened a new issue #158: Missing include of nimble_npl.h
URL: https://github.com/apache/mynewt-nimble/issues/158
Hi,
I've been trying to set up a hello-world following https://mynewt.apache.org/latest/tutorials/ble/ble_bare_bones.html but the `newt build ble_tgt` fails with
```
Error: In file included from repos/apache-mynewt-nimble/nimble/drivers/nrf52/src/ble_hw.c:34:0:
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:125:46: error: unknown type name 'ble_npl_event_fn'; did you mean 'ble_npl_stime_t'?
ble_npl_event_init(struct ble_npl_event *ev, ble_npl_event_fn *fn,
...
```
And other errors related to missing type definitions which are present in **repos/apache-mynewt-nimble/nimble/include/nimble/nimble_npl.h**. Tried adding "*@apache-mynewt-nimble/nimble*"
to my **pkg.deps** section of the tutorial app's **pkg.yml** but no success. Is there something else I should do which is missing from the tutorial?
Full error log is below and it seems that all are caused by not including **nimble_npl.h**
```
...
Compiling repos/apache-mynewt-nimble/nimble/host/src/ble_att.c
Compiling repos/apache-mynewt-nimble/nimble/host/src/ble_att_clt.c
Error: In file included from repos/apache-mynewt-nimble/nimble/drivers/nrf52/src/ble_hw.c:34:0:
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:125:46: error: unknown type name 'ble_npl_event_fn'; did you mean 'ble_npl_stime_t'?
ble_npl_event_init(struct ble_npl_event *ev, ble_npl_event_fn *fn,
^~~~~~~~~~~~~~~~
ble_npl_stime_t
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:152:15: error: unknown type name 'ble_npl_error_t'
static inline ble_npl_error_t
^~~~~~~~~~~~~~~
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:158:15: error: unknown type name 'ble_npl_error_t'
static inline ble_npl_error_t
^~~~~~~~~~~~~~~
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:164:15: error: unknown type name 'ble_npl_error_t'
static inline ble_npl_error_t
^~~~~~~~~~~~~~~
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:170:15: error: unknown type name 'ble_npl_error_t'
static inline ble_npl_error_t
^~~~~~~~~~~~~~~
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:176:15: error: unknown type name 'ble_npl_error_t'
static inline ble_npl_error_t
^~~~~~~~~~~~~~~
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:182:15: error: unknown type name 'ble_npl_error_t'
static inline ble_npl_error_t
^~~~~~~~~~~~~~~
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:196:22: error: unknown type name 'ble_npl_event_fn'; did you mean 'ble_npl_stime_t'?
ble_npl_event_fn *ev_cb, void *ev_arg)
^~~~~~~~~~~~~~~~
ble_npl_stime_t
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:201:15: error: unknown type name 'ble_npl_error_t'
static inline ble_npl_error_t
^~~~~~~~~~~~~~~
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:245:15: error: unknown type name 'ble_npl_error_t'
static inline ble_npl_error_t
^~~~~~~~~~~~~~~
repos/apache-mynewt-nimble/porting/npl/mynewt/include/nimble/nimble_npl_os.h:251:15: error: unknown type name 'ble_npl_error_t'
static inline ble_npl_error_t
^~~~~~~~~~~~~~~
repos/apache-mynewt-nimble/nimble/drivers/nrf52/src/ble_hw.c: In function 'ble_hw_rng_init':
repos/apache-mynewt-nimble/nimble/drivers/nrf52/src/ble_hw.c:337:9: error: implicit declaration of function 'ble_npl_hw_set_isr'; did you mean 'ble_npl_sem_init'? [-Werror=implicit-function-declaration]
ble_npl_hw_set_isr(RNG_IRQn, (uint32_t)ble_rng_isr);
^~~~~~~~~~~~~~~~~~
ble_npl_sem_init
cc1: all warnings being treated as errors
```
----------------------------------------------------------------
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