[LLVMdev] Compiler error when building LLVM-GCC
Maurus Cuelenaere
mcuelenaere at gmail.com
Fri Jun 19 03:58:42 PDT 2009
Hi all,
I'm not sure whether this is the right mailing list to post to (I didn't
find any other related ones), but I'm having trouble compiling the GCC
frontend for LLVM.
I can successfully compile LLVM using CMake, but am having compiler
errors when doing LLVM-GCC:
/usr/bin/llvm-g++ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -pedantic
-Wno-long-long -Wno-variadic-macros -Wmissing-format-attribute
-fno-common -DHAVE_CONFIG_H -Wno-unused
-DTARGET_NAME=\"i686-pc-linux-gnu\" -I. -I. -I../../../llvm-gcc/gcc
-I../../../llvm-gcc/gcc/. -I../../../llvm-gcc/gcc/../include
-I../../../llvm-gcc/gcc/../libcpp/include
-I../../../llvm-gcc/gcc/../libdecnumber -I../libdecnumber
-I/home/mcuelenaere/llvm_build/build_llvm-gcc/obj/../../build_llvm//include
-I//include -DENABLE_LLVM
-I/home/mcuelenaere/llvm_build/build_llvm/include -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I. -I.
-I../../../llvm-gcc/gcc -I../../../llvm-gcc/gcc/.
-I../../../llvm-gcc/gcc/../include
-I../../../llvm-gcc/gcc/../libcpp/include
-I../../../llvm-gcc/gcc/../libdecnumber -I../libdecnumber
-I/home/mcuelenaere/llvm_build/build_llvm-gcc/obj/../../build_llvm//include
-I//include ../../../llvm-gcc/gcc/llvm-main.cpp -o llvm-main.o
../../../llvm-gcc/gcc/llvm-main.cpp:22:43: error:
llvm/Support/PrettyStackTrace.h: No such file or directory
../../../llvm-gcc/gcc/llvm-main.cpp: In function 'int main(int, char**)':
../../../llvm-gcc/gcc/llvm-main.cpp:37: error: 'llvm' has not been declared
../../../llvm-gcc/gcc/llvm-main.cpp:37: error: expected `;' before 'X'
I configured with:
CC=/usr/bin/llvm-gcc CXX=/usr/bin/llvm-g++ ../../llvm-gcc/configure
--prefix=`pwd`/../install --program-prefix=llvm-
--enable-llvm=`pwd`/../../build_llvm/ --enable-languages=c,c++
This obviously sounds like something with the inclusion path not setup
correctly, but --enable-lvm= contains the correct path so I'm not sure
what causes this.
LLVM-GCC: SVN r73764
LLVM: SVN r73764
Regards,
Maurus Cuelenaere
More information about the llvm-dev
mailing list