[LLVMdev] LLVM build is failed giving Path.inc:714: error: ‘unlink’ was not declared in this scope

janarbek canarbekmatay at yahoo.com
Mon Oct 24 16:27:08 PDT 2011

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.cpp 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111024/fab7caff/attachment.html>

More information about the llvm-dev mailing list