AnsweredAssumed Answered

KDS 3.0 Linker Line Length Issue

Question asked by bcamp on May 12, 2015
Latest reply on May 13, 2015 by bcamp

Hi

 

In KDS 3.0, there seems to be a bug:

 

1) Put in your source files with nice long paths

2) Put in lots of source files

3) Hit the Windows 8192 character limit on the command line (like with a 9K line)

 

Now the line that starts with :

 

 

arm-none-eabi-g++ -mcpu=cortex-m0plus ...

 

needs to be extended by putting in a ^ character when passed to Windows. The code appears to be smart enough to do this. The problem is that

the linker spits back an error:

 

 

arm-none-eabi-g++: error: ./Generated_Coe/Cpu.o: No such file or directory

 

There is no "/Generated_Coe/" directory. It should be "/Generated_Code/". The ^ appears to be overwriting the d in the word Code. Looking at the string before it goes to Windows, there is no spelling error there. You can get the dropped character to move around by changing the lengths of your file names. You can also get it to work by putting dummy .o files in the /Generated_Code/ directory if only the file name is mangled.

 

I suppose the work around for now is to not use stupid long paths and file names ...

 

So much fun!

 

Bob

Outcomes