cmd make VS 2017 blocks clean

Sysprogs forums Forums VisualGDB cmd make VS 2017 blocks clean

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11031
    b.timofte
    Participant

    I have VS 2017 and when i clean sample mingw hello world project the build stucks

     

    1>—— Clean started: Project: WindowsProject2, Configuration: Debug Win32 ——
    1>VisualGDB: Run “cmd.exe /c “C:\MinGW\msys\1.0\bin\make.exe” CONFIG=Debug clean” in directory “C:\Users\timo\Desktop\Study\Software_engineering\01.Boost\Projects\WindowsProject2\WindowsProject2” on local computer
    1>cmd /C del /S /Q Debug
    1>Microsoft Windows [Version 10.0.14393]
    1>(c) 2016 Microsoft Corporation. All rights reserved.
    1>

     

    There are 3 cmd.exe and 5 conhost.exe processes who are running

     

    Please help

     

     

    This remained for at least 5 minutes

    #11032
    b.timofte
    Participant

    I changed toolchain to c:\SysGCC\ and it worked … Strange

    #11043
    support
    Keymaster

    Hi,

    Could be an antivirus bug or a corrupt filesystem. If you encounter this problem again, feel free to let us know and we will help you resolve it.

    #11056
    namezis
    Participant

     

    I have encountered the same issue with VS2015 using MinGW.

    When starting clean from project context menu it starts, VisualGDB starts *.cmd script with following lines:

    setlocal
    set errorlevel=dummy
    set errorlevel=
    “C:\Program Files (x86)\Sysprogs\VisualGDB\VisualGDB.exe” /clean “[Path to project]\Project.vcxproj” “/solution:[Path to solution]\Solution.sln” “/config:Debug” “/platform:Win32″
    exit %errorlevel%

    In the above I have removed path and the project and solution name.

    This in turn starts the [vgagent.exe” /b cmd.exe /c “C:\MinGW\msys\1.0\bin\make.exe” CONFIG=Debug clean] and child processes:

    vgagent.exe -> cmd.exe -> make.exe -> sh.exe -> sh.exe -> cmd.exe

    The last process cmd.exe is executed with the following command line:

    c:\Windows\system32\cmd.exe c:/ del s:/ C:/MinGW/msys/1.0/Q Debug

    in the directory of the project where clean was required.

    The process never finishes. In the above command I do not understand what “C:/MinGW/msys/1.0/Q Debug” is about, it looks as somthing unfinished.

     

    Any idea?

     

     

     

     

     

    #11057
    namezis
    Participant

    At second look it seems that space is missing in the following:

    c:\Windows\system32\cmd.exe c:/ del s:/ C:/MinGW/msys/1.0 [missing space] /Q Debug

    The make file has correct syntax:

    clean:
    ifeq ($(USE_DEL_TO_CLEAN),1)
    cmd /C del /S /Q $(BINARYDIR)
    else
    rm -rf $(BINARYDIR)
    endif

     

    The USE_DEL_TO_CLEAN is set to 1 in debug.mak

     

    Where else to fix it?

    #11058
    namezis
    Participant

    It started to disturb me, so I had a bit more look around, and the simplest fix was to:

    1. Edit debug.mak and release.mak and change USE_DEL_TO_CLEAN to 0 (zero).
    2. Edit Makefile and change clean rule to:

    ifeq ($(USE_DEL_TO_CLEAN),1)
    cmd /C del /S /Q $(BINARYDIR)
    else
    find $(BINARYDIR) -type f ! -name “*.log” -delete
    endif

    This will clean the directory from files except the log file that is created just before the cleanup is started and cannot be deleted until clean is finished, unfortunetly.

    There must be some easy fix for the del method?

     

    #11071
    support
    Keymaster

    Hi,

    It looks like a bug introduced by the MinGW path translation. If you have the full msys, setting USE_DEL_TO_CLEAN to 0 should be the easiest fix.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.