-
Bug
-
Resolution: Unresolved
-
Medium
-
Code Generation Tools
-
CODEGEN-12531
-
-
-
-
default
This problem only occurs on Windows.
The file stub.c is a complete one line program. The file options.txt has these lines ...
stub.c -o stub.out -Wl,-c -L"C:/d12345689012345678901234567890123456789012345678901234567890123456789/that/does/not/exist" -L"C:/d12345689012345678901234567890123456789012345678901234567890123456789/that/does/not/exist" -L"C:/d12345689012345678901234567890123456789012345678901234567890123456789/that/does/not/exist" <... repeated many more times ...>
The number of characters in options.txt is around 39,400.
Build it ...
% tiarmclang @options.txt tiarmclang: error: unable to execute command: Couldn't execute program 'C:\ti\compilers\ti-cgt-armllvm_3.2.2.LTS\bin\tiarmlnk.exe': The filename or extension is too long. (0xCE) tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
Build it again with -v to see the command tiarmclang constructs for the invocation of tiarmlnk. It is very long, and Windows rejects it.