[llvm-dev] build issue in llvm-clang cross tool chain for arm target

Renato Golin via llvm-dev llvm-dev at lists.llvm.org
Mon May 9 03:25:51 PDT 2016

On 8 May 2016 at 16:18, Balasaheb Dabhade <dabhadebalasaheb at gmail.com> wrote:
> However, I am still facing the issue since cmake not able to find header
> file path as per CMakeError.log (attached for email for reference) error
> message.

>From the log, it seems to me you're missing the correct include path somewhere.

The easiest way is to use "find /usr -name <header>" and then use the
directory that is the base for <header>.

Also, I couldn't find anywhere in my system (including ARM and AArch64
directories) the following headers:

* malloc/malloc.h (my malloc.h is directly that the include path, ie,
no "malloc/")
* ndir.h / sys/ndir.h / mach/mach.h / mach-o/dyld.h / histedit.h
(seems to be Apple specific?)

If you're moving your source from Apple to Linux you *will* need to
make it portable, and that includes choosing headers, defining macros,

I *did* find:

* cxxabi.h (it was directly on the include path, at
/usr/arm-none-eabi/include/c++/5.3.0/cxxabi.h, but you may have to add
that to -I)
* valgrind/valgrind.h (but only on my x86 include path, you may have
to install valgrind-dev:armhf)

Also, the error:

/usr/bin/ld: cannot find -lz

shows me that you don't have Zlib installed, you'll need that.


More information about the llvm-dev mailing list