[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
http://llvm.org/bugs/show_bug.cgi?id=10649
Summary: Missing header "unistd.h" when compiled by 'clang++
-stdlib=libc++'
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
lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/Intercept.cpp.o
/home/ryuta/devel/llvm/src/llvm/lib/ExecutionEngine/JIT/Intercept.cpp:70:67:
error:
use of undeclared identifier 'lseek64'; did you mean 'fseeko64'?
sys::DynamicLibrary::AddSymbol("\x1lseek64", (void*)(intptr_t)lseek64);
^~~~~~~
fseeko64
/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