chaco build must be able to see malloc.h sudo ln -s /usr/include/malloc/malloc.h /usr/include/malloc.h or else make sure you include the malloc directory in path