[LLVMdev] How to Cross Compile libcompiler_rt Static Library?

Richard Pennington rich at pennware.com
Mon Mar 30 16:55:11 PDT 2015


On 03/30/2015 11:23 AM, Chao Yan wrote:
>
> 2015-03-29 19:41 GMT-05:00 Richard Pennington <rich at pennware.com 
> <mailto:rich at pennware.com>>:
>
>     I also use my own Makefiles to build compiler-rt for ELLCC. I
>     build for ARM, Mips, Microblaze, PowerPC, and x86. This is the
>     list of files I came up with:
>     http://ellcc.org/viewvc/svn/ellcc/trunk/libecc/src/compiler-rt/sources.mk?view=markup
>
>     More info at http://ellcc.org
>
>
> I've check the compiler-rt source code and try to run  "make 
> arm-linux-engeabi" in ellcc/libecc directory. I got the following errors:
>
> Making libcompiler-rt for arm-linux-engeabi in compiler-rt-build
> arm-linux-engeabi
> cp: cannot stat ‘Makefile.lib’: No such file or directory
>
> I've searched through the directory but there is no "Makefile.lib". 
> Run "locate Makefile.lib" I find:
>
> /usr/src/linux-headers-3.13.0-45/scripts/Makefile.lib
> /usr/src/linux-headers-3.13.0-45/scripts/dtc/libfdt/Makefile.libfdt
> /usr/src/linux-headers-3.13.0-45-generic/scripts/Makefile.lib
> /usr/src/linux-headers-3.13.0-46/scripts/Makefile.lib
> /usr/src/linux-headers-3.13.0-46/scripts/dtc/libfdt/Makefile.libfdt
> /usr/src/linux-headers-3.13.0-46-generic/scripts/Makefile.lib
> /usr/src/linux-headers-3.13.0-48/scripts/Makefile.lib
> /usr/src/linux-headers-3.13.0-48/scripts/dtc/libfdt/Makefile.libfdt
> /usr/src/linux-headers-3.13.0-48-generic/scripts/Makefile.lib
>
> I've tried to use these Makefile.lib but they are not working properly:
> arm-linux-engeabi
> make[1]: *** No rule to make target `install'.  Stop.
>
> Am I missing something? BTW in your makefile line 49:
>
> $(OUT)cp -p Makefile.lib compiler-rt-build/$@/Makefile
>
> The $(OUT) stuff at the beginning seems not useful?
>
> Thanks,
> Chao
>

Hi Chao,

I don't want to bring noise to the mailing list. I'll respond privately.

-Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150330/fa7f07ca/attachment.html>


More information about the llvm-dev mailing list