We have a MCUXpressso IDE project which compiles and runs properly in windows. This project generates a makefile automatically and we are planning to use this for our docker based compilation. As a first step, we tried to run the makefile from windows command prompt. It works as expected until we see the following error.
The problem is that Windows has a maximum command line length of 8192 characters. This is a Windows limitation and nothing to do with MCUXpresso.
The only solutions (that I know) are:
- to reduce the size of your directory/sub-directory names so that the command issued to the linker is less than 8192 characters (the command below is over 10k characters),
- or put some of your objects into a library and link with that library
Neither of these may be particularly palatable, but they do work. There may be other solutions, but these are the ones I have used.