Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Linker error with v2.0.x of Arduino core for the ESP32 #6

Closed
matthias-bs opened this issue Sep 4, 2022 · 2 comments
Closed

Linker error with v2.0.x of Arduino core for the ESP32 #6

matthias-bs opened this issue Sep 4, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@matthias-bs
Copy link
Owner

There is a naming conflict between MCCI_LoRaWAN_LMIC_library and Arduino core for the ESP32. The symbol hal_init is defined twice which causes a linker error. As a workaraound, v1.0.6 of the Arduino core for ESP32 must be used.

/home/runner/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32/lib/libpp.a(hal_mac.o): in function `hal_init':
(.text.hal_init+0xb4): multiple definition of `hal_init'; /tmp/arduino-sketch-3B10729107F9600CD77F61B8D0ED78E7/libraries/MCCI_LoRaWAN_LMIC_library/hal/hal.cpp.o:/home/runner/Arduino/libraries/MCCI_LoRaWAN_LMIC_library/src/hal/hal.cpp:416: first defined here
collect2: error: ld returned 1 exit status

Error during build: exit status 1
@matthias-bs matthias-bs added the bug Something isn't working label Sep 4, 2022
@matthias-bs
Copy link
Owner Author

This is a known issue:
mcci-catena/arduino-lmic#714

@matthias-bs
Copy link
Owner Author

See mcci-catena/arduino-lmic#714 (comment) for a fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant