btashton commented on pull request #872: URL: https://github.com/apache/mynewt-nimble/pull/872#issuecomment-779640641
Just noticed that this broke our CI in NuttX do to a bad cast point-to-int of different size: ```c /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c: In function 'os_mbuf_get': Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c:247:46: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 247 | os_trace_api_u32x2(OS_TRACE_ID_MBUF_GET, (uint32_t)omp, | ^ Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c:268:48: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 268 | os_trace_api_ret_u32(OS_TRACE_ID_MBUF_GET, (uint32_t)om); | ^ /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c: In function 'os_mbuf_get_pkthdr': Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c:279:53: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 279 | os_trace_api_u32x2(OS_TRACE_ID_MBUF_GET_PKTHDR, (uint32_t)omp, | ^ Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c:301:55: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 301 | os_trace_api_ret_u32(OS_TRACE_ID_MBUF_GET_PKTHDR, (uint32_t)om); | ^ /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c: In function 'os_mbuf_free': Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c:310:45: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 310 | os_trace_api_u32(OS_TRACE_ID_MBUF_FREE, (uint32_t)om); | ^ /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c: In function 'os_mbuf_free_chain': Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.c:332:51: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 332 | os_trace_api_u32(OS_TRACE_ID_MBUF_FREE_CHAIN, (uint32_t)om); | ^ cc1: all warnings being treated as errors make[3]: *** [/github/workspace/sources/apps/Application.mk:134: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mbuf.github.workspace.sources.apps.wireless.bluetooth.nimble.o] Error 1 /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.c: In function 'os_memblock_get': Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.c:336:48: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 336 | os_trace_api_u32(OS_TRACE_ID_MEMBLOCK_GET, (uint32_t)mp); | ^ Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.c:364:52: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 364 | os_trace_api_ret_u32(OS_TRACE_ID_MEMBLOCK_GET, (uint32_t)block); | ^ /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.c: In function 'os_memblock_put_from_cb': Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.c:375:58: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 375 | os_trace_api_u32x2(OS_TRACE_ID_MEMBLOCK_PUT_FROM_CB, (uint32_t)mp, | ^ Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.c:376:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 376 | (uint32_t)block_addr); | ^ /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.c: In function 'os_memblock_put': Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.c:408:50: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 408 | os_trace_api_u32x2(OS_TRACE_ID_MEMBLOCK_PUT, (uint32_t)mp, | ^ Error: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.c:409:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 409 | (uint32_t)block_addr); | ^ cc1: all warnings being treated as errors make[3]: *** [/github/workspace/sources/apps/Application.mk:134: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/porting/nimble/src/os_mempool.github.workspace.sources.apps.wireless.bluetooth.nimble.o] Error 1 make[3]: Target 'all' not remade because of errors. make[2]: *** [Makefile:59: /github/workspace/sources/apps/wireless/bluetooth/nimble_all] Error 2 make[2]: Target '/github/workspace/sources/apps/libapps.a' not remade because of errors. make[1]: *** [Makefile:53: all] Error 2 make: *** [tools/LibTargets.mk:225: /github/workspace/sources/apps/libapps.a] Error 2 make: Target 'all' not remade because of errors. /github/workspace/sources/nuttx/tools/testbuild.sh: line 267: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or directory ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org