-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Description
| Bugzilla Link | 11473 |
| Resolution | FIXED |
| Resolved on | Nov 07, 2018 00:22 |
| Version | unspecified |
| OS | Linux |
| CC | @tobiasgrosser |
Extended Description
Hi,
During my attempt to build polly by clang++ with libc++, I've got the following error:
[ 51%] Building CXX object projects/polly/lib/CMakeFiles/LLVMPolly.dir/Cloog.cpp.o
/home/ryuta/devel/llvm/src/llvm/projects/polly/lib/Cloog.cpp:90:5: error: use
of undeclared identifier 'pipe'
pipe(FD);
^
/home/ryuta/devel/llvm/src/llvm/projects/polly/lib/Cloog.cpp:94:5: error: use
of undeclared identifier 'close'
close(FD[0]);
^
/home/ryuta/devel/llvm/src/llvm/projects/polly/lib/Cloog.cpp:104:5: error: use
of undeclared identifier 'close'
close(FD[1]);
^
/home/ryuta/devel/llvm/src/llvm/projects/polly/lib/Cloog.cpp:112:18: error:
use of undeclared identifier 'read'; did you mean 'fread'?
readSize = read(FD[0], &buf, BUFFERSIZE);
^~~~
fread
/usr/include/stdio.h:702:15: note: 'fread' declared here
extern size_t fread (void *__restrict __ptr, size_t __size,
^
/home/ryuta/devel/llvm/src/llvm/projects/polly/lib/Cloog.cpp:112:46: error:
too few arguments to function call, expected 4, have 3
readSize = read(FD[0], &buf, BUFFERSIZE);
~~~~ ^
/usr/include/stdio.h:702:1: note: 'fread' declared here
extern size_t fread (void *__restrict __ptr, size_t __size,
^
5 errors generated.
make[2]: *** [projects/polly/lib/CMakeFiles/LLVMPolly.dir/Cloog.cpp.o] Error 1
make[1]: *** [projects/polly/lib/CMakeFiles/LLVMPolly.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I think we can fix these errors by including proper header(s) but I'm not sure which header we're supposed to include...