<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">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><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, 4:36 PM<br><br><div class="plainMail">On Mon, Oct 24, 2011 at 4:27 PM, janarbek <<a ymailto="mailto:canarbekmatay@yahoo.com" href="/mc/compose?to=canarbekmatay@yahoo.com">canarbekmatay@yahoo.com</a>> wrote:<br>><br>> Hello All,<br>><br>> I am getting following error on Ubuntu. My gcc is gcc version 4.4.5. Please let me know if you have any comments/suggestions.<br>><br>> In file included from /home/janarbek/Work/llvm/llvm/lib/Support/Path.cpp:299:<br>> /home/janarbek/Work/llvm/llvm/lib/Support/Unix/Path.inc: In member function ‘bool llvm::sys::Path::eraseFromDisk(bool, std::string*) const’:<br>>
/home/janarbek/Work/llvm/llvm/lib/Support/Unix/Path.inc:714: error: ‘unlink’ was not declared in this scope<br>> make[1]: *** [/home/janarbek/Work/llvm/llvm_obj/lib/Support/Release+Asserts/Path.o] Error 1<br>> make[1]: Leaving directory `/home/janarbek/Work/llvm/llvm_obj/lib/Support'<br>> make: *** [all] Error 1<br>> janarbek@ubuntu:~/Work/llvm/llvm_obj$ vi ../llvm/lib/Support/Path.cpp<br><br>Does the attached patch help?<br><br>Does this issue show up with 3.0 RC1? (<a href="http://llvm.org/pre-releases/3.0/" target="_blank">http://llvm.org/pre-releases/3.0/</a>)<br><br>-Eli<br></div></blockquote></td></tr></table>