Problems with building cmake and llvm using Visual studio 2008

Hello folks,
I am trying to build llvm/clang using cmake gui on visual studio 2008 in windows vista 64-bit. I tried these following steps and I cant figure out whats going wrong with the build.

Hello folks,
I am trying to build llvm/clang using cmake gui on visual studio 2008 in
windows vista 64-bit. I tried these following steps and I cant figure

out

hi vincent,
I did try it again and I get these errors.

23>Compiling…
23>X86CompilationCallback_Win64.asm
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(1) : error C2059: syntax error : ‘==’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(3) : error C2146: syntax error : missing ‘;’ before identifier ‘LLVM’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(3) : error C2146: syntax error : missing ‘;’ before identifier ‘Compiler’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(4) : error C2146: syntax error : missing ‘;’ before identifier ‘Infrastructure’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C2146: syntax error : missing ‘;’ before identifier ‘file’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C2146: syntax error : missing ‘;’ before identifier ‘is’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C2146: syntax error : missing ‘;’ before identifier ‘distributed’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C2146: syntax error : missing ‘;’ before identifier ‘under’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C2146: syntax error : missing ‘;’ before identifier ‘the’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C2146: syntax error : missing ‘;’ before identifier ‘University’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C2146: syntax error : missing ‘;’ before identifier ‘of’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C2146: syntax error : missing ‘;’ before identifier ‘Illinois’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C2146: syntax error : missing ‘;’ before identifier ‘Open’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(6) : error C2146: syntax error : missing ‘;’ before identifier ‘Source’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(6) : error C2143: syntax error : missing ‘;’ before ‘.’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(8) : error C2059: syntax error : ‘==’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C2146: syntax error : missing ‘;’ before identifier ‘file’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C2086: ‘int This’ : redefinition
23> …......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : see declaration of ‘This’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C2146: syntax error : missing ‘;’ before identifier ‘implements’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C2086: ‘int file’ : redefinition
23> …......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : see declaration of ‘file’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C2146: syntax error : missing ‘;’ before identifier ‘the’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C2146: syntax error : missing ‘;’ before identifier ‘JIT’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C2086: ‘int the’ : redefinition
23> …......\lib\Target\X86\X86CompilationCallback_Win64.asm(5) : see declaration of ‘the’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C2146: syntax error : missing ‘;’ before identifier ‘interfaces’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C2143: syntax error : missing ‘;’ before ‘for’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(12) : error C2059: syntax error : ‘==’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(16) : error C2143: syntax error : missing ‘;’ before ‘.’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(20) : error C2146: syntax error : missing ‘;’ before identifier ‘RSP’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(20) : error C2143: syntax error : missing ‘;’ before ‘.’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(23) : error C2146: syntax error : missing ‘;’ before identifier ‘all’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(23) : error C2086: ‘int Save’ : redefinition
23> …......\lib\Target\X86\X86CompilationCallback_Win64.asm(20) : see declaration of ‘Save’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(23) : error C2144: syntax error : ‘int’ should be preceded by ‘;’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(24) : error C2146: syntax error : missing ‘;’ before identifier ‘registers’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(24) : error C2470: ‘WARNING’ : looks like a function definition, but there is no parameter list; skipping apparent body
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(24) : error C2061: syntax error : identifier ‘cannot’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(24) : error C2001: newline in constant
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(24) : error C2015: too many characters in constant
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(30) : error C2061: syntax error : identifier ‘stack’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(33) : error C2630: ‘;’ found in what should be a comma-separated list
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(33) : error C2061: syntax error : identifier ‘all’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(40) : error C2630: ‘;’ found in what should be a comma-separated list
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(42) : error C2061: syntax error : identifier ‘callee’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(42) : error C2630: ‘;’ found in what should be a comma-separated list
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(42) : error C2061: syntax error : identifier ‘prev’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(47) : error C2630: ‘;’ found in what should be a comma-separated list
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(47) : error C2061: syntax error : identifier ‘all’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(53) : error C2630: ‘;’ found in what should be a comma-separated list
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(53) : error C2061: syntax error : identifier ‘RSP’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(56) : error C2630: ‘;’ found in what should be a comma-separated list
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(56) : error C2061: syntax error : identifier ‘all’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(63) : error C2630: ‘;’ found in what should be a comma-separated list
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(63) : error C2061: syntax error : identifier ‘RBP’
23>…......\lib\Target\X86\X86CompilationCallback_Win64.asm(69) : fatal error C1004: unexpected end-of-file found

62>Linking…
62>LINK : fatal error LNK1181: cannot open input file ‘…......\lib\Release\LLVMX86CodeGen.lib’

70>Linking…
70>LINK : fatal error LNK1181: cannot open input file ‘…..\lib\Release\LLVMX86CodeGen.lib’

79>Linking…
79>LINK : fatal error LNK1181: cannot open input file ‘…..\lib\Release\LLVMX86CodeGen.lib’

80>Linking…
80>LINK : fatal error LNK1181: cannot open input file ‘…..\lib\Release\LLVMX86CodeGen.lib’

========== Build: 74 succeeded, 6 failed, 1 up-to-date, 0 skipped ==========

Could you please tell me about these errors. may be you have some locations already added to the library paths under the
tools – options section of the visual studio.
could you tell me what all paths do i have to add to the visual studio and what all permissions or things that I have to do
in order to make it work.
Thank you.

hi vincent,
I did try it again and I get these errors.

23>Compiling...
23>X86CompilationCallback_Win64.asm

This is cmake bug: http://www.cmake.org/Bug/view.php?id=9905

Hi guys,

Is there any cl64.exe and ml64.exe. Because I was selecting visual studio 2008 version 9 X64 type of project generation when i used
cmake to generate these projects. So if there is no ml.exe or ml64.exe support for vs2008 for .asm files, then how do we build and work on the llvm/clang build.
How did you guys go around this problem??

Thanks a lot.

Hi guys,

Is there any cl64.exe and ml64.exe. Because I was selecting visual

studio

2008 version 9 X64 type of project generation when i used
cmake to generate these projects. So if there is no ml.exe or ml64.exe
support for vs2008 for .asm files, then how do we build and work on the
llvm/clang build.
How did you guys go around this problem??

Thanks a lot.

> hi vincent,
> I did try it again and I get these errors.
>
> 23>Compiling...
> 23>X86CompilationCallback_Win64.asm
This is cmake bug: http://www.cmake.org/Bug/view.php?id=9905
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

Actually I am not compiling in x64 (at least I dont' think so).
I just call cmake -G "Visual Studio 9 2008" .
and then I launch BUILDALL from IDE.

ok, that is why it worked on your system. Anyways, even i will switch back to “visual 2008 v 9” . I though since i am working on a 64bit system i have to select x64 kind of vs2008.
By the way did you get to run the clang-test project inside the llvm solution file without any problems. I think this is the project file which contains the regression tests of llvm/clang.
Please let me know if you have already done this.

Thank you