[LLVMdev] LLVM-gcc for Ada
Duncan Sands
baldrick at free.fr
Mon May 25 13:20:54 PDT 2009
Hi Andre,
> In file included from ../../gcc/llvm-backend.cpp:23:
> ../../gcc/llvm-internal.h:31: fatal error: vector: No such file or directory
> compilation terminated.
line 31 of llvm-internal.h is:
#include <vector>
so if that's failing then your C++ compiler is somehow borked.
How did you arrange to use the right gcc for the build? Maybe
that's getting in the way of g++ somehow.
> Do you have an idea of what it is?
I suggest you do like this: make sure the system C++ compiler is working
and in your path. To use the Ada enabled gcc for building do:
export PATH=/home/andrelct/apps/gnat-2007/bin:$PATH
before configuring, building etc. (Assuming this is where the GNAT
GPL 2007 gcc is).
> My new config is
> ../configure --enable-languages=c,c++,fortran,ada --disable-bootstrap
> --disable-nls --disable-multilib --enable-checking
> --program-prefix=llvm- --prefix=/home/andrelct/apps/llvm-gcc/build/
> --bindir=/home/andrelct/apps/gnat-2007/build/bin
Not sure why you are using --bindir here?
> --enable-llvm=/home/andrelct/apps/llvm
Ciao,
Duncan.
More information about the llvm-dev
mailing list