Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

[Mbedtls] Compiler build error ,some chachapoly API undefined #137

@Greyson55

Description

@Greyson55

[861/889] Linking C static library esp-idf\xtensa\libxtensa.a [862/889] Linking C static library esp-idf\app_trace\libapp_trace.a [863/889] Linking C static library esp-idf\unity\libunity.a [864/889] Linking C static library esp-idf\protobuf-c\libprotobuf-c.a [865/889] Linking C static library esp-idf\wear_levelling\libwear_levelling.a [866/889] Linking C static library esp-idf\console\libconsole.a [867/889] Linking C static library esp-idf\mqtt\libmqtt.a [868/889] Linking C static library esp-idf\sdmmc\libsdmmc.a [869/889] Linking C static library esp-idf\esp_lcd\libesp_lcd.a [870/889] Linking C static library esp-idf\perfmon\libperfmon.a [871/889] Linking C static library esp-idf\espcoredump\libespcoredump.a [872/889] Linking C static library esp-idf\json\libjson.a [873/889] Linking C static library esp-idf\cmock\libcmock.a [874/889] Linking C static library esp-idf\esp_hid\libesp_hid.a [875/889] Linking C static library esp-idf\spiffs\libspiffs.a [876/889] Linking C static library esp-idf\button\libbutton.a [877/889] Linking C static library esp-idf\protocomm\libprotocomm.a [878/889] Linking C static library esp-idf\fatfs\libfatfs.a [879/889] Linking C static library esp-idf\espressif__mdns\libespressif__mdns.a [880/889] Linking C static library esp-idf\wifi_provisioning\libwifi_provisioning.a [881/889] Linking C static library esp-idf\esp_local_ctrl\libesp_local_ctrl.a [882/889] Building C object esp-idf/port/CMakeFiles/__idf_port.dir/E_/esp-apple-homekit-adk-master/esp-apple-homekit-adk-master/homekit_adk/PAL/Crypto/MbedTLS/HAPMbedTLS.c.obj [883/889] Linking C static library esp-idf\port\libport.a [884/889] Linking C static library esp-idf\main\libmain.a [885/889] Generating ld/sections.ld [886/889] Linking CXX executable Lightbulb.elf FAILED: Lightbulb.elf cmd.exe /C "cd . && E:\ESP-idf\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32=0 -Wl,--Map=E:/esp-apple-homekit-adk-master/esp-apple-homekit-adk-master/examples/Lightbulb/build/Lightbulb.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32.peripherals.ld -T esp32.rom.ld -T esp32.rom.api.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.rom.newlib-funcs.ld -T memory.ld -T sections.ld @CMakeFiles\Lightbulb.elf.rsp -o Lightbulb.elf && cd ." e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj):(.literal.chacha20_poly1305_update+0x4): undefined reference to mbedtls_chachapoly_init'
e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj):(.literal.chacha20_poly1305_update+0x8): undefined reference to mbedtls_chachapoly_setkey' e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj):(.literal.chacha20_poly1305_update+0xc): undefined reference to mbedtls_chachapoly_starts'
e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj):(.literal.chacha20_poly1305_update+0x10): undefined reference to mbedtls_chachapoly_update' e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj):(.literal.chacha20_poly1305_update_aad+0x4): undefined reference to mbedtls_chachapoly_update_aad'
e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj):(.literal.chacha20_poly1305_final+0x4): undefined reference to mbedtls_chachapoly_finish' e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj):(.literal.chacha20_poly1305_final+0x8): undefined reference to mbedtls_chachapoly_free'
e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj): in function chacha20_poly1305_update': E:/esp-apple-homekit-adk-master/esp-apple-homekit-adk-master/homekit_adk/PAL/Crypto/MbedTLS/HAPMbedTLS.c:278: undefined reference to mbedtls_chachapoly_init'
e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: E:/esp-apple-homekit-adk-master/esp-apple-homekit-adk-master/homekit_adk/PAL/Crypto/MbedTLS/HAPMbedTLS.c:278: undefined reference to mbedtls_chachapoly_setkey' e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: E:/esp-apple-homekit-adk-master/esp-apple-homekit-adk-master/homekit_adk/PAL/Crypto/MbedTLS/HAPMbedTLS.c:546: undefined reference to mbedtls_chachapoly_starts'
e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: E:/esp-apple-homekit-adk-master/esp-apple-homekit-adk-master/homekit_adk/PAL/Crypto/MbedTLS/HAPMbedTLS.c:549: undefined reference to mbedtls_chachapoly_update' e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj): in function chacha20_poly1305_update_aad':
E:/esp-apple-homekit-adk-master/esp-apple-homekit-adk-master/homekit_adk/PAL/Crypto/MbedTLS/HAPMbedTLS.c:565: undefined reference to mbedtls_chachapoly_update_aad' e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/port/libport.a(HAPMbedTLS.c.obj): in function chacha20_poly1305_final':
E:/esp-apple-homekit-adk-master/esp-apple-homekit-adk-master/homekit_adk/PAL/Crypto/MbedTLS/HAPMbedTLS.c:571: undefined reference to mbedtls_chachapoly_finish' e:/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: E:/esp-apple-homekit-adk-master/esp-apple-homekit-adk-master/homekit_adk/PAL/Crypto/MbedTLS/HAPMbedTLS.c:573: undefined reference to mbedtls_chachapoly_free'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the E:\esp-apple-homekit-adk-master\esp-apple-homekit-adk-master\examples\Lightbulb\build\log\idf_py_stderr_output_30652 and E:\esp-apple-homekit-adk-master\esp-apple-homekit-adk-master\examples\Lightbulb\build\log\idf_py_stdout_output_30652`

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