[llvm-dev] malloc.h in aarch64 centos 7

Yectli Huerta via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 23 07:27:45 PDT 2020


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


More information about the llvm-dev mailing list