<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=GB18030" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks, I've fixed this problem by manually define that macro in the
generated config file. My system does have the <b>mmap()</b> function.
It's just that configure didn't get the right result. Sorry for the
inconvenience.<span class="moz-smiley-s1"><span> :-) </span></span><br>
<br>
Henrik Bach wrote:
<blockquote cite="midBAY10-F137035A2DC37AEF6C0038ECF8D0@phx.gbl"
 type="cite">The HAVE_MMAP_FILE macro comes from when you configured
llvm. The configure tested if your system is giving access to a various
resources required by llvm. LLVM needs the MMAP functionality by your
system. Some times, if the required resources aren't present, we use
other resources.
  <br>
  <br>
However, in this case the building process is stopped, because the
functionality can't be implemented by other means.
  <br>
  <br>
I really can't tell if RedHat 9.0 has MMAP present, but it makes me
wonder.
  <br>
  <br>
What does your config.log tell you about MMAP? Please snip the relevant
parts.
  <br>
  <br>
  <br>
Henrik.
  <br>
  <br>
P.S. Can't your email system use ascii instead? I'm not able to import
your question automatically into my system on reply.
  <br>
  <br>
  <br>
----Original Message Follows----
  <br>
  <br>
I checked the source code and find this is caused by the undefined
"HAVE_MMAP_FILE" macro. But I don't know what this macro is used for?
How to sovle it?
  <br>
thanks.
  <br>
  <br>
_______________________________________________
  <br>
LLVM Developers mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
  <br>
<a class="moz-txt-link-freetext" href="http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev">http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
  <br>
  <br>
_________________________________________________________________
  <br>
Express yourself instantly with MSN Messenger! Download today - it's
FREE! <a class="moz-txt-link-freetext" href="http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/">http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/</a>
  <br>
  <br>
  <hr size="4" width="90%"><br>
  <meta content="text/html;charset=GB18030" http-equiv="Content-Type">
  <title></title>
Hello,<br>
 I built llvm1.4 with gcc3.4.3 and glibc2.3.2 on a redhat 9.0 machine,
but got this error:<br>
  <small>/home/zhoufeng/bin/llvm/llvm-build/../llvm/lib/Support/FileUtilities.cpp:299:2:
#error Unimplemented ReadFileIntoAddressSpace - need to use read/write.<br>
gmake[1]: ***
[/home/zhoufeng/bin/llvm/llvm-build/lib/Support/Debug/FileUtilities.o]
Error 1<br>
gmake[1]: *** Waiting for unfinished jobs....<br>
gmake[1]: Leaving directory
`/home/zhoufeng/bin/llvm/llvm-build/lib/Support'<br>
gmake: *** [all] Error 1<br>
  </small>I checked the source code and find this is caused by the
undefined "<b>HAVE_MMAP_FILE</b>" macro. But I don't know what this
macro is used for? How to sovle it? <br>
thanks.<br>
--zhoufeng<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev">http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
  </pre>
</blockquote>
</body>
</html>