Skip to content

mbed-cli build path exceeds Windows command line argument sting length #7129

Closed
@dlfryar-zz

Description

@dlfryar-zz

Description

Building mbed-cloud-client-example and possibly other projects that have lots of source files overruns the Windows command line argument sting length of 32k. Targets like Nordic where the peripheral feature set is broken down to separate directories (e.g. mbed-os/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2/drivers_nrf/*) exacerbate this problem and make it more noticeable on smaller source projects.

maximum-length-of-command-line-string

Error Output

Source files to be passed to compiler are truncated on the command line in Windows.

[DEBUG] Return: 1
[DEBUG] Output: arm-none-eabi-g++: error: CreateProcess: No such file or directory
  File "C:\mbed-cloud-client-example\mbed-os\tools\toolchains\__init__.py", line 974, in compile_queue
    raise ToolException(err)
ToolException: arm-none-eabi-g++: error: CreateProcess: No such file or directory

[mbed] ERROR: "c:\python27\python.exe" returned error code 1.
[mbed] ERROR: Command "c:\mbed-cloud-client-example\mbed-os\tools\make.py -t GCC_ARM -m nRF52840_DK --source . --build .\BUILD\NRF52840_DK\GCC_ARM -v" in "C:\mbed-cloud-client-example"

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions