Hi,
It's possible that you don't have the required ARM libraries in your system?
cheers,
--renato
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
I can think of two things:
1. You're using a triple that is different from your gcc name:
'-target armv7a-linux-gnueabihf'
vs
'-ccc-gcc-name arm-linux-gnueabihf-gcc'
You should use the target as "arm-linux-gnueabihf".
2. You're not including the GCC headers or libraries.
You need to find where GCC keeps its libraries (normally
/usr/lib/gcc/arm-linux-gnueabihf) and headers (if necessary).
In your case, just adding -L"where your gcc libs are" should be enough.
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,
etc.
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.