- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8.2k
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
Description
Describe the bug
Unable to compile USB console example with uart_mux enabled. Compiler complaining repeated variable declaration by  cdc_acm.c & uart_mux.c
zephyrproject/zephyr/drivers/console/uart_mux.c:897: multiple definition of `rx_ringbuf_0'; 
zephyr/libzephyr.a(cdc_acm.c.obj):C:/Users/yongc/zephyrproject/zephyr/subsys/usb/class/cdc_acm.c:1127: first defined here
zephyrproject/zephyr/drivers/console/uart_mux.c:897: multiple definition of `tx_ringbuf_0'; 
zephyr/libzephyr.a(cdc_acm.c.obj):C:/Users/yongc/zephyrproject/zephyr/subsys/usb/class/cdc_acm.c:1127: first defined here
To Reproduce
Steps to reproduce the behavior:
- Build usb/console with CONFIG_GSM_MUXset
- See compilation error
Expected behavior
Should compile fine (?)
Impact
Unable to use usb/console with gsm_mux
Logs and console output
Full compilation log: usb_compilation_log.txt
Environment (please complete the following information):
- OS: Windows 10
- Toolchain: gnuarmemb
- Zephyr 2.6 RC2
- stm32g0b1re custom board
Additional context
- Using offline WIP usb driver
- Can be workaround in the meantime by renaming either file's &t(r)x_ringbuf_##xto&yyy_t(r)x_ringbuf_##x
Metadata
Metadata
Assignees
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug