[LLVMdev] question about compile path
Qiuyu Zhang
qiuyu at ucla.edu
Wed Feb 2 16:29:38 PST 2005
Hi,
I have a question about install path.
Some one installs llvm1.4 under /opt/llvm as root. However, when I create a project under my home directory, I cannot do Make correctly. It should be enviroment issue, but I cannot fix it.
The environment is as the following,
/opt/llvm : // llvm 1. 4
/home/qiuyu/ ://my home directory
/home/qiuyu/project/statBB ://my project directory
I create a simple pass to test it. The content of Makefile is
LEVEL = /opt/llvm
LIBRARYNAME = StatBB
SHARED_LIBRARY = 1
include $(LEVEL)/Makefile.common
Once I do make, I got a error like
"
/bin/sh: line 1: cd: /home/qiuyu/project/statBB//opt/llvm/: No such file or directory
^^^^^^^
llvm[0]: Reconfiguring with /opt/llvm/configure
make: *** [/home/qiuyu/project/statBB/config.status] Error 127
"
So I changed the "LEVEL =/opt/llvm" to "LEVEL=../../../../opt/llvm", the error message became to
"make: *** No rule to make target `/opt/llvm/home/qiuyu/shuffleBB/Makefile', needed by `Makefile'. Stop.
^^^^^^^
"
Finally, I swith to be as root and put my project under /opt/llvm/project/statBB, and LEVEL=../.. and I can make it.
Is there any way to make it work on my home directory?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050202/4b73fcf4/attachment.html>
More information about the llvm-dev
mailing list