[llvm-testresults] problem in running llvm-gcc on Linux/x86-32?
Lu Zhao
luzhao at cs.utah.edu
Mon Mar 24 18:36:35 PDT 2008
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
More information about the llvm-testresults
mailing list