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

Linker Error on esp32s3 with platformIO #473

Closed
umeiko opened this issue Nov 19, 2024 · 5 comments
Closed

Linker Error on esp32s3 with platformIO #473

umeiko opened this issue Nov 19, 2024 · 5 comments
Labels
Bug Something isn't working

Comments

@umeiko
Copy link

umeiko commented Nov 19, 2024

Operating System

Windows 11

Arduino IDE version

platformIO

Board

esp32s3 dev module

ArduinoCore version

platformIO espressif32 @ 6.6.0

TinyUSB Library version

3.4.0

Sketch as ATTACHED TXT

The examlpe video_capture.ino

Compiled Log as ATTACHED TXT

Processing esp32-s3-fh4r2 (platform.txt

What happened ?

Just can't compile, multiple definition warnings ane ld returns error.

How to reproduce ?

  1. create a new project with platformIO, choose esp32s3 board.
  2. add adafruit/Adafruit TinyUSB Library to this project
  3. copy video_capture.ino example into main.cpp
  4. compile.

Debug Log

No response

Screenshots

No response

@umeiko umeiko added the Bug Something isn't working label Nov 19, 2024
@umeiko
Copy link
Author

umeiko commented Nov 19, 2024

there also some chat about that https://community.platformio.org/t/new-tinyusb-doesnt-allow-compile/44281

@hathach
Copy link
Member

hathach commented Nov 20, 2024

there is no arduino-esp32 6.6.0, please specify the correct arduino core verion

@umeiko
Copy link
Author

umeiko commented Nov 20, 2024

there is no arduino-esp32 6.6.0, please specify the correct arduino core verion

seems this problem shown in platformIO, which not have a arduino core verion but only esp32 arduino version

@hathach
Copy link
Member

hathach commented Nov 27, 2024

closed since arduino-esp32 version is not provided and issue is not reproducible with latest core version of 3.0.7

@hathach hathach closed this as completed Nov 27, 2024
@dhebbeker
Copy link

I have experienced the same issue. Note that I (and probably the OP) have been using Espressif's Arduino-ESP32 as core.

Here is the generated dependency tree:


Resolving esp32-s3-devkitc-1 dependencies...
Platform espressif32 @ 6.9.0 (required: espressif32)
├── framework-arduinoespressif32 @ 3.20017.0 (required: platformio/framework-arduinoespressif32 @ ~3.20017.0)
├── tool-esptoolpy @ 1.40501.0 (required: platformio/tool-esptoolpy @ ~1.40501.0)
├── tool-mkfatfs @ 2.0.1 (required: platformio/tool-mkfatfs @ ~2.0.0)
├── tool-mklittlefs @ 1.203.210628 (required: platformio/tool-mklittlefs @ ~1.203.0)
├── tool-mkspiffs @ 2.230.0 (required: platformio/tool-mkspiffs @ ~2.230.0)
├── tool-openocd-esp32 @ 2.1100.20220706 (required: platformio/tool-openocd-esp32 @ ~2.1100.0)
├── toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 (required: espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch5)
└── toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5 (required: espressif/toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5)

Libraries
└── Adafruit TinyUSB Library @ 3.4.0 (required: adafruit/Adafruit TinyUSB Library @ 3.4.0)
│   ├── Adafruit SPIFlash @ 5.0.1 (required: Adafruit SPIFlash)
│   │   ├── Adafruit NeoPixel @ 1.12.3 (required: Adafruit NeoPixel)
│   │   └── SdFat - Adafruit Fork @ 2.2.3 (required: SdFat - Adafruit Fork)
│   ├── MIDI Library @ 5.0.2 (required: MIDI Library)

This gives the following errors:

Linking .pio/build/esp32-s3-devkitc-1/firmware.elf
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tusb_inited':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:62: multiple definition of `tusb_inited'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:102: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_desc_find':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:81: multiple definition of `tu_desc_find'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:137: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_desc_find2':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:91: multiple definition of `tu_desc_find2'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:145: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_desc_find3':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:101: multiple definition of `tu_desc_find3'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:153: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_claim':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:115: multiple definition of `tu_edpt_claim'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:165: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_release':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:133: multiple definition of `tu_edpt_release'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:182: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_validate':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:150: multiple definition of `tu_edpt_validate'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:196: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_bind_driver':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:189: multiple definition of `tu_edpt_bind_driver'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:231: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_desc_get_interface_total_len':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:208: multiple definition of `tu_desc_get_interface_total_len'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:245: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_stream_init':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:243: multiple definition of `tu_edpt_stream_init'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:277: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_stream_write_zlp_if_needed':
/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_zlp_if_needed'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:347: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_stream_write_xfer':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:328: multiple definition of `tu_edpt_stream_write_xfer'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:356: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_stream_write':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:352: multiple definition of `tu_edpt_stream_write'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:376: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_stream_read_xfer':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:372: multiple definition of `tu_edpt_stream_read_xfer'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:420: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(tusb.c.obj): in function `tu_edpt_stream_read':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/tusb.c:405: multiple definition of `tu_edpt_stream_read'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(tusb.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/tusb.c:455: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(usbd.c.obj): in function `tud_speed_get':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:333: multiple definition of `tud_speed_get'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:412: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(usbd.c.obj): in function `tud_connected':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:337: multiple definition of `tud_connected'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:416: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(usbd.c.obj): in function `tud_mounted':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:341: multiple definition of `tud_mounted'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:420: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(usbd.c.obj): in function `tud_suspended':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:345: multiple definition of `tud_suspended'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:424: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(usbd.c.obj): in function `tud_remote_wakeup':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:349: multiple definition of `tud_remote_wakeup'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:428: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(usbd.c.obj): in function `tud_disconnect':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:356: multiple definition of `tud_disconnect'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:435: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(usbd.c.obj): in function `tud_connect':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:362: multiple definition of `tud_connect'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:440: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/lib/libarduino_tinyusb.a(usbd.c.obj): in function `tud_inited':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/arduino_tinyusb/tinyusb/src/device/usbd.c:371: multiple definition of `tud_inited'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:452: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:270: multiple definition of `_usbd_qdef'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:339: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:442: multiple definition of `tud_task_event_ready'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:557: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1072: multiple definition of `dcd_event_handler'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1162: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1138: multiple definition of `usbd_int_set'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1236: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1173: multiple definition of `usbd_defer_func'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1271: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1189: multiple definition of `usbd_edpt_open'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1286: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1150: multiple definition of `usbd_open_edpt_pair'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1248: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1199: multiple definition of `usbd_edpt_claim'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1295: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1213: multiple definition of `usbd_edpt_release'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1308: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1224: multiple definition of `usbd_edpt_xfer'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1318: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1261: multiple definition of `usbd_edpt_xfer_fifo'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1357: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1292: multiple definition of `usbd_edpt_busy'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1385: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1302: multiple definition of `usbd_edpt_stall'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1394: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1319: multiple definition of `usbd_edpt_clear_stall'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1407: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:468: multiple definition of `tud_task_ext'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:577: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1336: multiple definition of `usbd_edpt_stalled'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1420: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1352: multiple definition of `usbd_edpt_close'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1433: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1370: multiple definition of `usbd_sof_enable'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1454: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1379: multiple definition of `usbd_edpt_iso_alloc'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1471: first defined here
/home/dhebbeker/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/dhebbeker/.platformio/packages/framework-arduinoespressif32/tools/sdk/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:1389: multiple definition of `usbd_edpt_iso_activate'; .pio/build/esp32-s3-devkitc-1/lib663/libAdafruit TinyUSB Library.a(usbd.c.o):/home/dhebbeker/pro/time-tracker/.pio/libdeps/esp32-s3-devkitc-1/Adafruit TinyUSB Library/src/device/usbd.c:1483: first defined here
collect2: error: ld returned 1 exit status
*** [.pio/build/esp32-s3-devkitc-1/firmware.elf] Error 1

Arduino Core package.json:

{
  "name": "framework-arduinoespressif32",
  "version": "3.20007.0",
  "description": "Arduino Wiring-based Framework for the Espressif ESP32, ESP32-S and ESP32-C series of SoCs",
  "keywords": [
    "framework",
    "arduino",
    "espressif",
    "esp32"
  ],
  "license": "LGPL-2.1-or-later",
  "repository": {
    "type": "git",
    "url": "https://github.com/espressif/arduino-esp32"
  }
}

When using v.3.3.4 instead of v.3.4.0 allows to compile & link. Haven't tested functionality.

lib_deps = 
-    adafruit/Adafruit TinyUSB [email protected]
+    adafruit/Adafruit TinyUSB [email protected]

dhebbeker added a commit to Task-Tracker-Systems/Task-Tracker-Device that referenced this issue Dec 23, 2024
…ons.

Apparently there are linkage problems with v.3.4.0 🤷

adafruit/Adafruit_TinyUSB_Arduino#473
https://community.platformio.org/t/new-tinyusb-doesnt-allow-compile/44281

Note: When using `@3.3.4` as version specification with platformio v3.4.0 is currently used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants