janarbek
2011-Oct-25 00:10 UTC
[LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
Yes, I applied the patch on trunk version like below. It says patching file. However, when I make, the build is still failing. janarbek at ubuntu:~/Work/llvm/llvm$ patch -p0 < unistd.txt patching file lib/Support/Unix/Path.inc =========================================== Phone : 82-42-860-1838 Fax : 82-42-860-6790 Cell Phone: 82-10-7599-1981 ========================================== --- On Mon, 10/24/11, Eli Friedman <eli.friedman at gmail.com> wrote: From: Eli Friedman <eli.friedman at gmail.com> Subject: Re: [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope To: "janarbek" <canarbekmatay at yahoo.com> Cc: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Date: Monday, October 24, 2011, 5:04 PM On Mon, Oct 24, 2011 at 4:58 PM, janarbek <canarbekmatay at yahoo.com> wrote:> > I apply patch, it says patch is applied. Does the directory which I run patch matters ?You should be running the "patch -p0 < unistd.txt" in the root LLVM source directory for the trunk version. If you're still getting "Hunk #1 FAILED at 51." errors, you're not doing that. -Eli> > > ==========================================> Phone : 82-42-860-1838 > Fax : 82-42-860-6790 > Cell Phone: 82-10-7599-1981 > ==========================================> > --- On Mon, 10/24/11, Eli Friedman <eli.friedman at gmail.com> wrote: > > From: Eli Friedman <eli.friedman at gmail.com> > Subject: Re: [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope > To: "janarbek" <canarbekmatay at yahoo.com> > Cc: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Date: Monday, October 24, 2011, 4:47 PM > > On Mon, Oct 24, 2011 at 4:41 PM, janarbek <canarbekmatay at yahoo.com> wrote: > > > > I am not sure if I applied correctly.I did following and it seems failed. > > > > janarbek at ubuntu:~/Work/llvm$ patch <unistd.txt > > patching file Path.inc > > Hunk #1 FAILED at 51. > > 1 out of 1 hunk FAILED -- saving rejects to file Path.inc.rej > > Try "patch -p0 < unistd.txt". > > -Eli-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111024/a001fab9/attachment.html>
Eli Friedman
2011-Oct-25 00:16 UTC
[LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
On Mon, Oct 24, 2011 at 5:10 PM, janarbek <canarbekmatay at yahoo.com> wrote:> > Yes, > > I applied the patch on trunk version like below. It says patching file. However, when I make, the build is still failing. > > janarbek at ubuntu:~/Work/llvm/llvm$ patch -p0 < unistd.txt > patching file lib/Support/Unix/Path.incThat means it was applied. In that case, I have no idea how you could run into the error you're seeing; unlink should be defined in unistd.h. -Eli
janarbek
2011-Oct-25 00:19 UTC
[LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
Or can you update the code in svn ? I will re check out it. Or where, I mean in which file shall I include unistd.h ? =========================================== Phone : 82-42-860-1838 Fax : 82-42-860-6790 Cell Phone: 82-10-7599-1981 ========================================== --- On Mon, 10/24/11, Eli Friedman <eli.friedman at gmail.com> wrote: From: Eli Friedman <eli.friedman at gmail.com> Subject: Re: [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope To: "janarbek" <canarbekmatay at yahoo.com> Cc: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Date: Monday, October 24, 2011, 5:16 PM On Mon, Oct 24, 2011 at 5:10 PM, janarbek <canarbekmatay at yahoo.com> wrote:> > Yes, > > I applied the patch on trunk version like below. It says patching file. However, when I make, the build is still failing. > > janarbek at ubuntu:~/Work/llvm/llvm$ patch -p0 < unistd.txt > patching file lib/Support/Unix/Path.incThat means it was applied. In that case, I have no idea how you could run into the error you're seeing; unlink should be defined in unistd.h. -Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111024/2e1f9ba5/attachment.html>
janarbek
2011-Oct-25 00:54 UTC
[LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
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. #if HAVE_UNISTD_H #include <unistd.h> #endif =========================================== Phone : 82-42-860-1838 Fax : 82-42-860-6790 Cell Phone: 82-10-7599-1981 ========================================== --- On Mon, 10/24/11, Eli Friedman <eli.friedman at gmail.com> wrote: From: Eli Friedman <eli.friedman at gmail.com> Subject: Re: [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope To: "janarbek" <canarbekmatay at yahoo.com> Cc: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Date: Monday, October 24, 2011, 5:16 PM On Mon, Oct 24, 2011 at 5:10 PM, janarbek <canarbekmatay at yahoo.com> wrote:> > Yes, > > I applied the patch on trunk version like below. It says patching file. However, when I make, the build is still failing. > > janarbek at ubuntu:~/Work/llvm/llvm$ patch -p0 < unistd.txt > patching file lib/Support/Unix/Path.incThat means it was applied. In that case, I have no idea how you could run into the error you're seeing; unlink should be defined in unistd.h. -Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111024/12e19997/attachment.html>
Reasonably Related Threads
- [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
- [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
- [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
- [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
- [LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope