Hi, This question should probably be sent to a LLVM Users list... if there was such a list. Anyway, I have installed llvm and llvm-cfe through Synaptic in Ubuntu but when I try to compile a test program it fails: $ cat test.c #include<stdio.h> int main(void) { puts("test"); return 0; } $ llvmc test.c exec: 14: /usr/lib/llvm/llvmc: Permission denied $ llvmgcc test.c exec: 10: /usr/lib/llvm/llvm-gcc4/bin/gcc: not found Any clues? Regards, August
Hi, It looks like the permissions aren't set for read access for non-root users. The command for fixing that is "chmod". If you look up chmod in the man pages of the Ubuntu help files it should give instructions on how to use it. I hope this helps, --Sam --- On Mon, 8/25/08, August Karlstrom <fusionfile at comhem.se> wrote:> From: August Karlstrom <fusionfile at comhem.se> > Subject: [LLVMdev] Installation problem > To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Date: Monday, August 25, 2008, 7:02 AM > Hi, > > This question should probably be sent to a LLVM Users > list... if there > was such a list. Anyway, I have installed llvm and llvm-cfe > through > Synaptic in Ubuntu but when I try to compile a test program > it fails: > > $ cat test.c > #include<stdio.h> > > int main(void) > { > puts("test"); > > return 0; > } > > $ llvmc test.c > exec: 14: /usr/lib/llvm/llvmc: Permission denied > $ llvmgcc test.c > exec: 10: /usr/lib/llvm/llvm-gcc4/bin/gcc: not found > > Any clues? > > > Regards, > > August > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Samuel Crow wrote:> It looks like the permissions aren't set for read access for non-root users. The command for fixing that is "chmod". If you look up chmod in the man pages of the Ubuntu help files it should give instructions on how to use it. > > I hope this helps,Thanks for your reply. Actually, the file has read access but the execute flag is not set: $ ls -l /usr/lib/llvm/llvmc -rw-r--r-- 1 root root 527791 2006-11-09 12:05 /usr/lib/llvm/llvmc To me it seems like a bug in the installation script. I have notified the package maintainer (Ubuntu MOTU Developers <ubuntu-motu at lists.ubuntu.com>).> --- On Mon, 8/25/08, August Karlstrom <fusionfile at comhem.se> wrote: > >> From: August Karlstrom <fusionfile at comhem.se> >> Subject: [LLVMdev] Installation problem >> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> >> Date: Monday, August 25, 2008, 7:02 AM >> Hi, >> >> This question should probably be sent to a LLVM Users >> list... if there >> was such a list. Anyway, I have installed llvm and llvm-cfe >> through >> Synaptic in Ubuntu but when I try to compile a test program >> it fails: >> >> $ cat test.c >> #include<stdio.h> >> >> int main(void) >> { >> puts("test"); >> >> return 0; >> } >> >> $ llvmc test.c >> exec: 14: /usr/lib/llvm/llvmc: Permission denied >> $ llvmgcc test.c >> exec: 10: /usr/lib/llvm/llvm-gcc4/bin/gcc: not found >> >> Any clues?
Hi,> It looks like the permissions aren't set for read access for non-root users. > The command for fixing that is "chmod". If you look up chmod in the man > pages of the Ubuntu help files it should give instructions on how to use it.It might not be just read permission, you need execute permissions as well. Also, you should file a bug report with Ubuntu, this kind of problem should not occur with packaged software. Gr. Matthijs -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080825/a9ec85be/attachment.sig>