Has anyone sucessfully compile the llvm code using visual

Thank you very much for your reply.
However, my question is not completely solved.
I svned the latest version of the llvm. After I open in the visual studio 2005, the building errors are still there and there was not any .exe executable file output.
I set the Fibonacci project under the solution as my startup project and issue the debug-run command. However, the vs 2005 just prompted me that the .exe missing.

Some of the errors are transcripted here:
1>------ Build started: Project: VMCore, Configuration: Debug Win32 ------
1>Performing TableGen Step
1>Building Intrinsics.td code emitter with tblgen

1>Project : error PRJ0019: A tool returned an error code from “Performing TableGen Step”
1>Creating browse information file…
1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : cannot open file ‘.\win32\debug\AutoUpgrade.sbr’: No such file or directory
1>Build log was saved at “file://c:\Documents and Settings\Administrator\llvm\win32\VMCore\Win32\Debug\BuildLog.htm”
1>VMCore - 2 error(s), 0 warning(s)
2>------ Build started: Project: CodeGen, Configuration: Debug Win32 ------
3>------ Build started: Project: Transforms, Configuration: Debug Win32 ------
2>Compiling…
3>Compiling…
2>GCStrategy.cpp
3>RSProfiling.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>DeadArgumentElimination.cpp
2>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
2>IntrinsicLowering.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>GlobalOpt.cpp
2>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
2>MachineModuleInfo.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>InlineAlways.cpp
2>c:\Documents and Settings\Administrator\llvm\include\llvm/Support/AlignOf.h(26) : warning C4624: ‘llvm::AlignmentCalcImpl’ : destructor could not be generated because a base class destructor is inaccessible
2> with
2> [
2> T=llvm::MachineInstr
2> ]
2> c:\Documents and Settings\Administrator\llvm\include\llvm/Support/AlignOf.h(38) : see reference to class template instantiation ‘llvm::AlignmentCalcImpl’ being compiled
2> with
2> [
2> T=llvm::MachineInstr
2> ]
2> c:\Documents and Settings\Administrator\llvm\include\llvm/CodeGen/MachineFunction.h(88) : see reference to class template instantiation ‘llvm::AlignOf’ being compiled
2> with
2> [
2> T=llvm::MachineInstr
2> ]
2>c:\Documents and Settings\Administrator\llvm\include\llvm/Support/AlignOf.h(26) : warning C4624: ‘llvm::AlignmentCalcImpl’ : destructor could not be generated because a base class destructor is inaccessible
2> with
2> [
2> T=llvm::MachineBasicBlock
2> ]
2> c:\Documents and Settings\Administrator\llvm\include\llvm/Support/AlignOf.h(38) : see reference to class template instantiation ‘llvm::AlignmentCalcImpl’ being compiled
2> with
2> [
2> T=llvm::MachineBasicBlock
2> ]
2> c:\Documents and Settings\Administrator\llvm\include\llvm/CodeGen/MachineFunction.h(91) : see reference to class template instantiation ‘llvm::AlignOf’ being compiled
2> with
2> [
2> T=llvm::MachineBasicBlock
2> ]
2>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
2>ShadowStackGC.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>InlineSimple.cpp
2>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
2>SelectionDAG.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>LowerSetJmp.cpp
2>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
2>SelectionDAGBuild.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>DeadStoreElimination.cpp
2>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
2>SelectionDAGISel.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>InstructionCombining.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>JumpThreading.cpp
2>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
2>Generating Code…
2>Creating browse information file…
2>Microsoft Browse Information Maintenance Utility Version 8.00.50727
2>Copyright (C) Microsoft Corporation. All rights reserved.
2>BSCMAKE: error BK1506 : cannot open file ‘.\win32\debug\GCStrategy.sbr’: No such file or directory
2>Build log was saved at “file://c:\Documents and Settings\Administrator\llvm\win32\CodeGen\Win32\Debug\BuildLog.htm”
2>CodeGen - 8 error(s), 2 warning(s)
4>------ Build started: Project: Analysis, Configuration: Debug Win32 ------
4>Compiling…
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>LoopStrengthReduce.cpp
4>BasicAliasAnalysis.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>LoopUnroll.cpp
4>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
4>ConstantFolding.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>MemCpyOptimizer.cpp
4>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
4>ValueTracking.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>ScalarReplAggregates.cpp
4>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
4>Generating Code…
4>Creating browse information file…
4>Microsoft Browse Information Maintenance Utility Version 8.00.50727
4>Copyright (C) Microsoft Corporation. All rights reserved.
4>BSCMAKE: error BK1506 : cannot open file ‘.\win32\debug\BasicAliasAnalysis.sbr’: No such file or directory
4>Build log was saved at “file://c:\Documents and Settings\Administrator\llvm\win32\Analysis\Win32\Debug\BuildLog.htm”
4>Analysis - 4 error(s), 0 warning(s)
5>------ Build started: Project: ExecutionEngine, Configuration: Debug Win32 ------
5>ExecutionEngine : warning PRJ0009 : Build log could not be opened for writing.
5>Make sure that the file is not open by another process and is not write-protected.
5>Compiling…
5>Execution.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>TailDuplication.cpp
5>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
5>Interpreter.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>CodeExtractor.cpp
5>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
5>Generating Code…
5>Creating browse information file…
5>Microsoft Browse Information Maintenance Utility Version 8.00.50727
5>Copyright (C) Microsoft Corporation. All rights reserved.
5>BSCMAKE: error BK1506 : cannot open file ‘.\win32\debug\Execution.sbr’: No such file or directory
5>Build log was saved at “file://c:\Documents and Settings\Administrator\llvm\win32\ExecutionEngine\Win32\Debug\BuildLog.htm”
5>ExecutionEngine - 3 error(s), 1 warning(s)
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>InlineCost.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>InlineFunction.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>Local.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>LowerInvoke.cpp
3>c:\Documents and Settings\Administrator\llvm\include\llvm/Intrinsics.h(39) : fatal error C1083: Cannot open include file: ‘llvm/Intrinsics.gen’: No such file or directory
3>Generating Code…
3>Creating browse information file…
3>Microsoft Browse Information Maintenance Utility Version 8.00.50727
3>Copyright (C) Microsoft Corporation. All rights reserved.
3>BSCMAKE: error BK1506 : cannot open file ‘.\win32\debug\RSProfiling.sbr’: No such file or directory
3>Build log was saved at “file://c:\Documents and Settings\Administrator\llvm\win32\Transforms\Win32\Debug\BuildLog.htm”
3>Transforms - 20 error(s), 0 warning(s)
6>------ Build started: Project: x86, Configuration: Debug Win32 ------
6>Performing TableGen Step
6>Building X86.td register names with tblgen

