我再进行编译的时候,出现如下问题,我看了所有的信息,均没找到答案,不知谁遇到过,怎么解决的?
环境windows 10 x64 vscode idf版本 v4.4.5
[2/6] Generating ld/sections.ld
FAILED: esp-idf/esp_system/ld/sections.ld F:/esp32/hghff/hello_world/build/esp-idf/esp_system/ld/sections.ld
cmd.exe /C "cd /D F:\esp32\hghff\hello_world\build\esp-idf\esp_system && D:\Espressif\python_env\idf4.4_py3.11_env\Scripts\python.exe D:/Espressif/frameworks/esp-idf-v4.4.5/tools/ldgen/ldgen.py --config F:/esp32/hghff/hello_w
orld/sdkconfig --fragments D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_ringbuf/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/driver/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components
/esp_pm/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/spi_flash/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_gdbstub/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/espcore
dump/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_phy/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_system/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_system/app.
lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/hal/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_event/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_wifi/linker.lf D:/Espres
sif/frameworks/esp-idf-v4.4.5/components/lwip/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/log/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/heap/linker.lf D:/Espressif/frameworks/esp-idf-v
4.4.5/components/soc/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_hw_support/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/xtensa/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/co
mponents/esp_common/common.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_common/soc.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/freertos/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components
/newlib/newlib.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/newlib/system_libs.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/app_trace/linker.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/bt/link
er.lf D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_lcd/linker.lf --input D:/Espressif/frameworks/esp-idf-v4.4.5/components/esp_system/ld/esp32/sections.ld.in --output F:/esp32/hghff/hello_world/build/esp-idf/esp_sy
stem/ld/sections.ld --kconfig D:/Espressif/frameworks/esp-idf-v4.4.5/Kconfig --env-file F:/esp32/hghff/hello_world/build/config.env --libraries-file F:/esp32/hghff/hello_world/build/ldgen_libraries --objdump D:/Espressif/tool
s/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-objdump.exe"
Traceback (most recent call last):
File "D:\Espressif\frameworks\esp-idf-v4.4.5\tools\ldgen\entity.py", line 136, in add_sections_info
results = parser.parseString(first_line, parseAll=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Espressif\python_env\idf4.4_py3.11_env\Lib\site-packages\pyparsing.py", line 1814, in parseString
raise exc
File "D:\Espressif\python_env\idf4.4_py3.11_env\Lib\site-packages\pyparsing.py", line 1804, in parseString
loc, tokens = self._parse( instring, 0 )
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Espressif\python_env\idf4.4_py3.11_env\Lib\site-packages\pyparsing.py", line 1548, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Espressif\python_env\idf4.4_py3.11_env\Lib\site-packages\pyparsing.py", line 3705, in parseImpl
loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Espressif\python_env\idf4.4_py3.11_env\Lib\site-packages\pyparsing.py", line 1552, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Espressif\python_env\idf4.4_py3.11_env\Lib\site-packages\pyparsing.py", line 4067, in parseImpl
return self.expr._parse( instring, loc, doActions, callPreParse=False )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Espressif\python_env\idf4.4_py3.11_env\Lib\site-packages\pyparsing.py", line 1552, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Espressif\python_env\idf4.4_py3.11_env\Lib\site-packages\pyparsing.py", line 2625, in parseImpl
raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected "In archive" (at char 0), (line:1, col:1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Espressif\frameworks\esp-idf-v4.4.5\tools\ldgen\ldgen.py", line 178, in <module>
main()
File "D:\Espressif\frameworks\esp-idf-v4.4.5\tools\ldgen\ldgen.py", line 136, in main
sections_infos.add_sections_info(dump)
File "D:\Espressif\frameworks\esp-idf-v4.4.5\tools\ldgen\entity.py", line 138, in add_sections_info
raise ParseException('Parsing sections info for library ' + sections_info_dump.name + ' failed. ' + p.msg)
pyparsing.ParseException: Parsing sections info for library F:/esp32/hghff/hello_world/build/esp-idf/esp_common/libesp_common.a failed. Expected "In archive" (at char 0), (line:1, col:1)
ninja: build stopped: subcommand failed.
* 终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja ”已终止,退出代码: 1。
idf编译失败
-
- Posts: 156
- Joined: Tue Jul 11, 2023 6:55 am
Re: idf编译失败
请问你编译的 hello_world 是 IDF examples 中的例程还是自己写的?如果是自己写的可以尝试编译一下 examples 中自带的例程检查一下是否可以编译成功。
Who is online
Users browsing this forum: No registered users and 72 guests