Installation problem

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

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@lists.ubuntu.com>).

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

Matthijs Kooijman 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.

It might not be just read permission, you need execute permissions as well.

Please, use proper quoting. I did not write the paragraph above, Samuel Crow did.

Also, you should file a bug report with Ubuntu, this kind of problem should
not occur with packaged software.

Agreed. As mentioned in my previous posting I have informed the package maintainers about the problem.

August