MortenMacFly
2013-Jan-22 06:22 UTC
[LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory
I am having trouble getting LLVM/Clang to compile from SVN/trunk on win32 using MinGW (4.7.1). The error is: sys/mman.h: No such file or directory ...and it happens during compilation of: [LLVM/Clang]\projects\compiler-rt\lib\enable_execute_stack.c I configured everything carefully as "CMAKE_BUILD_TYPE" "Release". I have in the PATH (in that order): - CMake - MinGW - Python 2.7.2 - ActivePerl - Subversion 1.7.x - GraphViz 2.3.0 All tools are found, configuration w/ Cmake succeeds hence that error. It used to work like that when I compiled earlier, but that's roughly 4 month ago. :-/ What can I do? BTW: I think I posted this to the wrong mailing list in the first place, so I repeat here (sorry for that): (See reference: http://llvm.1065342.n5.nabble.com/Fails-to-compile-w-MinGW-sys-mman-h-No-such-file-or-directory-tt53919.html) -- View this message in context: http://llvm.1065342.n5.nabble.com/Fails-to-compile-w-MinGW-sys-mman-h-No-such-file-or-directory-tp54006.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Anton Korobeynikov
2013-Jan-22 07:49 UTC
[LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory
> What can I do?Just don't build compiler-rt. And yes, instructions should be modified to outline that compiler-rt is optional step. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
MortenMacFly
2013-Jan-22 08:08 UTC
[LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory
> Just don't build compiler-rt.Oh well, as simple as that... I feel stupidnow. Thanks for the help!Just out of curiosity: Why it used to work earlier? Is it included now by default or something like that? I don't think I changed the CMake config too much in tat direction - but I'll check... ;-) -- View this message in context: http://llvm.1065342.n5.nabble.com/Fails-to-compile-w-MinGW-sys-mman-h-No-such-file-or-directory-tp54006p54011.html Sent from the LLVM - Dev mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130122/27fe141b/attachment.html>
Shankar Easwaran
2013-Jan-22 16:44 UTC
[LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory
On 1/22/2013 1:49 AM, Anton Korobeynikov wrote:>> What can I do? > Just don't build compiler-rt. And yes, instructions should be modified > to outline that compiler-rt is optional step. > > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State University > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdevWhy is the header using sys/mman.h, isnt it supposed to be using llvm/Support include files such as MemoryBuffer ? Thanks Shankar Easwaran -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation
Apparently Analagous Threads
- [LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory
- [LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory
- [LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory
- [LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory
- [LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory