-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
"Command line is too long" while building large project under Windows #3792
Comments
I just tried with Linking .pio\build\esp32dev-21pin\bootloader.elf
Building .pio\build\esp32dev-21pin\bootloader.bin
esptool.py v3.0
Linking .pio\build\esp32dev-21pin\firmware.elf
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32dev-21pin\firmware.elf] Error 1
=============================================================== [FAILED] Took 233.96 seconds ===============================================================
Environment Status Duration
-------------- -------- ------------
esp32dev-21pin FAILED 00:03:53.956
========================================================== 1 failed, 0 succeeded in 00:03:53.956 ==========================================================
PS C:\Work\E2-Sample-Demonstration> |
|
I just managed to create a workaround based on original PIO The workaround involves creating an additional script and referencing it from 1. place
|
@justoke To my best guess - You're facing a different error - the one You reported occurs during source file compilation. My workaround only resolves the issue at final linking step. I guess in Your case a similar workaround for compile command could do the trick, but explaining it is beyond this forum. Regarding checking if the script is being run - sure, add something like |
Thanks for the tip - you are right this is compile time, but this could be promising as a workaround. I'll share my findings |
Please re-test with |
esp32dev-21pin SUCCESS 00:00:43.636
=========================================== 1 succeeded in 00:00:43.636 =========================================== Works! :) Big thanks to PlatformIO team!! |
Thank you! |
If you’ve found a bug, please provide an information below.
Configuration
Windows 10
PlatformIO Core, version 5.0.4
Description of problem
When building my ESP32 project, I get "The command line is too long." at the final firmware linking step.
Steps to Reproduce
pio run -e esp32dev-21pin
Actual Results
Too long line issue - resulting linker command - Pastebin.com
Expected Results
Successful build
If problems with PlatformIO Build System:
The content of
platformio.ini
:Too long line issue - platformio.ini - Pastebin.com
Additional info
-v
to the command lineThe text was updated successfully, but these errors were encountered: