April 19, 2017 at 20:39 #11031
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.
There are 3 cmd.exe and 5 conhost.exe processes who are running
This remained for at least 5 minutesApril 19, 2017 at 21:00 #11032
I changed toolchain to c:\SysGCC\ and it worked … StrangeApril 20, 2017 at 23:15 #11043
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 #11056
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:
“C:\Program Files (x86)\Sysprogs\VisualGDB\VisualGDB.exe” /clean “[Path to project]\Project.vcxproj” “/solution:[Path to solution]\Solution.sln” “/config:Debug” “/platform:Win32″
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 #11057
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:
cmd /C del /S /Q $(BINARYDIR)
rm -rf $(BINARYDIR)
The USE_DEL_TO_CLEAN is set to 1 in debug.mak
Where else to fix it?April 23, 2017 at 12:02 #11058
It 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:
cmd /C del /S /Q $(BINARYDIR)
find $(BINARYDIR) -type f ! -name “*.log” -delete
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?April 25, 2017 at 07:28 #11071
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.
You must be logged in to reply to this topic.