<br><br>
<div><span class="gmail_quote">On 2/12/08, <b class="gmail_sendername">Chris Lattner</b> <<a href="mailto:sabre@nondot.org">sabre@nondot.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Tue, 12 Feb 2008, Sanjiv Gupta wrote:<br>> I am using gcc 3.2.3 on RHEL 3 to build llvm 2.2.<br>> Below are the build errors:<br>
><br>> /home/i00171/Work/llvm-work/src/llvm-2.2/include/llvm/Analysis/DominatorInternals.h:147:<br>> no<br>>   type named `NodeType' in `class llvm::BasicBlock'<br>> /home/i00171/Work/llvm-work/src/llvm-2.2/include/llvm/Analysis/DominatorInternals.h:150:<br>
> `<br>>   VInfo' undeclared (first use this function)<br>> /home/i00171/Work/llvm-work/src/llvm-2.2/include/llvm/Analysis/DominatorInternals.h:152:<br>> no<br>>   matching function for call to `Compress(<br>
>   llvm::DominatorTreeBase<llvm::BasicBlock>&, llvm::BasicBlock*&)'<br><br>That is a very strange error: I think the code is fine, but your GCC is<br>confused.  I notice that GCC 3.2.2 is listed as a "known bad" version of<br>
GCC. It could be that 3.2.3 is also broken as well.  Is there any local<br>source change you can make to that file that gets it working?  If not, I'd<br>suggest upgrading to a newer GCC.  Sorry :(<br><br>-Chris</blockquote>

<div> </div>
<div>I did build GCC 4.2 and used that to build LLVM 2.2. It builds fine now.</div>
<div> </div>
<div>Thanks,</div>
<div>Sanjiv</div>
<div> </div><br> </div>