Skip to content

samples: samples/net/openthread/coprocessor: build failures on nrf52840dk/nrf52840 board #94250

@khoa-nguyen-18

Description

@khoa-nguyen-18

Describe the bug

  • nrf52840dk/nrf52840

Build failure due to: #87269
Root cause commit: 6da651f

Affected PR: #93137
Job failure log: https://github.com/zephyrproject-rtos/zephyr/actions/runs/16803451171/job/47590259536?pr=93137

The following issues were found (showing the top 10 items):
INFO    - 1) sample.net.openthread.coprocessor on nrf52840dk/nrf52840 error (Build failure - error: 'usb_enable' is deprecated [-Werror=deprecated-declarations])
INFO    - 2) sample.net.openthread.coprocessor.usb on nrf52840dk/nrf52840 error (Build failure - error: 'usb_write' is deprecated [-Werror=deprecated-declarations])
INFO    - 3) sample.openthread.coprocessor.rcp on nrf52840dk/nrf52840 error (Build failure - error: 'usb_enable' is deprecated [-Werror=deprecated-declarations])

Regression

  • This is a regression.

Steps to reproduce

west twister -p nrf52840dk/nrf52840 -s sample.openthread.coprocessor.rcp

or with west:

west build -p -b nrf52840dk/nrf52840 samples/net/openthread/coprocessor -T sample.openthread.coprocessor.rcp

Relevant log output

/__w/zephyr/zephyr/modules/openthread/platform/uart.c:174:17:` error: 'usb_enable' is deprecated [-Werror=deprecated-declarations]
  174 |                 ret = usb_enable(NULL);
      |                 ^~~
In file included from /__w/zephyr/zephyr/modules/openthread/platform/uart.c:22:
/__w/zephyr/zephyr/include/zephyr/usb/usb_device.h:243:18: note: declared here
  243 | __deprecated int usb_enable(usb_dc_status_callback status_cb);
      |                  ^~~~~~~~~~
/__w/zephyr/zephyr/modules/openthread/platform/uart.c: In function 'otPlatUartDisable':
/__w/zephyr/zephyr/modules/openthread/platform/uart.c:194:17: error: 'usb_disable' is deprecated [-Werror=deprecated-declarations]
  194 |                 int ret = usb_disable();
      |                 ^~~
/__w/zephyr/zephyr/include/zephyr/usb/usb_device.h:256:18: note: declared here
  256 | __deprecated int usb_disable(void);
      |                  ^~~~~~~~~~~
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

  • Zephyr github CI

Additional Context

No response

Metadata

Metadata

Assignees

Labels

area: USBUniversal Serial BusbugThe issue is a bug, or the PR is fixing a bugplatform: nRFNordic nRFx

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions