[LLVMdev] Compile-rt throw error undeclared identifier 'O_CLOEXEC'

Chatsiri Ratana insiderboy at gmail.com
Wed Jun 6 03:15:51 PDT 2012


Hello All,

     I build LLVM source code version 3.2 from SVN repository. After I
build source code of LLVM include "compiler-rt"(Compiler-rt at revision
158057.
) and "clang" are represent an error as below.

make[5]: Entering directory
`/san01/home/chatsiri/workspacecpp/llvm-svn/projects/compiler-rt'
  COMPILE:   clang_linux/asan-x86_64/x86_64:
/san01/home/chatsiri/workspacecpp/llvm-svn/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
/san01/home/chatsiri/workspacecpp/llvm-svn/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc:47:36:
error: use of
      undeclared identifier 'O_CLOEXEC'
      write ? O_WRONLY | O_CREAT | O_CLOEXEC : O_RDONLY,
0660);                                   ^
1 error generated.

Who have any idea with error these?

Best Regards,
Chatsiri Rattana.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120606/6b6f99df/attachment.html>


More information about the llvm-dev mailing list