6>Building X86.td register information header with tblgen

6>Building X86.td register information implementation with tblgen

6>Building X86.td instruction names with tblgen

6>Building X86.td instruction information with tblgen

6>Building X86.td assembly writer with tblgen

6>Building X86.td assembly writer #1 with tblgen

6>Building X86.td instruction selector implementation with tblgen

6>Project : error PRJ0019: A tool returned an error code from “Performing TableGen Step”
6>Creating browse information file…
6>Microsoft Browse Information Maintenance Utility Version 8.00.50727
6>Copyright (C) Microsoft Corporation. All rights reserved.
6>BSCMAKE: error BK1506 : cannot open file ‘.\win32\debug\X86ELFWriterInfo.sbr’: No such file or directory
6>Build log was saved at “file://c:\Documents and Settings\Administrator\llvm\win32\x86\Win32\Debug\BuildLog.htm”
6>x86 - 2 error(s), 0 warning(s)
7>------ Build started: Project: Fibonacci, Configuration: Debug Win32 ------
7>Linking…
7>LINK : fatal error LNK1104: cannot open file ‘c:\Documents.obj’
7>Build log was saved at “file://c:\Documents and Settings\Administrator\llvm\win32\Fibonacci\Win32\Debug\BuildLog.htm”
7>Fibonacci - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 7 failed, 6 up-to-date, 0 skipped ==========

I will try harder to dig into the environment setting to see if there is anything blowing the project.
Thank you all the same.

"Cloud Strife" <geforce8800@gmail.com> writes:

Thank you very much for your reply.
However, my question is not completely solved.
I svned the latest version of the llvm. After I open in the visual studio
2005, the building errors are still there and there was not any .exe
executable file output.
I set the Fibonacci project under the solution as my startup project and
issue the debug-run command. However, the vs 2005 just prompted me that the
.exe missing.

The error messages you posted indicate that tblgen.exe was not
built. Either the build failed or it is not on the list of (direct or
indirect) dependencies for Fibonacci. Instead of building a specific
project, try a Build All.

[snip]

Óscar Fuentes a écrit :

"Cloud Strife" <geforce8800@gmail.com> writes:

Thank you very much for your reply.
However, my question is not completely solved.
I svned the latest version of the llvm. After I open in the visual studio
2005, the building errors are still there and there was not any .exe
executable file output.
I set the Fibonacci project under the solution as my startup project and
issue the debug-run command. However, the vs 2005 just prompted me that the
.exe missing.

The error messages you posted indicate that tblgen.exe was not
built. Either the build failed or it is not on the list of (direct or
indirect) dependencies for Fibonacci. Instead of building a specific
project, try a Build All.

[snip]

I wonder if the fact that your path contain space could make the build
fail. Some path may not be correctly escaped...
You may also want to try build all a few times.
The project files are a little complex, because some file are generated
with tablegen and I think the only way to acces these info is to
manually edit the project file.

[please keep discussion on-list. thanks]

"Cloud Strife" <geforce8800@gmail.com> writes:

Thank you very much for your help. Now this problem has been solved and I
have got a workable project.

I am trying the example in the llvm\docs\tutorial\LangImpl4.html
. However, after I put the whole source code into my customized project,
there is an error output from visual studio saying:"error C2955:
'llvm::IRBuilder' : use of class template requires template argument list".
---------->static IRBuilder Builder;

try

static IRBuilder<> Builder;