Hi
Thanks for the information on re-doing the tool chain. I'd sort of hoped that gutting a three day old release would not be needed. I suppose
that switching to a nice new Mac would also be a solution. I'll put in a ticket with IT and see how well that all works out :smileyhappy:
Will future updates of KDS use the tools you mentioned? My concern is an update that comes out next week and things get subtly broken
in some other way. I would prefer to keep the tool chains on all of the machines and platforms as "vanilla" as possible.
--------------------
Looking at the release note proposed solution:
Most of the linker line length is "fed" by the MQX / PEX / SDK file references. The linker line is mostly paths like the one in:
./SDK/rtos/mqx/mqx_stdlib/source/stdio/fflush.o
If I simply put in enough drivers and MQX stuff with zero user code, I hit the same wall. I don't see how I can control the length of the paths
that PEX / MQX comes up with. Changing the ./SDK/rtos/mqx/mqx/mqx_stdlib/source/ to something like ./OSsrc/ would be a real
solution with the existing tools. The other one to change would be ./SDK/platform/drivers/src/ to ./PTdrv/ .
So - Is there an easy way to put in a few more links and get rid of the long(er) paths?
Yes, the "other" answer is - don't use PEX. Let's keep it a Processor Expert setup for now.
--------------------
Far more interesting is the fact that the existing tools *do* understand the command line limit and make an effort to get around it.
They understand that a ^ in the line will do a continue and solve the problem. In practice the output is not truncated. The entire string (almost)
gets passed to the linker. The problem is that they overwrite one character in the string when they put in the ^ rather than extending the length of the
string.
You can fairly easily see this going on by looking at the Eclipse side error the linker feeds back " ..... No such file .." and by cutting and pasting the proposed
command line from Eclipse onto a Windows command prompt. The error messages are quite different.
The Eclipse error message contains an "almost correct" file name. You can also create a dummy .o file in the appropriate directory and get the
existing Eclipse tools to do a build. Since the name of the file changes each time the line is re-mangled, this is not a long term solution.
Because it's a relatively simple programming error, it *seems* like a correctable issue with the existing chain ...
Bob