-
Notifications
You must be signed in to change notification settings - Fork 102
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
Failing build: multiple definition of `hal_init' #41
Comments
You can solve this by using v3.5.0 of the espressif 32 platform. Although not a permanent fix, it will get you going. N.B. you will need to uninstall espressif 32 completely and then reinstall 3.5.0. HTH |
Hello, I had the same issue using a It seems to be related to the MCCI LoRaWAN LMIC Library https://github.com/mcci-catena/arduino-lmic and ESP32 based boards. So I got it working by adding |
This workaround fixes a naming conflict for function hal_init. The conflict was introduced by newer versions (> 3.5.0) of PlatformIO Espressif 32 platform (ESP32 Arduino core). See LMIC-node issue #41.
Thanks! @CaptnAwsome and @JohnMacrae I have added the workaround to LMIC-node and will therefore close this issue. |
Hello, I'm building this project with these libraries for
heltec_wireless_stick
board.Dependency Graph
|-- <U8g2> 2.33.2
| |-- <SPI> 2.0.0
| |-- <Wire> 2.0.0
|-- <EasyLed> 1.1.0
|-- <MCCI LoRaWAN LMIC library> 4.0.0
| |-- <SPI> 2.0.0
|-- <Wire> 2.0.0
|-- <SPI> 2.0.0
`
Building in release mode
and I am getting this error message
Linking .pio\build\heltec_wireless_stick\firmware.elf c:/users/xxx/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\xxx\.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\lib\libpp.a(hal_mac.o): in function
hal_init':(.text.hal_init+0xc8): multiple definition of
hal_init'; .pio\build\heltec_wireless_stick\libc40\libMCCI LoRaWAN LMIC library.a(hal.cpp.o):C:\Users\xxx\Documents\GitHub\LMIC-node/.pio/libdeps/heltec_wireless_stick/MCCI LoRaWAN LMIC library/src/hal/hal.cpp:416: first defined here collect2.exe: error: ld returned 1 exit status *** [.pio\build\heltec_wireless_stick\firmware.elf] Error 1
The text was updated successfully, but these errors were encountered: