Hi, I have a problem something weird.
I made some cpp files in my project folder and made a Makefile to compile easier.
The problem is that if compile path is longer than specific length, the compile error was occured.
Only difference between success and fail is the length of compile path of target cpp files.
Is there a maximum length of compile path or something else i don't know in arm compiler?
please share your wisdom,
thanks.
Although I do not know the ARM CC limitations, exceeding the total command line length is a common Windows make problem.
Is Windows your development platform? If so, what version of make.exe are you using? Is there any sh.exe in the same folder?
Yep that's right, there's an 8K linit on command lines in WIndows,though a makefile would normally do one compile at a time checking each source file whether it has changed.so I'm not certain what is happening there I can't see how one would get to such a length other than by supplying a list of source files. If you really want to supply a long list of source files or other options to the compiler you can use the --via option.
Also if the compile path is too long you'll almost certainly come across this problem again when linking and want this fix
LINKER ERROR: Argument list too long
It sounds like there should be some FAQ which answers this as it can only get more common as the size of systems grows.
The 8K Windows command line limit may be exceeded for link lines.
The problem is related to the method used by make.exe to create subprocesses to run the compile/link processes. If available, recent make.exe versions are able to use a sh.exe. If sh.exe is not available, make falls back to using cmd.exe. Unfortunatelly cmd.exe, in the good Windows tradition performs quite poorly in many regards, including the limit of the command line, which is 8K.
If you want to overcome this limitation, install a new set of build tools, which includes a modern make.exe and a sh.exe.
You can find such tools in the GNU ARM Eclipse project, the GNU ARM Eclipse Build Tools sub-package.
I use GNU ARM Eclipse Build Tools.When I build my project I do not problem.But I have length limit problem when I clear my project.