DynamoRIO / DynamoRIO/drmemory

post build operation mksymguid.pl is called even after it's been built. This causes an error

Open
#1,668 1 comment 0 reactions 1 assignee Claimed by @zqiu View on GitHub
Component-Build Component-DrStrace OpSys-Windows
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

using
windows 7
cmake 2.8.1
Visual Studio 12
build type release with debugon

configured with
CC=cl CXX=cl ASM=ml "C:\Program Files (x86)\CMake 2.8\bin\cmake" -DCMAKE_BUILD_TYPE=Release -DBUILDING_PACKAGE=TRUE -no-dev -G"Visual Studio 12" ../

built with
cmake --build . --config RelWithDebInfo

On first try:
Project "c:\Users\qiu\Desktop\drmemory\drmemory\build\ALL_BUILD.vcxproj" (1) is building "C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj" (122) on node 1 (default targets).
PrepareForBuild:
Creating directory "symfetch.dir\RelWithDebInfo\".
Creating directory "symfetch.dir\RelWithDebInfo\symfetch.tlog\".
InitializeBuildStatus:
Creating "symfetch.dir\RelWithDebInfo\symfetch.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
Building Custom Rule C:/Users/qiu/Desktop/drmemory/drmemory/drstrace/CMakeLists.txt
CMake does not need to re-run because C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\CMakeFiles\generate.stamp is up-to-date.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /IC:\Users\qiu\Desktop\drmemory\drmemory\wininc\psdk /IC:\Users\qiu\Desktop\drmemory\drmemory\wininc\dxsdk /IC:\Users\qiu\Desktop\drmemory\drmemory\build\dynamorio\cmake /IC:\Users\qiu\Desktop\drmemory\drmemory\build\dynamorio\cmake..\include /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drcontainers /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drmgr /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drx /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drutil /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drwrap /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drsyms /IC:\Users\qiu\Desktop\drmemory\drmemory\common /IC:\Users\qiu\Desktop\drmemory\drmemory\drmemory /IC:\Users\qiu\Desktop\drmemory\drmemory\third_party\valgrind /IC:\Users\qiu\Desktop\drmemory\drmemory\build\drmf\include /IC:\Users\qiu\Desktop\drmemory\drmemory\drsyscall /IC:\Users\qiu\Desktop\drmemory\drmemory\drsymcache /IC:\Users\qiu\Desktop\drmemory\drmemory\umbra /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drsyscall /nologo /W1 /WX- /O2 /Oy- /D TOOL_DR_MEMORY /D BUILD_NUMBER=1 /D VERSION_NUMBER=1.8.16440 /D "VERSION_STRING=\"1.8.16440\"" /D "VERSION_COMMAS=1,8,16440" /D USE_DRSYMS /D ASSEMBLE_WITH_MASM /D RC_IS_DRSTRACE /D RC_IS_DRSTRACE_SYMFETCH_LIB /D "CMAKE_INTDIR=\"RelWithDebInfo\"" /D symfetch_EXPORTS /D _WINDLL /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"symfetch.dir\RelWithDebInfo\" /Fd"symfetch.dir\RelWithDebInfo\vc120.pdb" /Gd /TC /analyze- /errorReport:queue ....\drstrace\symfetch.c
symfetch.c
ResourceCompile:
C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe /D TOOL_DR_MEMORY /D BUILD_NUMBER=1 /D VERSION_NUMBER=1.8.16440 /D "VERSION_STRING=\\"1.8.16440\\"" /D "VERSION_COMMAS=1,8,16440" /D USE_DRSYMS /D ASSEMBLE_WITH_MASM /D RC_IS_DRSTRACE /D RC_IS_DRSTRACE_SYMFETCH_LIB /D "CMAKE_INTDIR=\\"RelWithDebInfo\\"" /D symfetch_EXPORTS /l"0x0409" /IC:\Users\qiu\Desktop\drmemory\drmemory\wininc\psdk /IC:\Users\qiu\Desktop\drmemory\drmemory\wininc\dxsdk /IC:\Users\qiu\Desktop\drmemory\drmemory\build\dynamorio\cmake /IC:\Users\qiu\Desktop\drmemory\drmemory\build\dynamorio\cmake..\include /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drcontainers /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drmgr /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drx /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drutil /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drwrap /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drsyms /IC:\Users\qiu\Desktop\drmemory\drmemory\common /IC:\Users\qiu\Desktop\drmemory\drmemory\drmemory /IC:\Users\qiu\Desktop\drmemory\drmemory\third_party\valgrind /IC:\Users\qiu\Desktop\drmemory\drmemory\build\drmf\include /IC:\Users\qiu\Desktop\drmemory\drmemory\drsyscall /IC:\Users\qiu\Desktop\drmemory\drmemory\drsymcache /IC:\Users\qiu\Desktop\drmemory\drmemory\umbra /IC:\Users\qiu\Desktop\drmemory\drmemory\dynamorio\ext\drsyscall /nologo /fo"symfetch.dir\RelWithDebInfo\resources.res" ....\make\resources.rc
Link:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\qiu\Desktop\drmemory\drmemory\build\bin\symfetch.dll" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/Users/qiu/Desktop/drmemory/drmemory/build/bin/symfetch.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /BASE:"0x10000000" /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/qiu/Desktop/drmemory/drmemory/build/bin/release/symfetch.lib" /MACHINE:X86 /SAFESEH /machine:X86 /subsystem:console,5.01 /debug /PDBALTPATH:symfetch.pdb /DLL symfetch.dir\RelWithDebInfo\resources.res
symfetch.dir\RelWithDebInfo\symfetch.obj
symfetch.vcxproj -> C:\Users\qiu\Desktop\drmemory\drmemory\build\bin\symfetch.dll
PostBuildEvent:
setlocal
"C:\Program Files (x86)\Git\bin\perl.exe" C:/Users/qiu/Desktop/drmemory/drmemory/drstrace/mksymguid.pl C:/Users/qiu/Desktop/drmemory/drmemory/build/bin/symfetch.dll
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd
all_done
FinalizeBuildStatus:
Deleting file "symfetch.dir\RelWithDebInfo\symfetch.tlog\unsuccessfulbuild".
Touching "symfetch.dir\RelWithDebInfo\symfetch.tlog\symfetch.lastbuildstate".
Done Building Project "C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj" (default targets).

