This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

armcc --via file limitation?

armcc 5.0.4.82 on Win7

When armcc links, I get the following error message (formatted by CMake/ninja)

Error: C4365E: Subtool invocation error: Command line too long

This error message is not described for armccor armlink

The command line is as follows (there are more options normally, but I get the error only with the following):

d:\ARM_Compiler_5\5.0.4.82\bin64\armcc.exe    --cpu=Cortex-A9  --via=out.rsp  -o out.elf 


If the file in --via is more than about 32767 bytes, the linking fails.

The command is run from cmd.exe, but armcc should parse the --via file by itself to my knowledge.


A very temporary workaround is to move the objectfiles before linking, so the path can be shortened. Will fail again when number of files increases.


/Gerhard

Parents
  • Wow that's quite some size of command line. The mind boggles over what size the eventual program will be.

    Anyway I believe that that amcc has come across the WIndows operating system limit on the length of UNICODE_STRING which is 32767. The only way I can think of that it  can get round that is by putting the parameters into another via file of their own if they are more than that size when calling down to the executables below. So yep raise that with ARM support..

    Did you try calling armlink with a -via directly from the make instead of using armcc? I';d have thought that should work okay

Reply
  • Wow that's quite some size of command line. The mind boggles over what size the eventual program will be.

    Anyway I believe that that amcc has come across the WIndows operating system limit on the length of UNICODE_STRING which is 32767. The only way I can think of that it  can get round that is by putting the parameters into another via file of their own if they are more than that size when calling down to the executables below. So yep raise that with ARM support..

    Did you try calling armlink with a -via directly from the make instead of using armcc? I';d have thought that should work okay

Children