02I built llvm1.4 with gcc3.4.3 and glibc2.3.2 on a redhat 9.0 machine, but got this error:
/home/zhoufeng/bin/llvm/llvm-build/…/llvm/lib/Support/FileUtilities.cpp:299:2: #error Unimplemented ReadFileIntoAddressSpace - need to use read/write.
gmake: *** [/home/zhoufeng/bin/llvm/llvm-build/lib/Support/Debug/FileUtilities.o] Error 1
gmake: *** Waiting for unfinished jobs…
gmake: Leaving directory `/home/zhoufeng/bin/llvm/llvm-build/lib/Support’
gmake: *** [all] Error 1
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?
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.
However, in this case the building process is stopped, because the functionality can't be implemented by other means.
I really can't tell if RedHat 9.0 has MMAP present, but it makes me wonder.
What does your config.log tell you about MMAP? Please snip the relevant parts.
P.S. Can't your email system use ascii instead? I'm not able to import your question automatically into my system on reply.
----Original Message Follows----
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?
text2.html (993 Bytes)
Thanks, I’ve fixed this problem by manually define that macro in the generated config file. My system does have the mmap() function. It’s just that configure didn’t get the right result. Sorry for the inconvenience. Henrik Bach wrote: