Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11784

tiarmclang constructs an invocation of the linker that exceeds the command line length supported by Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium

      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.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: