-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't build! (IDFGH-14674) #15418
Comments
Hello @AMAZONGSANG , it looks like an issue with the Thank you |
I have learned about the #10440 issue, but unfortunately I don't understand it very well, and it is mac, I am not sure how to solve it on Windows Here is the log I obtained using the "idf.py -v build" command
Run the "idf.py -v build" command again to obtain logs after the "idf.py fullclean" command is used
|
Oh!I think of one thing, after using the Windows11 installation assistant, I waited a few days to compile, is this problem related to this step? If so, how do I restore to the original system environment? |
I'm sorry I ordered it wrong |
Hello @AMAZONGSANG ,
Yes, it was reported for Mac, but the issue seems quite similar. The problem appears to be that Thank you for the output. I'm sorry, I overlooked that CMake on Windows might wrap the command in a batch file, possibly due to command line length limitations. Therefore, the full ldgen command should be in the
For Windows, I would recommend using either the online or offline installer as described here https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/windows-setup.html. This should set up everything required for the ESP-IDF environment. I suspect there might be an issue with the ESP-IDF installation or environment. Thank you |
Hello @fhrbata ,
and sections.ld-d65dc84.bat
我的环境配置就是根据官网配置来的,但是不能进行编译 |
Hello @AMAZONGSANG , thank you for the additional information. It seems that you posted the output of the C:\Users\FrantisekHrbata\work\esp-idf\examples\get-started\hello_world>cat build\esp-idf\esp_system\CMakeFiles\sections.ld-d65dc84.bat
@echo off
cd /D C:\Users\FrantisekHrbata\work\esp-idf\examples\get-started\hello_world\build\esp-idf\esp_system || (set FAIL_LINE=2& goto :ABORT)
C:\Espressif\python_env\idf5.5_py3.11_env\Scripts\python.exe C:/Users/FrantisekHrbata/work/esp-idf/tools/ldgen/ldgen.py --config C:/Users/FrantisekHrbata/work/esp-idf/examples/get-started/hello_world/sdkconfig --fragments-list C:/Users/
FrantisekHrbata/work/esp-idf/components/xtensa/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_gpio/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_pm/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/
components/esp_mm/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/spi_flash/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_system/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_system/app.lf;C:
/Users/FrantisekHrbata/work/esp-idf/components/esp_common/common.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_common/soc.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_rom/linker.lf;C:/Users/FrantisekHrbata/work/esp-
idf/components/hal/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/log/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/heap/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/soc/linker.lf;C:/Users/Frantise
kHrbata/work/esp-idf/components/esp_hw_support/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_hw_support/dma/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_hw_support/ldo/linker.lf;C:/Users/FrantisekHrbat
a/work/esp-idf/components/esp_hw_support/mspi_timing_tuning/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/freertos/linker_common.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/freertos/linker.lf;C:/Users/FrantisekHrbat
a/work/esp-idf/components/newlib/src/newlib.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/newlib/src/system_libs.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_gptimer/linker.lf;C:/Users/FrantisekHrbata/work/esp-id
f/components/esp_ringbuf/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_uart/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/app_trace/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_even
t/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_phy/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_usb_serial_jtag/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/vfs/linker.lf;C:/Users
/FrantisekHrbata/work/esp-idf/components/lwip/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_netif/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/wpa_supplicant/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf
/components/esp_wifi/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_spi/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_pcnt/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_dri
ver_mcpwm/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_ana_cmpr/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_dac/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_rmt
/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_sdm/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_i2c/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_ledc/linker.lf;C:
/Users/FrantisekHrbata/work/esp-idf/components/esp_driver_parlio/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/driver/twai/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_adc/linker.lf;C:/Users/FrantisekHrbat
a/work/esp-idf/components/esp_driver_isp/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_eth/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_gdbstub/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/component
s/esp_psram/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/esp_lcd/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/espcoredump/linker.lf;C:/Users/FrantisekHrbata/work/esp-idf/components/ieee802154/linker.lf;C:/Use
rs/FrantisekHrbata/work/esp-idf/components/openthread/linker.lf --input C:/Users/FrantisekHrbata/work/esp-idf/examples/get-started/hello_world/build/esp-idf/esp_system/ld/sections.ld.in --output C:/Users/FrantisekHrbata/work/esp-idf/exa
mples/get-started/hello_world/build/esp-idf/esp_system/ld/sections.ld --kconfig C:/Users/FrantisekHrbata/work/esp-idf/Kconfig --env-file C:/Users/FrantisekHrbata/work/esp-idf/examples/get-started/hello_world/build/config.env --libraries
-file C:/Users/FrantisekHrbata/work/esp-idf/examples/get-started/hello_world/build/ldgen_libraries --objdump C:/Espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-objdump.exe || (set FAIL_LINE=3& goto
:ABORT)
goto :EOF
:ABORT
set ERROR_CODE=%ERRORLEVEL%
echo Batch file failed at line %FAIL_LINE% with errorcode %ERRORLEVEL%
exit /b %ERROR_CODE%
Were you able to successfully finish the installation with ESP-IDF Tools Installer as described here https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/windows-setup.html? In one of outputs you posted, there is the following message, which might be related to your problem
IIUC you have the the esp-idf framework in D:\ESP32\Espressif\frameworks\esp-idf-v5.3.2\install.ps1
D:\ESP32\Espressif\frameworks\esp-idf-v5.3.2\export.ps1 There also seem to be another problem with the esp-idf repository ownership. Following is also from one of outputs you posted.
Thank you |
Hello @fhrbata ,
I installed the fourth package that appears on the following page, which is 5.3.2 -Offline Installer After I execute this this instruction
The following log appears
But I still get an error when I compile again |
Hello @AMAZONGSANG, thank you for providing the additional information and assistance as we work to understand the issue. It appears that
Could you please run the following command to ensure the binary functions correctly in your environment and share the output?
Additionally, please try this command. It might help us understand what
Thank you. |
hello @fhrbata,
Thank you |
Hello @AMAZONGSANG ,
You're very welcome! Though, unfortunately, I haven't been able to provide anything truly helpful for your issue so far. 😞
To be honest, I wasn't expecting this output since it looks correct. I was hoping to see something unusual that could help explain the behavior you're experiencing. Based on your outputs, the failure doesn’t seem to be specific to a single library (libesp_common.a, libesp_app_format.a, liblog.a).
The two snippets above, IIUC, mean that there was no output from the objdump passed to ldgen. Strange thing is that the objdump has not failed. If there was something wrong we would see different error like command not found, invalid argument(non-existing, empty or invalid format of the library). It just for some reason returns empty output or it's somehow discarded in the bat file or python, which I think is unlikely. The following snipped means that there was some output, but ldgen was not able to parse it. The section parsing failed.
I tried to make sense of this, but I'm not sure how it could have happened. I guess there has to be something wrong with the installation. It's hard to say.
This means that the I guess if this was a generic problem with ldgen, there would be more issues reported for this. I would recommend a fresh ESP-IDF installation to rule out any issues that might be caused by a broken installation.
I'm not sure. I suppose it's possible but unlikely—but I'm not a Windows user and my experience with it is very limited. Thank you very much for all the information you've provided. You can try a fresh install as described above to see if it helps. Apologies if I missed anything. Perhaps others may have additional insights into what might be wrong. |
Answers checklist.
IDF version.
ESP-IDF v5.3.2-dirty
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
PowerShell
What is the expected behavior?
I want to build my project
What is the actual behavior?
Compilation failure.
However, after the compilation fails, restart the computer and compile again to compile successfully
After the compilation fails, delete the "build" folder and restart the computer to compile again
Steps to reproduce.
I'm sorry, I don't know.And then one day it was compiled and it was like this
Build or installation Logs.
More Information.
I have downloaded other versions of idf, but none of them worked
The text was updated successfully, but these errors were encountered: