Sysprogs forums › Forums › VisualGDB › cmd make VS 2017 blocks clean
- This topic has 6 replies, 3 voices, and was last updated 7 years, 8 months ago by support.
-
AuthorPosts
-
April 19, 2017 at 20:39 #11031b.timofteParticipant
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
April 19, 2017 at 21:00 #11032b.timofteParticipantI changed toolchain to c:\SysGCC\ and it worked … Strange
April 20, 2017 at 23:15 #11043supportKeymasterHi,
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.
April 23, 2017 at 10:36 #11056namezisParticipantI 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?
April 23, 2017 at 10:49 #11057namezisParticipantAt 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)
endifThe USE_DEL_TO_CLEAN is set to 1 in debug.mak
Where else to fix it?
April 23, 2017 at 12:02 #11058namezisParticipantIt started to disturb me, so I had a bit more look around, and the simplest fix was to:
- Edit debug.mak and release.mak and change USE_DEL_TO_CLEAN to 0 (zero).
- 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
endifThis 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?
April 25, 2017 at 07:28 #11071supportKeymasterHi,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.