raja
2008-Jan-23 12:56 UTC
[LLVMdev] help - needed - compiling llvm-gcc4.2 frontend on cygwin
Hi, I am new to LLVM & to this mailing list. I need help compiling llvm-gcc-frontend-4.2 on windows using cygwin I have gcc 4.2.2 (compiled from source) here is my configure - command line (hope this is correct) **** bash-3.2$ ../llvm-gcc/configure --prefix=/usr/local/llvm-gcc --program-prefix=llvm- --enable-llvm=/cygdrive/d/llvm-svn/llvm-objdir/ --enable-languages=c,c++ --disable-shared --disable-threads --disable-nls --disable-c-mbchar **** I am getting the following error when i am doing 'make all' **** libbackend.a(llvm-convert.o): In function `_ZN18TreeConstantToLLVM15ConvertREAL_CSTEP9tree_node': /cygdrive/d/llvm-svn/llvm-gcc-objdir/gcc/../../llvm-gcc/gcc/llvm-convert.cpp:5939: undefined referece to `llvm::APInt::APInt(unsigned int, unsigned int, unsigned long long const*)' /cygdrive/d/llvm-svn/llvm-gcc-objdir/gcc/../../llvm-gcc/gcc/llvm-convert.cpp:5949: undefined referece to `llvm::APInt::APInt(unsigned int, unsigned int, unsigned long long const*)' libbackend.a(llvm-convert.o): In function `_ZN10TreeToLLVM4EmitEP9tree_nodePK6MemRef': /cygdrive/d/llvm-svn/llvm-objdir/../llvm/include/llvm/ADT/APInt.h:409: undefined reference to `llvm:APInt::APInt(unsigned int, unsigned long long, bool)' /cygdrive/d/llvm-svn/llvm-objdir/../llvm/include/llvm/ADT/APInt.h:404: undefined reference to `llvm:APInt::APInt(unsigned int, unsigned long long, bool)' /cygdrive/d/llvm-svn/llvm-objdir/../llvm/include/llvm/ADT/APInt.h:410: undefined reference to `llvm:APInt::APInt(unsigned int, unsigned long long, bool)' /cygdrive/d/llvm-svn/llvm-objdir/../llvm/include/llvm/ADT/APInt.h:410: undefined reference to `llvm:APInt::lshr(unsigned int) const' /cygdrive/d/llvm-svn/llvm-objdir/../llvm/include/llvm/ADT/APInt.h:406: undefined reference to `llvm:APInt::APInt(unsigned int, unsigned long long, bool)' libbackend.a(llvm-convert.o): In function `_ZN10TreeToLLVM15EmitSWITCH_EXPREP9tree_node': /cygdrive/d/llvm-svn/llvm-gcc-objdir/gcc/../../llvm-gcc/gcc/llvm-convert.cpp:2000: undefined referece to `llvm::APInt::APInt(unsigned int, unsigned long long, bool)' collect2: ld returned 1 exit status make[1]: *** [cc1-dummy.exe] Error 1 make[1]: Leaving directory `/cygdrive/d/llvm-svn/llvm-gcc-objdir/gcc' make: *** [all-gcc] Error 2 **** help me please, regards, raja koduru