janarbek
2011-Oct-24 23:41 UTC
[LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
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 =========================================== 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:36 PM On Mon, Oct 24, 2011 at 4:27 PM, janarbek <canarbekmatay at yahoo.com> wrote:> > Hello All, > > 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. > > In file included from /home/janarbek/Work/llvm/llvm/lib/Support/Path.cpp:299: > /home/janarbek/Work/llvm/llvm/lib/Support/Unix/Path.inc: In member function ‘bool llvm::sys::Path::eraseFromDisk(bool, std::string*) const’: > /home/janarbek/Work/llvm/llvm/lib/Support/Unix/Path.inc:714: error: ‘unlink’ was not declared in this scope > make[1]: *** [/home/janarbek/Work/llvm/llvm_obj/lib/Support/Release+Asserts/Path.o] Error 1 > make[1]: Leaving directory `/home/janarbek/Work/llvm/llvm_obj/lib/Support' > make: *** [all] Error 1 > janarbek at ubuntu:~/Work/llvm/llvm_obj$ vi ../llvm/lib/Support/Path.cppDoes the attached patch help? Does this issue show up with 3.0 RC1? (http://llvm.org/pre-releases/3.0/) -Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111024/202122e1/attachment.html>
Eli Friedman
2011-Oct-24 23:47 UTC
[LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
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.rejTry "patch -p0 < unistd.txt". -Eli
janarbek
2011-Oct-24 23:54 UTC
[LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
Nope, It is giving same error. I got source from svn. Assuming this is current version which might have bugs, shall I try 2.9 version ? =========================================== 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.rejTry "patch -p0 < unistd.txt". -Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111024/ec4287a4/attachment.html>
janarbek
2011-Oct-24 23:58 UTC
[LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope
I apply patch, it says patch is applied. Does the directory which I run patch matters ? =========================================== 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.rejTry "patch -p0 < unistd.txt". -Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111024/f6bd04cb/attachment.html>
Maybe Matching 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