Greetings I'm trying to build LLVM 2.6 GCC from the source files, but I am having problems during the make step. Here is the information: 1. My machine is: Linux firefly 2.6.9-89.0.9.ELsmp #1 SMP Wed Aug 19 08:06:10 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux my gcc version is 4.2.1 2. I've unpacked llvm-gcc-4.2-2.6.source.tar.gz under the llvm-gcc directory. I've also created two subdirectories called "install" and "obj" under the same llvm-gcc. 3. Then I did the following, based on README.LLVM : %setenv LLVMOBJDIR /home/eliseuf/llvm/llvm-gcc/obj %cd obj %../llvm-gcc4.2-2.6.source/configure --prefix=`pwd`/../install --program-prefix=llvm- --enable-llvm=$LLVMOBJDIR --enable-languages=c --disable-multilib %gmake 4. Result: gmake aborts with the message: configure: error: You must specify valid path to your LLVM tree with --enable-llvm=DIR However, looking at Makefile, I can see: TOPLEVEL_CONFIGURE_ARGUMENTS=../llvm-gcc4.2-2.6.source/configure --prefix=/home/eliseuf/llvm/llvm-gcc/obj/../install --program-prefix=llvm- --enable-llvm=/home/eliseuf/llvm/llvm-gcc/obj --enable-languages=c --disable-multilib apparently --enable-llvm flag was recognized from the command line but the error message says it was not defined (if I am interpreting it correctly...) Thanks in advance for any help Regards Eliseu
Hi Eliseu,> 2. I've unpacked llvm-gcc-4.2-2.6.source.tar.gz under the llvm-gcc > directory. I've also created two subdirectories > called "install" and "obj" under the same llvm-gcc. > > 3. Then I did the following, based on README.LLVM : > > %setenv LLVMOBJDIR /home/eliseuf/llvm/llvm-gcc/objfirst you need to build llvm itself. LLVMOBJDIR points to where you built llvm, not where you are planning to build llvm-gcc. Ciao, Duncan.
I'm running into the same error. Correct me if I'm wrong. To build llvm, you'd need llvm-gcc front-end. You're saying we'd need llvm in order to build llvm-gcc. So how should we kick start the process? Thanks. Duncan Sands wrote:> > Hi Eliseu, > >> 2. I've unpacked llvm-gcc-4.2-2.6.source.tar.gz under the llvm-gcc >> directory. I've also created two subdirectories >> called "install" and "obj" under the same llvm-gcc. >> >> 3. Then I did the following, based on README.LLVM : >> >> %setenv LLVMOBJDIR /home/eliseuf/llvm/llvm-gcc/obj > > first you need to build llvm itself. LLVMOBJDIR points to where you > built llvm, not where you are planning to build llvm-gcc. > > Ciao, > > Duncan. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- View this message in context: http://old.nabble.com/Help-with-building-LLVM-2.6-GCC-tp27928136p28107498.html Sent from the LLVM - Dev mailing list archive at Nabble.com.