-
-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Description
Library: 2.3.2
Core: 3.3.0-RC1
Build gives failure caused by numerous duplicated symbols :
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `ble_sm_alg_encrypt':
(.text.ble_sm_alg_encrypt+0x0): multiple definition of `ble_sm_alg_encrypt'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:96: first defined here
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `ble_sm_alg_s1':
(.text.ble_sm_alg_s1+0x0): multiple definition of `ble_sm_alg_s1'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:140: first defined here
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `ble_sm_alg_c1':
(.text.ble_sm_alg_c1+0x0): multiple definition of `ble_sm_alg_c1'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:179: first defined here
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `ble_sm_alg_aes_cmac':
(.text.ble_sm_alg_aes_cmac+0x0): multiple definition of `ble_sm_alg_aes_cmac'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:256: first defined here
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `ble_sm_alg_f4':
(.text.ble_sm_alg_f4+0x0): multiple definition of `ble_sm_alg_f4'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:327: first defined here
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `ble_sm_alg_f5':
(.text.ble_sm_alg_f5+0x0): multiple definition of `ble_sm_alg_f5'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:373: first defined here
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `ble_sm_alg_f6':
(.text.ble_sm_alg_f6+0x0): multiple definition of `ble_sm_alg_f6'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:442: first defined here
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `ble_sm_alg_g2':
(.text.ble_sm_alg_g2+0x0): multiple definition of `ble_sm_alg_g2'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:488: first defined here
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `mbedtls_free_keypair':
(.text.mbedtls_free_keypair+0x0): multiple definition of `mbedtls_free_keypair'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:693: first defined here
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-cf8dad07-v1/esp32c6/lib/libbt.a(ble_sm_alg.c.obj): in function `ble_sm_alg_ecc_init':
(.text.ble_sm_alg_ecc_init+0x0): multiple definition of `ble_sm_alg_ecc_init'; /tmp/arduino/libraries/NimBLE-Arduino-2.3.2/nimble/nimble/host/src/ble_sm_alg.c.o:/home/codespace/Arduino/libraries/NimBLE-Arduino-2.3.2/src/nimble/nimble/host/src/ble_sm_alg.c:774: first defined here
collect2: error: ld returned 1 exit status
To reproduce
arduino-cli core update-index
arduino-cli core install esp32:esp32@3.3.0-RC1
export BOARD=esp32:esp32:esp32c6
arduino-cli compile -v --build-path=/tmp/arduino -b "$BOARD" NimBLE-Arduino-2.3.2/examples/NimBLE_Client/NimBLE_Client.ino
Build for C5 gives the failure as well.
However, build for C3 is fine.
The failure is noticed with most recent 3.3.0-RC1
Build with previous 3.3.0-alpha1 is successful.
Metadata
Metadata
Assignees
Labels
No labels