Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building usb audio sample hangs the pre-processor #25240

Closed
arvid-r opened this issue May 12, 2020 · 2 comments · Fixed by #25250
Closed

Building usb audio sample hangs the pre-processor #25240

arvid-r opened this issue May 12, 2020 · 2 comments · Fixed by #25250
Assignees
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug

Comments

@arvid-r
Copy link
Collaborator

arvid-r commented May 12, 2020

Describe the bug
When trying to build the headset usb audio sample, the build process hangs with 100% cpu usage and never seems to finish.

To Reproduce
Steps to reproduce the behavior:

  1. checkout zephyr and cd into directory
  2. west -v build -p auto -b nrf52840dk_nrf52840 samples/subsys/usb/audio/headset
  3. won't finish ...

Expected behavior
Build should finish shortly, and the sample should run on the selected board

Impact
Showstopper for USB audio subsystem

Environment (please complete the following information):

  • OS: MacOS
  • gcc-arm-none-eabi-9-2019-q4-major
  • Commit SHA or Version used: ed2d263

Additional context
The pre-processor gets stuck with audio.c open, and the problem goes away if you comment out the following lines:

UTIL_LISTIFY(HEADPHONES_DEVICE_COUNT, HEADPHONES_DEVICE, HP)
UTIL_LISTIFY(MICROPHONE_DEVICE_COUNT, MICROPHONE_DEVICE, MIC)
UTIL_LISTIFY(HEADSET_DEVICE_COUNT, HEADSET_DEVICE, HS)

So this probably has something to do with macro expansion and the devicetree

@arvid-r arvid-r added the bug The issue is a bug, or the PR is fixing a bug label May 12, 2020
@jfischer-no jfischer-no added the area: USB Universal Serial Bus label May 12, 2020
@eobalski
Copy link
Collaborator

I am observing same with my setup. I am using vm linux. Something was merged in between what broke the build. I am investigating the issue.

@eobalski eobalski added the priority: high High impact/importance bug label May 12, 2020
@eobalski
Copy link
Collaborator

Got the fix, will prepare a PR asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants