<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Does someone have a solution for this problem ?<br>I am using gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) and I have tried several versions of LLVM including llvm 2.9 final. I am getting same error again and again.<br><br>I have successfully build the llvm on another machine with gcc version of 4.3. <br><br>Thanks in advance.<br><br>make[1]: Entering directory `/home/janarbek/Work/llvm/RELEASE_29/final/trunk/lib/Support'<br>llvm[1]: Compiling Path.cpp for Debug+Asserts build<br>In file included from Path.cpp:299:<br>Unix/Path.inc: In member function ‘bool llvm::sys::Path::eraseFromDisk(bool, std::string*) const’:<br>Unix/Path.inc:716: error: ‘unlink’ was not declared in this scope<br>make[1]: *** [/home/janarbek/Work/llvm/RELEASE_29/final/trunk/lib/Support/Debug+Asserts/Path.o] Error 1<br>make[1]: Leaving directory
`/home/janarbek/Work/llvm/RELEASE_29/final/trunk/lib/Support'<br>make: *** [all] Error 1<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, janarbek <i><canarbekmatay@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: janarbek <canarbekmatay@yahoo.com><br>Subject: Re: [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope<br>To: "Eli Friedman" <eli.friedman@gmail.com><br>Cc: "LLVM Developers Mailing List"
<llvmdev@cs.uiuc.edu><br>Date: Monday, October 24, 2011, 5:54 PM<br><br><div id="yiv1249360490"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">The patch does inseret unistd.h as below. However, I am still getting exactly same error when I do make.if you have any suggestions please let me know.<br><br>#if HAVE_UNISTD_H<br>#include <unistd.h><br>#endif<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:16 PM<br><br><div class="yiv1249360490plainMail">On Mon, Oct 24, 2011 at 5:10 PM, janarbek <<a rel="nofollow">canarbekmatay@yahoo.com</a>> wrote:<br>><br>> Yes,<br>><br>> I applied the patch on trunk version like below. It says patching file. 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>That means it was applied.<br><br>In that case, I have no idea how you could run into the error you're<br>seeing; unlink should be defined in unistd.h.<br><br>-Eli<br></div></blockquote></td></tr></tbody></table></div></blockquote></td></tr></table>