<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Yes,<br><br>I applied the patch on trunk version like below. It says <span style="font-weight: bold;">patching file. </span>However, when I make, the build is still failing. <br><br>janarbek@ubuntu:~/Work/llvm/llvm$ patch -p0 < unistd.txt<br>patching file lib/Support/Unix/Path.inc<br><br><br><br><br><div><font color="#00007f"></font> </div>  <div><font color="#00007f">===========================================</font></div>  <div><br><font color="#00007f">Phone : 82-42-860-1838<br>Fax : 82-42-860-6790</font></div>  <div><font color="#00007f">Cell Phone: 82-10-7599-1981</font></div>  <div><font color="#00007f">===========================================</font></div><br><br>--- On <b>Mon, 10/24/11, Eli Friedman <i><eli.friedman@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left:
 5px;"><br>From: Eli Friedman <eli.friedman@gmail.com><br>Subject: Re: [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope<br>To: "janarbek" <canarbekmatay@yahoo.com><br>Cc: "LLVM Developers Mailing List" <llvmdev@cs.uiuc.edu><br>Date: Monday, October 24, 2011, 5:04 PM<br><br><div class="plainMail">On Mon, Oct 24, 2011 at 4:58 PM, janarbek <<a ymailto="mailto:canarbekmatay@yahoo.com" href="/mc/compose?to=canarbekmatay@yahoo.com">canarbekmatay@yahoo.com</a>> wrote:<br>><br>> I apply patch, it says patch is applied. Does the directory which I run patch matters ?<br><br>You should be running the "patch -p0 < unistd.txt" in the root LLVM<br>source directory for the trunk version.  If you're still getting "Hunk<br>#1 FAILED at 51." errors, you're not doing that.<br><br>-Eli<br><br>><br>><br>> ===========================================<br>> Phone :
 82-42-860-1838<br>> Fax : 82-42-860-6790<br>> Cell Phone: 82-10-7599-1981<br>> ===========================================<br>><br>> --- On Mon, 10/24/11, Eli Friedman <<a ymailto="mailto:eli.friedman@gmail.com" href="/mc/compose?to=eli.friedman@gmail.com">eli.friedman@gmail.com</a>> wrote:<br>><br>> From: Eli Friedman <<a ymailto="mailto:eli.friedman@gmail.com" href="/mc/compose?to=eli.friedman@gmail.com">eli.friedman@gmail.com</a>><br>> Subject: Re: [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope<br>> To: "janarbek" <<a ymailto="mailto:canarbekmatay@yahoo.com" href="/mc/compose?to=canarbekmatay@yahoo.com">canarbekmatay@yahoo.com</a>><br>> Cc: "LLVM Developers Mailing List" <<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="/mc/compose?to=llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>><br>> Date: Monday, October 24, 2011, 4:47 PM<br>><br>> On
 Mon, Oct 24, 2011 at 4:41 PM, janarbek <<a ymailto="mailto:canarbekmatay@yahoo.com" href="/mc/compose?to=canarbekmatay@yahoo.com">canarbekmatay@yahoo.com</a>> wrote:<br>> ><br>> > I am not sure if I applied correctly.I did following and it seems failed.<br>> ><br>> > janarbek@ubuntu:~/Work/llvm$ patch <unistd.txt<br>> > patching file Path.inc<br>> > Hunk #1 FAILED at 51.<br>> > 1 out of 1 hunk FAILED -- saving rejects to file Path.inc.rej<br>><br>> Try "patch -p0 < unistd.txt".<br>><br>> -Eli<br></div></blockquote></td></tr></table>