Skip to content

collect2: error: ld returned 1 exit status ESP32-S3 #5

Open
@DansDesigns

Description

@DansDesigns

Hello,

After updating to version beta 5, I am unable to compile the example webserver..

WINDOWS 11 warnings

C:/Users/Dan/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: C:\Users\Dan\Documents\Arduino\libraries\Husarnet_ESP32\src\esp32s3\libhusarnet.a(user_interface.cpp.obj):(.literal.startup._Z41__static_initialization_and_destruction_0v+0x20): undefined reference to `__dso_handle'

C:/Users/Dan/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: C:\Users\Dan\Documents\Arduino\libraries\Husarnet_ESP32\src\esp32s3\libhusarnet.a(tun.cpp.obj):(.literal.startup._GLOBAL__sub_I_husarnet_netif_init+0x24): undefined reference to `__dso_handle'

C:/Users/Dan/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: C:\Users\Dan\AppData\Local\Temp\arduino_build_789/ComBadge_v0.2_S3_SR.ino.elf: hidden symbol `__dso_handle' isn't defined

C:/Users/Dan/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: final link failed: bad value

collect2.exe: error: ld returned 1 exit status

I tried it on Linux to make sure it wasn't my Windows 11 PC:

LINUX warnings

Library Husarnet_ESP32 has been declared precompiled:
Using precompiled library in /home/dan/Arduino/libraries/Husarnet_ESP32/src/esp32s3
/home/dan/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/dan/Arduino/libraries/Husarnet_ESP32/src/esp32s3/libhusarnet.a(user_interface.cpp.obj):(.literal.startup._Z41__static_initialization_and_destruction_0v+0x20): undefined reference to `__dso_handle'
/home/dan/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: simple-webserver.ino.elf: hidden symbol `__dso_handle' isn't defined
/home/dan/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
Multiple libraries were found for "WiFi.h"
 Used: /home/dan/.arduino15/packages/esp32/hardware/esp32/3.1.1/libraries/WiFi
 Not used: /home/dan/arduino-1.8.19/libraries/WiFi
 Not used: /home/dan/Arduino/libraries/WiFi
Multiple libraries were found for "WebServer.h"
 Used: /home/dan/.arduino15/packages/esp32/hardware/esp32/3.1.1/libraries/WebServer
 Not used: /home/dan/Arduino/libraries/WebServer-esp32-master
exit status 1
Error compiling for board ESP32S3 Dev Module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions