none
PATH environment duplicated paths

    Question

  • The following happens only with Intel projects, only in 64 bit architecture.

    I'm experiencing build failurs in VS2012, in which PATH is too long for a batch in the build to process. It turns out that PATH actually contains a concatenation of two sets of directories, almost a duplication, rendering it over 6000 characters long.

    I have 4 versions of Intel compiler installed (I need all four for parallel development): 11, 12.1, 2013, 2015.  

    It looks like when Visual Studio loads, the Intel integrations somehow duplicate the PATH var in 64 bits, but I couldn't find out where this is done.

    Please help!
    Thanks,
    Gil. 

    Monday, February 23, 2015 4:08 PM

Answers

All replies

  • Hi Gil,

    >>The following happens only with Intel projects, only in 64 bit architecture.

    If it is related to the Intel project, I'm afraid that we didn't support it since it seems that it is related to the third party tool.

    So you'd better post this issue to the Intel forum.

    Maybe it is a better support site for this issue here:

    https://software.intel.com/en-us/forum

    If I have misunderstood this issue, please feel free to let me know.

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, February 26, 2015 11:51 AM
  • Hi Jack,

    This is an integration problem between VS and Intel.

    I would at least like to know how VS sets its PATH environment variable - it is different than the PATH you see in the command line window.

    Thanks.

    Sunday, March 01, 2015 7:48 AM
  • Hi Gil,

    Thanks for your friendly response.

    >>PATH environment variable

    Would you mind letting us know more information about this issue? What is the "PATH environment variable" in your side? Is it the project folder path or others?

    >>I'm experiencing build failurs in VS2012, in which PATH is too long for a batch in the build to process. It turns out that PATH actually contains a concatenation of two sets of directories, almost a duplication, rendering it over 6000 characters long.

    Do you mean that you met the issue about the 260 character file name length limitation in VS2012 IDE?

    http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2156195-fix-260-character-file-name-length-limitation

    If so, I'm afraid that it is by design now.

    If I have misunderstood this issue, please feel free to let me know.

    Sincerely,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Sunday, March 01, 2015 8:07 AM
  • Hi Jack,

    Thanks for a super-quick response.

    In a VS project, I echo the PATH variable (say, from a pre-build step), or alternatively set the build verbose to Diagnostic, then build and find the "NativeExecutablePath" variable in the Output window.

    The path I get from a VS project differs than the one I get from an Intel project. Specifically, the 64 bit configuration produces a path that is a concatination of two similar paths.

    I don't see a limit of 260 chars actually.

    I hope this is clearer.

    Sunday, March 01, 2015 9:42 AM
  • Hi Gil,

    >> I echo the PATH variable (say, from a pre-build step).

    You said that "Pre-build", so it is related to the Post-Build event under project property, am I right?

    Like this document here:

    https://msdn.microsoft.com/en-us/library/e85wte0k.aspx?f=255&MSPPError=-2147217396

    https://msdn.microsoft.com/en-us/library/42x5kfw4.aspx

    I doubt that it is the MSBuild issue.

    To help you find the correct forum,  I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.

    Sincerely,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Monday, March 02, 2015 11:07 AM
  • I'[d probably try them over here.

    https://software.intel.com/en-us/forums/intel-c-compiler

    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowsgeneraldevelopmentissues&filter=alltypes&sort=lastpostdesc

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Tuesday, March 03, 2015 1:14 AM
    Moderator