Warren Armstrong
2006-Sep-13 03:26 UTC
[LLVMdev] Installing binary gcc-4.0 frontend on x86-linux: where is llvm-gcc?
Hi all, I recently downloaded the gcc 4 frontend from: http://llvm.org/releases/1.8/llvm-gcc4-1.8-x86-linux.tar.gz I checked out the source from CVS using: cvs -d :pserver:anon at llvm.org:/var/cvs/llvm login cvs -z3 -d :pserver:anon at llvm.org:/var/cvs/llvm co llvm Running the configure script fails to find llvm-gcc. Inspecting the untarred frontend, it doesn't contain any such binary, although it does have gcc and g++ (sans llvm- prefix). Is this a problem with the configure script, the download, or the procedure I followed? If it matters, I ran the configure script like this: cd /usr/local/llvm/debug/ ../src/configure --prefix=/usr/local/llvm/debug/ --with-llvmgccdir=/usr/local/bin/llvm/4.0 --enable-debug-runtime --enable-jit --enable-targets=x86 I'm running Gentoo Linux on an x86 system. Cheers, Warren PS: I changed the configure script to look for plain 'gcc' and 'g++' in the directory specified, which it finds ok. I haven't included a patch because I don't know exactly where the problem is.
Bill Wendling
2006-Sep-13 09:19 UTC
[LLVMdev] Installing binary gcc-4.0 frontend on x86-linux: where is llvm-gcc?
On Sep 12, 2006, at 8:26 PM, Warren Armstrong wrote:> Running the configure script fails to find llvm-gcc. Inspecting > the untarred frontend, it doesn't contain any such binary, although > it does have gcc and g++ (sans llvm- prefix). Is this a problem with > the configure script, the download, or the procedure I followed? >I hypothesize that this is intentional because llvm-gcc3 is still in use. My suggestion is to do sym-links like so: $ cd /usr/local/bin/llvm/4.0/bin $ for i in `ls -1`; do ln -s $i llvm-$i; done or something similar. Then you'll have your llvm-* things. Share and enjoy! -bw
Scott Michel
2006-Sep-13 15:31 UTC
[LLVMdev] Installing binary gcc-4.0 frontend on x86-linux: where is llvm-gcc?
Warren Armstrong wrote:> Hi all, > > I recently downloaded the gcc 4 frontend from: > http://llvm.org/releases/1.8/llvm-gcc4-1.8-x86-linux.tar.gz > > I checked out the source from CVS using: > cvs -d :pserver:anon at llvm.org:/var/cvs/llvm login > cvs -z3 -d :pserver:anon at llvm.org:/var/cvs/llvm co llvm > > Running the configure script fails to find llvm-gcc. Inspecting > the untarred frontend, it doesn't contain any such binary, although > it does have gcc and g++ (sans llvm- prefix). Is this a problem with > the configure script, the download, or the procedure I followed? >I should probably send a patch to update the "Build gcc4" section. If you're building the frontend from scratch, as it looks like you are, then you won't have llvm-gcc. You can still build all of the tools, but you can't build the complete package. The build process that works for me was: a) Compile the llvm source using "make ENABLE_OPTIMIZED=1 tools-only" b) Compile the gcc frontentd with the "--enable-llvm" option pointing to the llvm object directory, and install (at least somewhere on your path...) c) Recompile llvm, "make ENABLE_OPTIMIZED=1", which should now use your newly compiled tools.