You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (release/vX.Y) to the latest version and checked that the issue is present there. This is not applicable if you are using Rainmaker with Arduino.
I have searched the Rainmaker forum and issue tracker for a similar issue and not found a similar issue.
IDF / ESP32-Arduino version.
v5.3
Operating System used.
macOS
How did you build your project?
Command line with idf.py
Development Kit.
ESP32 Wroom Custom Board
What is the expected behavior?
Build successful
What is the actual behavior?
The build fails at [1368/1370] Linking CXX executable homekit_switch.elf with error message:
FAILED: homekit_switch.elf
...
fatal_exception -u esp_timer_init_include_func -u uart_vfs_include_dev_init -u include_esp_phy_override -lphy -lrtc esp-idf/esp_phy/libesp_phy.a -lphy -lrtc esp-idf/esp_phy/libesp_phy.a -lphy -lrtc -u esp_vfs_include_console_register -u vfs_include_syscalls_impl -lbtdm_app && :
/Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj):/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:660: multiple definition of wi_fi_scan_result__descriptor'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:1164: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function wi_fi_scan_result__init':
/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:237: multiple definition of wi_fi_scan_result__init'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:462: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function wi_fi_scan_result__get_packed_size':
/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:243: multiple definition of wi_fi_scan_result__get_packed_size'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:468: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function wi_fi_scan_result__pack':
/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:250: multiple definition of wi_fi_scan_result__pack'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:475: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function wi_fi_scan_result__pack_to_buffer':
/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:257: multiple definition of wi_fi_scan_result__pack_to_buffer'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:482: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function wi_fi_scan_result__unpack':
/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:266: multiple definition of wi_fi_scan_result__unpack'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:491: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function wi_fi_scan_result__free_unpacked':
/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:274: multiple definition of `wi_fi_scan_result__free_unpacked'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:499: first defined here
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /Users/adwaitkale/esp-rainmaker/examples/homekit_switch/build/log/idf_py_stderr_output_14094 and /Users/adwaitkale/esp-rainmaker/examples/homekit_switch/build/log/idf_py_stdout_output_14094
This issue is related to homekit, I guess. Other examples like switch and multi_device are getting successfully compiled.
I also tried to port homekit support into switch example but the switch example is not compiling when homekit declarations are added.
Answers checklist.
IDF / ESP32-Arduino version.
v5.3
Operating System used.
macOS
How did you build your project?
Command line with idf.py
Development Kit.
ESP32 Wroom Custom Board
What is the expected behavior?
Build successful
What is the actual behavior?
The build fails at [1368/1370] Linking CXX executable homekit_switch.elf with error message:
FAILED: homekit_switch.elf
...
fatal_exception -u esp_timer_init_include_func -u uart_vfs_include_dev_init -u include_esp_phy_override -lphy -lrtc esp-idf/esp_phy/libesp_phy.a -lphy -lrtc esp-idf/esp_phy/libesp_phy.a -lphy -lrtc -u esp_vfs_include_console_register -u vfs_include_syscalls_impl -lbtdm_app && :
/Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj):/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:660: multiple definition of
wi_fi_scan_result__descriptor'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:1164: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function
wi_fi_scan_result__init':/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:237: multiple definition of
wi_fi_scan_result__init'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:462: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function
wi_fi_scan_result__get_packed_size':/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:243: multiple definition of
wi_fi_scan_result__get_packed_size'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:468: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function
wi_fi_scan_result__pack':/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:250: multiple definition of
wi_fi_scan_result__pack'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:475: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function
wi_fi_scan_result__pack_to_buffer':/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:257: multiple definition of
wi_fi_scan_result__pack_to_buffer'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:482: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function
wi_fi_scan_result__unpack':/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:266: multiple definition of
wi_fi_scan_result__unpack'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:491: first defined here /Users/adwaitkale/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/wifi_provisioning/libwifi_provisioning.a(wifi_scan.pb-c.c.obj): in function
wi_fi_scan_result__free_unpacked':/Users/adwaitkale/esp/esp-idf/components/wifi_provisioning/proto-c/wifi_scan.pb-c.c:274: multiple definition of `wi_fi_scan_result__free_unpacked'; esp-idf/espressif__network_provisioning/libespressif__network_provisioning.a(network_scan.pb-c.c.obj):/Users/adwaitkale/esp-rainmaker/examples/homekit_switch/managed_components/espressif__network_provisioning/proto-c/network_scan.pb-c.c:499: first defined here
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /Users/adwaitkale/esp-rainmaker/examples/homekit_switch/build/log/idf_py_stderr_output_14094 and /Users/adwaitkale/esp-rainmaker/examples/homekit_switch/build/log/idf_py_stdout_output_14094
Steps to reproduce.
Build Logs.
More Information.
Tried with latest esp-idf, esp-rainmaker, esp-homekit-sdk.
The text was updated successfully, but these errors were encountered: