<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=GB2312" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, I checked that envvar, and it is set.<br>
The error msg when compiling a .c file is:<br>
gccld: WARNING: Cannot find library -lc<br>
gccld: WARNING: Cannot find library -lcrtend<br>
Can LLVM be installed using a prefix?<br>
--zhoufeng<br>
<br>
Chris Lattner wrote:
<blockquote
cite="midPine.LNX.4.44.0410251347490.27028-100000@nondot.org"
type="cite">
<pre wrap="">On Mon, 25 Oct 2004, zhou feng wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I have some questions about LLVM
1. I recently compiled LLVM on my X86 machine correctly. But when I use
the built LLVm compiling programs(in the getting started guide), I got
an warning saying can not find library "lc" (something like that). Yet
LLVM did yeild a execution native code and it runs correctly except with
a waring saying something like "__main**"(I cann't remember very clearly).
I followed all the install instructions except the installation dir for
llvm is /home/my/llvm/llvm-bin/ and llvmgcc dir is
/home/my/llvm/llvm/llvm-gcc and the configure option is
--prefix=/home/my/llvm/llvm-bin/ --enable-jit
--llvmgccdir=/home/my/llvm/llvm/llvm-gcc
</pre>
</blockquote>
<pre wrap=""><!---->
Make sure you set your LLVM_LIB_SEARCH_PATH envvar, as specified in the
getting started guide:
<a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu/docs/GettingStarted.html#environment">http://llvm.cs.uiuc.edu/docs/GettingStarted.html#environment</a>
</pre>
<blockquote type="cite">
<pre wrap="">btw: there was an error when installing LLVM, the system complained "no
pax command...". What pax is?
</pre>
</blockquote>
<pre wrap=""><!---->
I have no idea.
</pre>
<blockquote type="cite">
<pre wrap="">2. I want to do some work on register allocation using LLVM, which parts
of code should I read? ( The whole source is too big for me)
</pre>
</blockquote>
<pre wrap=""><!---->
As Alkis mentioned, the code in lib/CodeGen/* is the most relevant.
-Chris
</pre>
</blockquote>
</body>
</html>