build failure with vs2010

Post Reply
VAL
Posts: 5
Joined: Sun Sep 28, 2014 1:05 pm

build failure with vs2010

Post by VAL »

I get the following error while running the win32-generate-vc-proj file.

Determining if the C compiler works failed with the following output:
Change Dir: C:/Users/MALCOLM/Documents/openvibesource/openvibe-0.18.0-src/local-tmp/visual/CMakeFiles/CMakeTmp

Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe cmTryCompileExec.vcxproj /p:Configuration=Debug
Microsoft (R) Build Engine version 4.0.30319.18408

[Microsoft .NET Framework, version 4.0.30319.18444]

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 26/09/2014 18:15:38.

Project "C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTryCompileExec.dir\Debug\".

Creating directory "C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\Debug\".

InitializeBuildStatus:

Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Users/MALCOLM/Documents/openvibesource/openvibe-0.18.0-src/local-tmp/visual/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\testCCompiler.c" /Zm1000

testCCompiler.c

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86

Copyright (C) Microsoft Corporation. All rights reserved.



cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Users/MALCOLM/Documents/openvibesource/openvibe-0.18.0-src/local-tmp/visual/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\testCCompiler.c" /Zm1000



ManifestResourceCompile:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res" cmTryCompileExec.dir\Debug\cmTryCompileExec_manifest.rc

Link:

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/MALCOLM/Documents/openvibesource/openvibe-0.18.0-src/local-tmp/visual/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib" /MACHINE:X86 cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res

cmTryCompileExec.dir\Debug\testCCompiler.obj /machine:X86 /debug

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]

Done Building Project "C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default target) (1) ->

(Link target) ->

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]



0 Warning(s)

1 Error(s)



Time Elapsed 00:00:04.43



Determining if the C compiler works failed with the following output:
Change Dir: C:/Users/MALCOLM/Documents/openvibesource/openvibe-0.18.0-src/local-tmp/visual/CMakeFiles/CMakeTmp

Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe cmTryCompileExec.vcxproj /p:Configuration=Debug
Microsoft (R) Build Engine version 4.0.30319.18408

[Microsoft .NET Framework, version 4.0.30319.18444]

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 26/09/2014 18:25:56.

Project "C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" on node 1 (default targets).

InitializeBuildStatus:

Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Users/MALCOLM/Documents/openvibesource/openvibe-0.18.0-src/local-tmp/visual/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\testCCompiler.c" /Zm1000 /GZ

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86

Copyright (C) Microsoft Corporation. All rights reserved.



cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Users/MALCOLM/Documents/openvibesource/openvibe-0.18.0-src/local-tmp/visual/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\testCCompiler.c" /Zm1000 /GZ

cl : Command line warning D9035: option 'GZ' has been deprecated and will be removed in a future release [C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]

testCCompiler.c

cl : Command line warning D9036: use 'RTC1' instead of 'GZ' [C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]



ManifestResourceCompile:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res" cmTryCompileExec.dir\Debug\cmTryCompileExec_manifest.rc

Link:

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/MALCOLM/Documents/openvibesource/openvibe-0.18.0-src/local-tmp/visual/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib" /MACHINE:X86 cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res

cmTryCompileExec.dir\Debug\testCCompiler.obj /machine:X86 /debug

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]

Done Building Project "C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default target) (1) ->

(ClCompile target) ->

cl : Command line warning D9035: option 'GZ' has been deprecated and will be removed in a future release [C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]

cl : Command line warning D9036: use 'RTC1' instead of 'GZ' [C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]





"C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default target) (1) ->

(Link target) ->

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\Users\MALCOLM\Documents\openvibesource\openvibe-0.18.0-src\local-tmp\visual\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]



2 Warning(s)

1 Error(s)



Time Elapsed 00:00:00.43

jtlindgren
Posts: 775
Joined: Tue Dec 04, 2012 3:53 pm
Location: INRIA Rennes, FRANCE

Re: build failure with vs2010

Post by jtlindgren »

Hello VAL,

This might be something unrelated to OpenViBE. Does the following suggestion help?

http://stackoverflow.com/questions/2261 ... valid-or-c

I'd also be careful with putting openvibe tree so deep in the folder structure as it can cause problems on Windows.
Its usually safer to have it closer to C:\, e.g. "C:\val\openvibe\".


Cheers,
Jussi

VAL
Posts: 5
Joined: Sun Sep 28, 2014 1:05 pm

Re: build failure with vs2010

Post by VAL »

Thanks for that, it was the directory nesting. I shortened the tree as suggested and the build was successful

Thanks

Post Reply