Infinite loop during build
Posted: Thu Apr 28, 2011 2:35 am
Hi,
on Windows XP, CodeLite 2.10 4778, when I add the following pre-build command :
then build the following happens :
ad infinitum, it never ends.
and the Windows task manager shows dozens of mingw32-make processes. And sometimes, even after I quit CodeLite, new ming32-make processes keep on being generated and I never seem to be able to shut them all. Of course eventually the system is flooded with ming32-make processes and I need to force it to shut down
Here is the makefile :
Any clue what's going on there?
on Windows XP, CodeLite 2.10 4778, when I add the following pre-build command :
Code: Select all
windres -i "./wxtest.rc" --use-temp-file --define __WXMSW__ --define __WXDEBUG__ --define _UNICODE --include-dir C:\wxWidgets-2.9.1\lib\gcc_dll\mswud --include-dir C:\wxWidgets-2.9.1\include --define WXUSINGDLL -o ./Debug/wxtest.rc
Code: Select all
----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 1 -f "CLWorkspace_wsp.mk""
----------Building project:[ wxTest2 - Debug ]----------
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
mingw32-make.exe[1]: Entering directory `C:/Documents and Settings/mmg/Desktop/CLWorkspace/wxTest2'
and the Windows task manager shows dozens of mingw32-make processes. And sometimes, even after I quit CodeLite, new ming32-make processes keep on being generated and I never seem to be able to shut them all. Of course eventually the system is flooded with ming32-make processes and I need to force it to shut down
Here is the makefile :
Code: Select all
##
## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased
##
## Debug
ProjectName :=wxTest2
ConfigurationName :=Debug
IntermediateDirectory :=./Debug
OutDir := $(IntermediateDirectory)
WorkspacePath := "C:\Documents and Settings\mmg\Desktop\CLWorkspace"
ProjectPath := "C:\Documents and Settings\mmg\Desktop\CLWorkspace\wxTest2"
CurrentFileName :=
CurrentFilePath :=
CurrentFileFullPath :=
User :=mmg
Date :=04/27/11
CodeLitePath :="C:\Program Files\CodeLite"
LinkerName :=g++
ArchiveTool :=ar rcus
SharedObjectLinkerName :=g++ -shared -fPIC
ObjectSuffix :=.o
DependSuffix :=.o.d
PreprocessSuffix :=.o.i
DebugSwitch :=-gstab
IncludeSwitch :=-I
LibrarySwitch :=-l
OutputSwitch :=-o
LibraryPathSwitch :=-L
PreprocessorSwitch :=-D
SourceSwitch :=-c
CompilerName :=g++
C_CompilerName :=gcc
OutputFile :=$(IntermediateDirectory)/$(ProjectName)
Preprocessors :=$(PreprocessorSwitch)__WX__
ObjectSwitch :=-o
ArchiveOutputSwitch :=
PreprocessOnlySwitch :=-E
ObjectsFileList :="C:\Documents and Settings\mmg\Desktop\CLWorkspace\wxTest2\wxTest2.txt"
MakeDirCommand :=makedir
CmpOptions := -g $(shell wx-config --cxxflags --unicode=yes --debug=yes) $(Preprocessors)
C_CmpOptions := -g $(shell wx-config --cxxflags --unicode=yes --debug=yes) $(Preprocessors)
LinkOptions := -mwindows $(shell wx-config --debug=yes --libs --unicode=yes)
IncludePath := $(IncludeSwitch).
RcIncludePath :=
Libs :=
LibPath := $(LibraryPathSwitch).
##
## User defined environment variables
##
CodeLiteDir:=C:\Program Files\CodeLite
UNIT_TEST_PP_SRC_DIR:=C:\UnitTest++-1.3
WXWIN:=C:\wxWidgets-2.9.1
WXCFG:=gcc_dll\mswud
Objects=$(IntermediateDirectory)/wxDisplaying_Images_compareframe$(ObjectSuffix) $(IntermediateDirectory)/wxDisplaying_Images_imagepane$(ObjectSuffix) $(IntermediateDirectory)/wxDisplaying_Images_loader$(ObjectSuffix) $(IntermediateDirectory)/wxDisplaying_Images_main$(ObjectSuffix) $(IntermediateDirectory)/wxDisplaying_Images_menu$(ObjectSuffix)
##
## Main Build Targets
##
all: $(OutputFile)
$(OutputFile): makeDirStep $(Objects)
@$(MakeDirCommand) $(@D)
$(LinkerName) $(OutputSwitch)$(OutputFile) $(Objects) $(LibPath) $(Libs) $(LinkOptions)
objects_file:
@echo $(Objects) > $(ObjectsFileList)
makeDirStep:
@$(MakeDirCommand) "./Debug"
PreBuild:
@echo Executing Pre Build commands ...
windres -i "./wxtest.rc" --use-temp-file --define __WXMSW__ --define __WXDEBUG__ --define _UNICODE --include-dir C:\wxWidgets-2.9.1\lib\gcc_dll\mswud --include-dir C:\wxWidgets-2.9.1\include --define WXUSINGDLL -o ./Debug/wxtest.rc.o
@echo Done
##
## Objects
##
$(IntermediateDirectory)/wxDisplaying_Images_compareframe$(ObjectSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/compareframe.cpp $(IntermediateDirectory)/wxDisplaying_Images_compareframe$(DependSuffix)
$(CompilerName) $(SourceSwitch) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/compareframe.cpp" $(CmpOptions) $(ObjectSwitch)$(IntermediateDirectory)/wxDisplaying_Images_compareframe$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/wxDisplaying_Images_compareframe$(DependSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/compareframe.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/wxDisplaying_Images_compareframe$(ObjectSuffix) -MF$(IntermediateDirectory)/wxDisplaying_Images_compareframe$(DependSuffix) -MM "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/compareframe.cpp"
$(IntermediateDirectory)/wxDisplaying_Images_compareframe$(PreprocessSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/compareframe.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/wxDisplaying_Images_compareframe$(PreprocessSuffix) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/compareframe.cpp"
$(IntermediateDirectory)/wxDisplaying_Images_imagepane$(ObjectSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/imagepane.cpp $(IntermediateDirectory)/wxDisplaying_Images_imagepane$(DependSuffix)
$(CompilerName) $(SourceSwitch) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/imagepane.cpp" $(CmpOptions) $(ObjectSwitch)$(IntermediateDirectory)/wxDisplaying_Images_imagepane$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/wxDisplaying_Images_imagepane$(DependSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/imagepane.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/wxDisplaying_Images_imagepane$(ObjectSuffix) -MF$(IntermediateDirectory)/wxDisplaying_Images_imagepane$(DependSuffix) -MM "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/imagepane.cpp"
$(IntermediateDirectory)/wxDisplaying_Images_imagepane$(PreprocessSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/imagepane.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/wxDisplaying_Images_imagepane$(PreprocessSuffix) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/imagepane.cpp"
$(IntermediateDirectory)/wxDisplaying_Images_loader$(ObjectSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/loader.cpp $(IntermediateDirectory)/wxDisplaying_Images_loader$(DependSuffix)
$(CompilerName) $(SourceSwitch) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/loader.cpp" $(CmpOptions) $(ObjectSwitch)$(IntermediateDirectory)/wxDisplaying_Images_loader$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/wxDisplaying_Images_loader$(DependSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/loader.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/wxDisplaying_Images_loader$(ObjectSuffix) -MF$(IntermediateDirectory)/wxDisplaying_Images_loader$(DependSuffix) -MM "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/loader.cpp"
$(IntermediateDirectory)/wxDisplaying_Images_loader$(PreprocessSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/loader.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/wxDisplaying_Images_loader$(PreprocessSuffix) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/loader.cpp"
$(IntermediateDirectory)/wxDisplaying_Images_main$(ObjectSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/main.cpp $(IntermediateDirectory)/wxDisplaying_Images_main$(DependSuffix)
$(CompilerName) $(SourceSwitch) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/main.cpp" $(CmpOptions) $(ObjectSwitch)$(IntermediateDirectory)/wxDisplaying_Images_main$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/wxDisplaying_Images_main$(DependSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/main.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/wxDisplaying_Images_main$(ObjectSuffix) -MF$(IntermediateDirectory)/wxDisplaying_Images_main$(DependSuffix) -MM "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/main.cpp"
$(IntermediateDirectory)/wxDisplaying_Images_main$(PreprocessSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/main.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/wxDisplaying_Images_main$(PreprocessSuffix) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/main.cpp"
$(IntermediateDirectory)/wxDisplaying_Images_menu$(ObjectSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/menu.cpp $(IntermediateDirectory)/wxDisplaying_Images_menu$(DependSuffix)
$(CompilerName) $(SourceSwitch) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/menu.cpp" $(CmpOptions) $(ObjectSwitch)$(IntermediateDirectory)/wxDisplaying_Images_menu$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/wxDisplaying_Images_menu$(DependSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/menu.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/wxDisplaying_Images_menu$(ObjectSuffix) -MF$(IntermediateDirectory)/wxDisplaying_Images_menu$(DependSuffix) -MM "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/menu.cpp"
$(IntermediateDirectory)/wxDisplaying_Images_menu$(PreprocessSuffix): ../../Display_Image/Display_Image/wxDisplaying_Images/menu.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/wxDisplaying_Images_menu$(PreprocessSuffix) "C:/Documents and Settings/mmg/Desktop/Display_Image/Display_Image/wxDisplaying_Images/menu.cpp"
-include $(IntermediateDirectory)/*$(DependSuffix)
##
## Clean
##
clean:
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_compareframe$(ObjectSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_compareframe$(DependSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_compareframe$(PreprocessSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_imagepane$(ObjectSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_imagepane$(DependSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_imagepane$(PreprocessSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_loader$(ObjectSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_loader$(DependSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_loader$(PreprocessSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_main$(ObjectSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_main$(DependSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_main$(PreprocessSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_menu$(ObjectSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_menu$(DependSuffix)
$(RM) $(IntermediateDirectory)/wxDisplaying_Images_menu$(PreprocessSuffix)
$(RM) $(OutputFile)
$(RM) $(OutputFile).exe