question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compile - files with CreateProcess error (windows) - path max length limitation

See original GitHub issue

It seems like I am hitting windows path limit. This was a problem with yotta, which I recall added unicode paths support, to overcome this?

cd C:\Code\git_repo\github\mbed-rtos-thread-helloworld
python C:\Code\git_repo\github\neo\neo.py compile -m K64F -t GCC_ARM
[neo.py] Exec python mbed-os/tools/make.py --source=C:\Code\git_repo\github\mbed-rtos-thread-helloworld --build=C:\Code\git_repo\github\mbed-rtos-thread-helloworld\.build -m K64F -t GCC_ARM
Building project MBED-RTOS-THREAD-HELLOWORLD (K64F, GCC_ARM)
[ERROR] [Error 87] The parameter is incorrect

vs

cd C:\2
python C:\Code\git_repo\github\neo\neo.py compile -m K64F -t GCC_ARM
[neo.py] Exec python mbed-os/tools/make.py --source=C:\2 --build=C:\2\.build -m K64F -t GCC_ARM
Building project 2 (K64F, GCC_ARM)
Compile: Mutex.cpp
Compile: RtosTimer.cpp
Compile: Semaphore.cpp
Compile: Thread.cpp

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
bogdanmcommented, Apr 12, 2016

Workaround until this is fixed: try running in a Linux VM.

1reaction
0xc0170commented, Apr 11, 2016

yotta workaround has been applied, yet compiling Thread and everything else generates 38000 symbols link command. This will be addressed with response files.

Please provide commit/PR reference, or might be better to reference this via commit message, we can track/review changes done for this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maximum Path Length Limitation - Win32 apps | Microsoft Learn
The maximum path of 32,767 characters is approximate, because the "\\?\" prefix may be expanded to a longer string by the system at...
Read more >
Why does the 260 character path length limit exist in Windows?
In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined...
Read more >
MSVC / wrapper script bug: cannot compile files with long path ...
MSVC / wrapper script bug: cannot compile files with long path #2406 ... of inputs and outputs may push the combined length over...
Read more >
Long paths causing errors in latest MSBuild (with long path ...
Maximum Path Length Limitation In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is...
Read more >
Solving the 8192 Character Command Line Limit on Windows
There is a really annoying issue with using command line tools on Windows: the maximum length of the command line passed to cmd.exe...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found