[LLVMbugs] [Bug 10649] New: Missing header "unistd.h" when compiled by 'clang++ -stdlib=libc++'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 12 17:44:38 PDT 2011


           Summary: Missing header "unistd.h" when compiled by 'clang++
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target-Independent JIT
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: oroppas at gmail.com
                CC: llvmbugs at cs.uiuc.edu

I've got the following error when self-hosting llvm/clang with libc++:

[ 49%] Building CXX object
      use of undeclared identifier 'lseek64'; did you mean 'fseeko64'?
    sys::DynamicLibrary::AddSymbol("\x1lseek64", (void*)(intptr_t)lseek64);
/usr/include/stdio.h:811:12: note: 'fseeko64' declared here
extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
1 error generated.
make[2]: *** [lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/Intercept.cpp.o]
Error 1
make[1]: *** [lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/all] Error 2
make: *** [all] Error 2

Having the header unistd.h fixed the problem.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list