Updated esp-idf and now KeyError: 'liblwip.a' [solved: sdkconfig]
Posted: Mon Mar 04, 2019 12:05 am
If I build (even after a clean) a project that was working on esp-idf 3.3 from about two weeks ago to an update now like I usually do:
at the end of the build I get this:
I can copy hello_world example project and it builds fine. I can see it is going wrong at the linker but not sure why.
I'm trying to keep up to date to see what changes there have been to the WiFi drivers as I have various ongoing problems, eg Android hotpot reconnecting after ESP32 reset and not getting events when password is incorrect when connecting to the ESP32's AP.
Code: Select all
cd $IDF_PATH
git checkout master
git pull
git submodule update --init --recursive
at the end of the build I get this:
Code: Select all
Generating libxtensa-debug-module.a.sections_info
CC build/wpa_supplicant/src/wpa2/utils/ext_password.o
CC build/wpa_supplicant/src/wpa2/utils/base64.o
CC build/wpa_supplicant/src/wps/wps_enrollee.o
CC build/wpa_supplicant/src/wps/uuid.o
CC build/wpa_supplicant/src/wps/wps_attr_build.o
CC build/wpa_supplicant/src/wps/wps_registrar.o
CC build/wpa_supplicant/src/wps/wps_common.o
CC build/wpa_supplicant/src/wps/wps.o
CC build/wpa_supplicant/src/wps/wps_dev_attr.o
CC build/wpa_supplicant/src/wps/wps_attr_parse.o
CC build/wpa_supplicant/src/wps/wps_validate.o
CC build/wpa_supplicant/src/wps/wps_attr_process.o
CC build/wpa_supplicant/src/wps/eap_common.o
AR build/wpa_supplicant/libwpa_supplicant.a
Generating liblwip.a.sections_info
Generating libmbedtls.a.sections_info
Generating libwpa_supplicant.a.sections_info
Generating esp32.common.ld
Traceback (most recent call last):
File "C:/msys32/home/jcsba/esp/esp-idf/tools/ldgen/ldgen.py", line 113, in <module>
main()
File "C:/msys32/home/jcsba/esp/esp-idf/tools/ldgen/ldgen.py", line 97, in main
mapping_rules = generation_model.generate_rules(sdkconfig, sections_infos)
File "C:/msys32/home/jcsba/esp/esp-idf/tools/ldgen/generation.py", line 370, in generate_rules
self._create_exclusions(mapping_rules, default_rules, sections_infos)
File "C:/msys32/home/jcsba/esp/esp-idf/tools/ldgen/generation.py", line 465, in _create_exclusions
general_rule.add_exclusion(specific_rule, sections_info)
File "C:/msys32/home/jcsba/esp/esp-idf/tools/ldgen/generation.py", line 99, in add_exclusion
expansions = do_section_expansion(self, section)
File "C:/msys32/home/jcsba/esp/esp-idf/tools/ldgen/generation.py", line 81, in do_section_expansion
sections_in_obj = sections_infos.get_obj_sections(rule.archive, rule.obj)
File "C:/msys32/home/jcsba/esp/esp-idf/tools/ldgen/generation.py", line 634, in get_obj_sections
stored = self.sections[archive]
KeyError: 'liblwip.a'
make: *** [/home/jcsba/esp/esp-idf/components/esp32/Makefile.projbuild:51: /c/Users/jcsba/Documents/GitHub/Testing/C/Olimex/build/esp32/esp32.common.ld] Error 1
I'm trying to keep up to date to see what changes there have been to the WiFi drivers as I have various ongoing problems, eg Android hotpot reconnecting after ESP32 reset and not getting events when password is incorrect when connecting to the ESP32's AP.