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

Lu Zhao luzhao at cs.utah.edu
Mon Mar 24 21:19:10 PDT 2008


Hi Evan,

Thank you very much for pointing that out! I was thinking about linux
when I saw x86 in the file name.

FYI,

LLVM-2.2 was complied without any problem. However, the svn
checkout, revision 48760, gave the following error in compiling:

llvm[1]: Compiling APFloat.cpp for Release build 
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!"
gmake[1]: *** [/var/soft/llvm-build/lib/Support/Release/APFloat.o]
Error 1 gmake[1]: Leaving directory `/var/soft/llvm-build/lib/Support'
gmake: *** [all] Error 1

The gcc-4.3 frontend, svn revision 48760, has the following building
errors:

c++ -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wmissing-format-attribute
-fno-common -DHAVE_CONFIG_H -Wno-unused
-DTARGET_NAME=\"i686-pc-linux-gnu\" -I. -I. -I../../llvm-gcc-4.2/gcc
-I../../llvm-gcc-4.2/gcc/. -I../../llvm-gcc-4.2/gcc/../include
-I../../llvm-gcc-4.2/gcc/../libcpp/include
-I../../llvm-gcc-4.2/gcc/../libdecnumber -I../libdecnumber
-I/var/soft/llvm-2.2/include -I/var/soft/llvm-2.2-build/Release/include
-DENABLE_LLVM -I/var/soft/llvm-2.2-build/../llvm-2.2/include  -D_DEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -DLLVM_VERSION_INFO='"2.2"'   -I.
-I. -I../../llvm-gcc-4.2/gcc -I../../llvm-gcc-4.2/gcc/.
-I../../llvm-gcc-4.2/gcc/../include
-I../../llvm-gcc-4.2/gcc/../libcpp/include
-I../../llvm-gcc-4.2/gcc/../libdecnumber -I../libdecnumber
-I/var/soft/llvm-2.2/include
-I/var/soft/llvm-2.2-build/Release/include ../../llvm-gcc-4.2/gcc/llvm-backend.cpp
-o llvm-backend.o In file included
from ../../llvm-gcc-4.2/gcc/llvm-internal.h:37,
from ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:23: /var/soft/llvm-2.2/include/llvm/ADT/SmallVector.h:17:29:
error: llvm/ADT/iterator: No such file or directory
...

I think I'm going to try out the pre-built version of gcc frontend and
LLVM-2.2.

Thanks.
Lu


On Mon, 24 Mar 2008 18:42:22 -0700
Evan Cheng <evan.cheng at apple.com> wrote:

> You've downloaded Mac executables. Please down load a Linux package.
> 
> Evan
> 
> On Mar 24, 2008, at 6:36 PM, Lu Zhao wrote:
> 
> > Hi,
> >
> > I'm a first-time user of LLVM and have a problem of running llvm-gcc
> > by following http://llvm.org/docs/GettingStarted.html#tutorial4.
> > This might be too naive to ask, but I can't find any solution in the
> > "Getting Started..."
> >
> > When I ran
> >
> >  llvm-gcc hello.c -o hello
> >
> > I got the following message from bash:
> >
> >  bash: /opt/llvm/llvm-gcc/bin/llvm-gcc: cannot execute binary file
> >
> > and the file command shows:
> >
> >  /opt/llvm/llvm-gcc/bin/llvm-gcc: Mach-O executable i386
> >
> > What I downloaded is
> > http://www.llvm.org/releases/2.2/llvm-gcc4.2-2.2-x86-darwin8.tar.gz
> >
> > Did I miss anything? The file is executable by all users. The
> > program reports the same error when I just run it in the
> > uncompressed directory of the tarball.
> >
> > My system is Linux 2.6.20 running on Pentium M.
> >
> > What is more stranger to me is that I successfully compiled and
> > installed LLVM-2.2.
> >
> > When I tried to build the GCC frontend, the first error was the  
> > missing
> > of file "llvm/ADT/iterator"
> > in llvm-2.2/include/llvm/ADT/SmallVector.h. The former file
> > does not exist at all. The error also exists in the svn checkout.
> >
> > Wish someone can guide me out of the unknown.
> >
> > Thanks in advance.
> > Lu
> > _______________________________________________
> > llvm-testresults mailing list
> > llvm-testresults at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-testresults



More information about the llvm-testresults mailing list