cmake here gives the following output and compiles OK.
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - not found
Perhaps just using the following to start with will reduce the problem
scope.
-DLLVM_ENABLE_PROJECTS="clang;llvm"
Neil Nelson
On 10/23/20 8:27 AM, Yectli Huerta via llvm-dev wrote:> 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
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20201023/4490d5dd/attachment.html>