This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

XDC cygwin path length problem

So I am building a project in windows using xdc from the command line.  After restructuring my project organization I get a build failure saying "File name too long".  After looking more carefully i noticed this is happening when xdc tries to remove my package's 064P.dep file before building.  xdc is using rm through cygwin.  It looks as though cygwin is path length limited to 256 bytes, even though NTFS can support path lengths of 32k or so.

 

Is there a workaround to this problem other than shrinking my path somehow?

  • It looks like this was resolved in cygwin 1.7, but xdctools uses cygwin files from 1.5.  I am going to try dropping in an updated dll to see what happens

  • so i found a workaround.  It works in my case, but could cause other weird problems I havent run into yet.  Here is what I did: (using xdc tools 3_22_02_27 as a starting point)

    1. download the latest version of cygwin

    2. in xdctools/bin backup the following files:

    -rm.exe

    -cygwin1.dll

    3. copy the following files from cygwin/bin to xdctools/bin

    -rm.exe

    -cygwin1.dll

    -cyggcc_s-1.dll

    4. set the environment variable CYGWIN=nodosfilewarning.  This will stop the new cygwin dll from spitting out path warnings constantly

    I don't know if this will resolve path related issues for all of xdc, but it fixes the problem I had with rm.  It would be nice if the next version of xdctools used cygwin version 1.7 or greater.  In my test I used 1.7.9

  • Glad to see this was resolved