adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
495 stars 131 forks source link

#include <Adafruit_TinyUSB.h> compile error "multiple definition" #467

Closed luigijava closed 1 month ago

luigijava commented 1 month ago

Operating System

Windows 11

Arduino IDE version

Arduino 2.3.3

Board

Wemos Lolin ESP32 S3 Pro

ArduinoCore version

3.0.5

TinyUSB Library version

3.4

Sketch as ATTACHED TXT

include

void setup() {

}

void loop() {

}

Compiled Log as ATTACHED TXT

c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontusb_inited': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:60: multiple definition of tusb_inited'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:102: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_desc_find': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:78: multiple definition of tu_desc_find'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:137: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_desc_find2': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:86: multiple definition of tu_desc_find2'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:145: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_desc_find3': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:94: multiple definition of tu_desc_find3'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:153: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_claim': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:106: multiple definition of tu_edpt_claim'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:165: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_release': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:123: multiple definition of tu_edpt_release'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:182: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_validate': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:137: multiple definition of tu_edpt_validate'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:196: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_bind_driver': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:172: multiple definition of tu_edpt_bind_driver'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:231: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_desc_get_interface_total_len': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:186: multiple definition of tu_desc_get_interface_total_len'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:245: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_stream_init': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:218: multiple definition of tu_edpt_stream_init'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:277: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_stream_deinit': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:237: multiple definition of tu_edpt_stream_deinit'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:296: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_stream_write_zlp_if_needed': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:288: multiple definition of tu_edpt_stream_write_zlp_if_needed'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:347: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_stream_write_xfer': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:297: multiple definition of tu_edpt_stream_write_xfer'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:356: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_stream_write': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:317: multiple definition of tu_edpt_stream_write'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:376: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_stream_write_available': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:340: multiple definition of tu_edpt_stream_write_available'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:399: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_stream_read_xfer': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:361: multiple definition of tu_edpt_stream_read_xfer'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:420: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(tusb.c.obj): in functiontu_edpt_stream_read': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:396: multiple definition of tu_edpt_stream_read'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\tusb.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src/tusb.c:455: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in functiontud_speed_get': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:407: multiple definition of tud_speed_get'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:412: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in functiontud_connected': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:411: multiple definition of tud_connected'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:416: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in functiontud_mounted': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:415: multiple definition of tud_mounted'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:420: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in functiontud_suspended': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:419: multiple definition of tud_suspended'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:424: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in functiontud_remote_wakeup': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:423: multiple definition of tud_remote_wakeup'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:428: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in functiontud_disconnect': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:430: multiple definition of tud_disconnect'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:435: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in functiontud_connect': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:435: multiple definition of tud_connect'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:440: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in functiontud_inited': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:447: multiple definition of tud_inited'; C:\Users\<userReplaced>\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\<userReplaced>\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:452: first defined here c:/users/<userReplaced>/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\<userReplaced>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj):/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:334: multiple definition of_usbd_qdef'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:339: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function tud_deinit': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:496: multiple definition oftud_deinit'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:504: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function tud_task_event_ready': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:548: multiple definition oftud_task_event_ready'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:557: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function dcd_event_handler': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1149: multiple definition ofdcd_event_handler'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1162: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_int_set': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1223: multiple definition ofusbd_int_set'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1236: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_defer_func': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1258: multiple definition ofusbd_defer_func'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1271: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_open': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1273: multiple definition ofusbd_edpt_open'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1286: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_open_edpt_pair': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1235: multiple definition ofusbd_open_edpt_pair'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1248: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_claim': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1282: multiple definition ofusbd_edpt_claim'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1295: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_release': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1295: multiple definition ofusbd_edpt_release'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1308: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_xfer': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1305: multiple definition ofusbd_edpt_xfer'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1318: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_xfer_fifo': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1344: multiple definition ofusbd_edpt_xfer_fifo'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1357: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_busy': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1372: multiple definition ofusbd_edpt_busy'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1385: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_stall': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1381: multiple definition ofusbd_edpt_stall'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1394: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_clear_stall': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1394: multiple definition ofusbd_edpt_clear_stall'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1407: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_stalled': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1407: multiple definition ofusbd_edpt_stalled'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1420: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function tud_task_ext': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:568: multiple definition oftud_task_ext'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:577: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_close': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1420: multiple definition ofusbd_edpt_close'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1433: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_sof_enable': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1441: multiple definition ofusbd_sof_enable'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1454: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function tud_sof_cb_enable': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:440: multiple definition oftud_sof_cb_enable'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:445: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_iso_alloc': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1458: multiple definition ofusbd_edpt_iso_alloc'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1471: first defined here c:/users//appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3/lib\libarduino_tinyusb.a(usbd.c.obj): in function usbd_edpt_iso_activate': /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:1470: multiple definition ofusbd_edpt_iso_activate'; C:\Users\\AppData\Local\Temp\arduino\sketches\474AB0B07D14DE0D38F89C85E03C9C73\libraries\Adafruit_TinyUSB_Library\device\usbd.c.o:c:\Users\\Documents\Arduino\libraries\Adafruit_TinyUSB_Library\src\device/usbd.c:1483: first defined here collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1 `

What happened ?

dont compile

How to reproduce ?

compile scketch attached

Debug Log

No response

Screenshots

No response

umeiko commented 1 week ago

Hi, same problem, how did you fixed this?

OrhanYigitDurmaz commented 2 days ago

Hi, same problem, how did you fixed this?

the fix is inside esp32 arduino 3.0.7 release which is not supported on platformio atm.