Hi, I'm a newbie and just installed LLVM on a Linux box. I followe "The LLVM Getting Started Guide" on the web and have some trouble on the section "An Example Using the LLVM Tool Chain". When I compile the simple hello.c program with "llvmgcc hello.c -o hello", the system complains -- gcc: installation problem, cannot exec `gccas': Permission denied. Does anybody know what's going on? Thanks for your time, :-) -Bryan
On Tue, 22 Jun 2004, Hsien-Chieh Cheng wrote:> Hi, > > I'm a newbie and just installed LLVM on a Linux box. I followe > "The LLVM Getting Started Guide" on the web and have some trouble > on the section "An Example Using the LLVM Tool Chain". When I compile > the simple hello.c program with "llvmgcc hello.c -o hello", the system > complains -- gcc: installation problem, cannot exec `gccas': Permission > denied. Does anybody know what's going on?Make sure that the LLVM tools are in your path. If you built a debug tree in the source directory, that would be llvm/tools/Debug -Chris -- http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/
On Tue, Jun 22, 2004 at 12:44:36PM -0600, Hsien-Chieh Cheng wrote:> I'm a newbie and just installed LLVM on a Linux box. I followe > "The LLVM Getting Started Guide" on the web and have some trouble > on the section "An Example Using the LLVM Tool Chain". When I compile > the simple hello.c program with "llvmgcc hello.c -o hello", the system > complains -- gcc: installation problem, cannot exec `gccas': Permission > denied. Does anybody know what's going on?In order to use llvm-gcc, you must build the LLVM tools and put them in your path, particularly gccas and gccld. The document you are reading has a section on building the LLVM source code. I have added a note about this to the quick example you are reading so that others will also know to follow suit. -- Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu
> > I'm a newbie and just installed LLVM on a Linux box. I followe > > "The LLVM Getting Started Guide" on the web and have some trouble > > on the section "An Example Using the LLVM Tool Chain". When I compile > > the simple hello.c program with "llvmgcc hello.c -o hello", the system > > complains -- gcc: installation problem, cannot exec `gccas': Permission > > denied. Does anybody know what's going on? > > Make sure that the LLVM tools are in your path. If you built a debug tree > in the source directory, that would be llvm/tools/DebugAlso make sure that you have executable permissions on the tools. -Tanya