Skip to content
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

Open
zackees opened this issue Dec 27, 2024 · 0 comments
Open

Windows Command size exceeds 32k causing failure to execute command #5058

zackees opened this issue Dec 27, 2024 · 0 comments

Comments

@zackees
Copy link

zackees commented Dec 27, 2024

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

Compiling .pio\build\dev\lib354\fastled\FastLED.cpp.o
Compiling .pio\build\dev\lib354\fastled\bitswap.cpp.o
Compiling .pio\build\dev\lib354\fastled\cled_controller.cpp.o
Compiling .pio\build\dev\lib354\fastled\colorpalettes.cpp.o
Compiling .pio\build\dev\lib354\fastled\colorutils.cpp.o
Compiling .pio\build\dev\lib354\fastled\crgb.cpp.o
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/niteris/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory
compilation terminated.
Compiling .pio\build\dev\lib354\fastled\five_bit_hd_gamma.cpp.o
*** [.pio\build\dev\lib354\fastled\bitswap.cpp.o] Error 1
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/niteris/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory
compilation terminated.
*** [.pio\build\dev\lib354\fastled\cled_controller.cpp.o] Error 1
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/niteris/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory
compilation terminated.
*** [.pio\build\dev\lib354\fastled\colorpalettes.cpp.o] Error 1
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/niteris/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory
compilation terminated.
*** [.pio\build\dev\lib354\fastled\FastLED.cpp.o] Error 1
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/niteris/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory
compilation terminated.
*** [.pio\build\dev\lib354\fastled\crgb.cpp.o] Error 1
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/niteris/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory
compilation terminated.
*** [.pio\build\dev\lib354\fastled\five_bit_hd_gamma.cpp.o] Error 1
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/niteris/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory
compilation terminated.
*** [.pio\build\dev\lib354\fastled\colorutils.cpp.o] Error 1

Expected Results

If problems with PlatformIO Build System:

The content of platformio.ini:

[platformio]
src_dir = dev ; target is ./dev/dev.ino

[env:dev]
; This is the espressif32 platform which is the 4.1 toolchain as of 2024-Aug-23rd
; platform = espressif32
; The following platform enables the espressif32 platform to use the 5.1 toolchain, simulating
; the new Arduino 2.3.1+ toolchain.

# Developement branch of the open source espressif32 platform
platform =  https://github.com/pioarduino/platform-espressif32/releases/download/53.03.10/platform-espressif32.zip

framework = arduino
board = esp32-c6-devkitc-1

upload_protocol = esptool

monitor_filters = 
	default
	esp32_exception_decoder  ; Decode exceptions so that they are human readable.

; Symlink in the FastLED library so that changes to the library are reflected in the project
; build immediatly.
lib_deps = 
  FastLED=symlink://./

check_tool = clangtidy

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant