-
-
Notifications
You must be signed in to change notification settings - Fork 801
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
Windows Command size exceeds 32k causing failure to execute command #5058
Comments
I have no solution, but at least I have the same problem :) |
Honestly at this point, someone is going to have to volunteer to fix it and submit a PR. |
I have the same question, but I can't figure out the solution |
@tao4091 , could you share your |
This was posted in a cross post of this bug: import os
from platformio import fs
Import("env")
platform = env.PioPlatform()
FRAMEWORK_DIR = fs.to_unix_path(
platform.get_package_dir("framework-arduinoespressif32")
)
IS_INTEGRATION_DUMP = env.IsIntegrationDump()
def shorten_includes(env, node):
if IS_INTEGRATION_DUMP:
# Don't shorten include paths for IDE integrations
return node
includes = [fs.to_unix_path(inc) for inc in env.get("CPPPATH", [])]
shortened_includes = []
generic_includes = []
for inc in includes:
if inc.startswith(FRAMEWORK_DIR):
shortened_includes.append(
"-iwithprefix/"
+ fs.to_unix_path(os.path.relpath(inc, FRAMEWORK_DIR))
)
else:
generic_includes.append(inc)
return env.Object(
node,
CPPPATH=generic_includes,
CCFLAGS=env["CCFLAGS"] + ["-iprefix", FRAMEWORK_DIR] + shortened_includes
)
env.AddBuildMiddleware(shorten_includes) |
What kind of issue is this?
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system:
Windows
Version
6.1.16 and also 6.1.17 latest
Board
esp32 c6
Description of problem
The generated command in the tmp file is 34k, exceeding the 32k limit
Steps to Reproduce
Actual Results
Expected Results
If problems with PlatformIO Build System:
The content of
platformio.ini
:Additional info
According to the internet, the include paths can be shorted to be an environmental variable. Therefore, a fix would include using variable substitution for the top common prefix (Or just %HOME%, since everything is coming from the home directory) resulting in a massive reduction in the generated GCC command.
The text was updated successfully, but these errors were encountered: