[LLVMdev] Customize Standard C Library Using LLVM (to support llvm backend optimization)

Chao Yan yanchao2012 at gmail.com
Thu Mar 12 12:59:32 PDT 2015


2015-03-12 10:49 GMT-05:00 Jonathan Roelofs <jonathan at codesourcery.com>:

> You need to build a sysroot from the lib and include directories in
> ~/research/musl-1.1.6 combined with the same folders from
> /usr/local/arm-2009q, then use `--sysroot` instead of the `-I`s and `-L's.


I copied everything from the lib in musl-1.1.6
to arm-2009q3/arm-none-linux-gnueabi/libc/usr/lib but there is still an
error message:

src/env/__libc_start_main.c:(.text+0x40): undefined reference to
`__aeabi_memset'
collect2: ld returned 1 exit status

it seems that I need an arm-none-linux-gcc-4.9 (current version from
arm-2009q3 is gcc-4.4) to support  the `__aeabi_memset' function?

Regards,
Chao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150312/3e8ba780/attachment.html>


More information about the llvm-dev mailing list