[cfe-dev] Win7 VS2008/2010 builds are broken

Francois Pichet pichet2000 at gmail.com
Mon Jul 25 18:10:16 PDT 2011


On Mon, Jul 25, 2011 at 7:56 PM, John Wiegley <johnw at boostpro.com> wrote:
> Hello,
>
> I'm building the current Git version using Windows 7 x64, and both Visual
> Studio 2008 and 2010.  The commits I'm building are:
>
>  LLVM  3ef750d
>  Clang 822f54a
>
> With Visual Studio 2008, Clang builds, but it fails 100 tests, all in the
> "test/Index" directory.
>
> With Visual Studio 2010, Clang fails to build with this error:
>
> Build FAILED.
>
> "C:\build\llvm\tools\clang\test\clang-test.vcxproj" (default target) (1) ->
> "C:\build\llvm\tools\clang\test\clang-test.deps.vcxproj" (default target) (3) -
>>
> "C:\build\llvm\tools\clang\tools\c-arcmt-test\c-arcmt-test.vcxproj" (default ta
> rget) (44) ->
> "C:\build\llvm\tools\clang\tools\libclang\libclang.vcxproj" (default target) (4
> 5) ->
> (ClCompile target) ->
>  ..\..\..\..\..\..\src\llvm\tools\clang\tools\libclang\CIndex.cpp(4261): error
>  C2526: 'buildPieces' : C linkage function cannot return C++ class 'llvm::Small
> Vector<T,N>' [C:\build\llvm\tools\clang\tools\libclang\libclang.vcxproj]
>  ..\..\..\..\..\..\src\llvm\tools\clang\tools\libclang\CIndex.cpp(4293): error
>  C2562: '`anonymous-namespace'::buildPieces' : 'void' function returning a valu
> e [C:\build\llvm\tools\clang\tools\libclang\libclang.vcxproj]
>  ..\..\..\..\..\..\src\llvm\tools\clang\tools\libclang\CIndex.cpp(4305): error
>  C2679: binary '=' : no operator found which takes a right-hand operand of type
>  'void' (or there is no acceptable conversion) [C:\build\llvm\tools\clang\tools
> \libclang\libclang.vcxproj]
>  ..\..\..\..\..\..\src\llvm\tools\clang\tools\libclang\CIndex.cpp(4312): error
>  C2679: binary '=' : no operator found which takes a right-hand operand of type
>  'void' (or there is no acceptable conversion) [C:\build\llvm\tools\clang\tools
> \libclang\libclang.vcxproj]
>  ..\..\..\..\..\..\src\llvm\tools\clang\tools\libclang\CIndex.cpp(4324): error
>  C2679: binary '=' : no operator found which takes a right-hand operand of type
>  'void' (or there is no acceptable conversion) [C:\build\llvm\tools\clang\tools
> \libclang\libclang.vcxproj]
>
>    0 Warning(s)
>    5 Error(s)
>
> I'm posting this to see if others are aware of this problem, as it happened
> sometime between today and July 22nd.

For VS 2010 compile error, try to update svn.
For VS 2008 I don't know what is wrong.




More information about the cfe-dev mailing list