<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="-1">cmake here gives the following </font><font
size="-1"><font size="-1">output </font>and compiles OK.<br>
</font></p>
<p><font size="-1">-- Looking for malloc/malloc.h<br>
-- Looking for malloc/malloc.h - not found<br>
</font></p>
<p><font size="-1">Perhaps just using the following to start with
will reduce the problem scope.<br>
</font></p>
<p><font size="-1">-DLLVM_ENABLE_PROJECTS="clang;llvm"</font></p>
<p><font size="-1">Neil Nelson<br>
</font></p>
<div class="moz-cite-prefix"><font size="-1">On 10/23/20 8:27 AM,
Yectli Huerta via llvm-dev wrote:</font><br>
</div>
<blockquote type="cite"
cite="mid:CAGKX4TfYVKJuWs8o6_2f-Nuf376HmmJ8i9DD8sA7-cXmwvJCxg@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">i'm trying to compile llvm 11 but i'm getting this error message
fatal error: malloc/malloc.h: No such file or directory
1 | #include <malloc/malloc.h>
but the header file is installed
[ include]$ ls /usr/include/malloc.h
/usr/include/malloc.h
[ include]$ rpm -qf malloc.h
glibc-headers-2.17-292.el7.aarch64
i'm using this command to compile it
CXX="c++-gcc9" \
CC="gcc-gcc9" \
cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;openm
p;libc;flang;debuginfo-tests;lldb;parallel-libs;utils;clang-tools-extra" -DCMAK
E_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/$HOME/llvm_local/11.0 ../ll
vm
thanks
yah
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
</body>
</html>