On second try:
Project "c:\Users\qiu\Desktop\drmemory\drmemory\build\ALL_BUILD.vcxproj" (1) is building "C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj" (122) on node 1 (default targets).
InitializeBuildStatus:
Creating "symfetch.dir\RelWithDebInfo\symfetch.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
All outputs are up-to-date.
ClCompile:
All outputs are up-to-date.
ResourceCompile:
All outputs are up-to-date.
Link:
All outputs are up-to-date.
symfetch.vcxproj -> C:\Users\qiu\Desktop\drmemory\drmemory\build\bin\symfetch.dll
PostBuildEvent:
setlocal
"C:\Program Files (x86)\Git\bin\perl.exe" C:/Users/qiu/Desktop/drmemory/drmemory/drstrace/mksymguid.pl C:/Users/qiu/Desktop/drmemory/drmemory/build/bin/symfetch.dll
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd
Can't match regular expression\n at C:/Users/qiu/Desktop/drmemory/drmemory/drstrace/mksymguid.pl line 57.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "setlocal [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: "C:\Program Files (x86)\Git\bin\perl.exe" C:/Users/qiu/Desktop/drmemory/drmemory/drstrace/mksymguid.pl C:/Users/qiu/Desktop/drmemory/drmemory/build/bin/symfetch.dll [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1 [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd" exited with code 255. [C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj]
Done Building Project "C:\Users\qiu\Desktop\drmemory\drmemory\build\drstrace\symfetch.vcxproj" (default targets) -- FAILED.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.