[LLVMdev] Fails to compile w/ MinGW: sys/mman.h: No such file or directory

Peter Collingbourne peter at pcc.me.uk
Tue Jan 22 11:12:48 PST 2013

On Tue, Jan 22, 2013 at 10:44:59AM -0600, Shankar Easwaran wrote:
> 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/llvmdev
> Why is the header using sys/mman.h, isnt it supposed to be using  
> llvm/Support include files such as MemoryBuffer ?

I may be mistaken but I believe that compiler-rt cannot use
anything from llvm/ as it would introduce unwanted LLVM symbols
into compiler-rt.

Attached is something I came up with to fix the build on Windows,
not sure if it's correct as I couldn't figure out how to build the
tests on Windows.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: compilerrt-fix-windows-build.patch
Type: text/x-diff
Size: 1901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130122/37a9282c/attachment.patch>

More information about the llvm-dev mailing list