[cfe-dev] Problems with building cmake and llvm using Visual studio 2008

kalyan ponnala ponnala.kalyan at gmail.com
Sun Feb 7 14:53:18 PST 2010


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.

On Sun, Feb 7, 2010 at 7:28 AM, Vincent Richomme <forumer at smartmobili.com>wrote:

> On Sat, 6 Feb 2010 23:00:10 -0500, kalyan ponnala
> <ponnala.kalyan at gmail.com> wrote:
> > 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.
> >
>
> -------------------------------------------------------------------------------------------------------------------------
> > Steps:
> > 1:Checkout llvm and clang using visual svn command prompt.
> >
> > 2: open cmake-gui
> >    select llvm source
> >    select llvm build directory. make it seperate \build
> >    hit configure.
> >    select visual studio 2008 x64 and hit configure again and say
> generate.
> >     For cmake it could not find the asm masm assemble and it could not
> find
> > some ".h" extension files. But the
> >     solution was generated anyhow.
> > 2. open start - programs - visual studio 2008 - command prompt of visual
> > studio - right click on command prompt in  the start programs itself and
> > click "run as administrator"- enter
> >    type devenv /ResetSkipPkgs - enter
> >    This should open vs package and you can open your project as
> > administrator.
> > 3. Set the environment path to point to the Debug directory in llvm.
> this
> > is
> > done by:
> >    right-clicking my computer and selecting properties and clicking
> > "Advanced system setting" and
> >    going to "environmental variables" and selecting "path" from the
> system
> > variables and clicking on edit
> >    and adding C:\Users\Kalyan\llvm\build\bin\debug to the path variable.
> > 4. Go to the llvm solution file and right click on ALLBUILD and click
> > build.
> >
>
> ------------------------------------------------------------------------------------------------------------------
> > The errors are in this way:
> >
> > Linking...
> > 71>LINK : fatal error LNK1104: cannot open file
> > '..\..\lib\Debug\LLVMX86CodeGen.lib'
> > Linking...
> > 80>LINK : fatal error LNK1104: cannot open file
> > '..\..\lib\Debug\LLVMX86CodeGen.lib'
> >
> > this shows up several times. And the build fails.
> > Could you please tell me how to fix this error.
> >
> > Thanks beforehand.
>
>
> Hi,
>
> I have tested 30 min ago and everything compiles fine here in Release mode
> on a Windows 7 64 bits VS2008
> ========== Build: 1 succeeded, 0 failed, 91 up-to-date, 26 skipped
> ==========
>
>
>
>


-- 
Kalyan Ponnala
phone: 8163772059
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100207/5e4e879a/attachment.html>


More information about the cfe-dev mailing list