[llvm-testresults] problem in running llvm-gcc on Linux/x86-32?

Duncan Sands baldrick at free.fr
Tue Mar 25 09:40:47 PDT 2008


On Tuesday 25 March 2008 17:27:08 Lu Zhao wrote:
> On Tue, 25 Mar 2008 11:25:25 +0100
> Duncan Sands <baldrick at free.fr> wrote:
> 
> > Hi Lu,
> > 
> > > In file included
> > > from /var/soft/llvm/include/llvm/ADT/SmallVector.h:17,
> > > from /var/soft/llvm/include/llvm/ADT/FoldingSet.h:20,
> > > from /var/soft/llvm/lib/Support/APFloat.cpp:16: /var/soft/llvm/include/llvm/ADT/iterator.in:54:4:
> > > error: #error "Need to have standard iterator to define
> > > bidirectional
> > > iterator!" /var/soft/llvm/include/llvm/ADT/iterator.in:70:4: error:
> > > #error "Need to have standard iterator to define forward iterator!"
> > 
> > what version of gcc are you using to compile LLVM?
> > 
> 
> 4.1.2
> 

You are not the first one to have trouble with that compiler.  Take a look at
http://llvm.org/docs/GettingStarted.html#brokengcc

Note the bit about
"GCC 4.1.1: GCC fails to build LLVM with template concept check errors compiling some files.
At the time of this writing, GCC mainline (4.2) did not share the problem."

I suggest you use gcc-4.2 instead.

Ciao,

Duncan.



More information about the llvm-testresults mailing list