Skip to content

Exporting to Makefile fails to build on Windows #6335

Closed
@SeppoTakalo

Description

@SeppoTakalo

Description

  • Type: Bug
  • Priority: Minor

Bug

Target
Any

Toolchain:
Any Makefile based export.

Expected behavior
mbed export -m <board> -i make_gcc_arm
make

Actual behavior
Error code:
make (e=87): The parameter is incorrect.

This is produced because the final link command is 44,252 characters long.

Windows CreateProcess() only accepts command line maximum length to be 32,768 characters. See here.

Similar issue described here: https://stackoverflow.com/questions/12598933/ndk-build-createprocess-make-e-87-the-parameter-is-incorrect

Steps to reproduce
Import mbed-os-example-mesh-minimal
mbed export -m <board> -i make_gcc_arm

Workarounds

  1. Don't use Makefile builds on Windows.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions