<div dir="ltr">Hi James,<div><br></div><div>1. I have tried with your suggestion, the command is as follows:</div><div><br></div><div><div>CC='clang' CXX='clang++' cmake -G Ninja ../llvm-source-code </div><div>-DCMAKE_CROSSCOMPILING=True </div><div>-DCMAKE_INSTALL_PREFIX=./llvm </div><div>-DLLVM_TABLEGEN=/home/lab/workspace/llvm/build4x86/bin/llvm-tblgen </div><div>-DCLANG_TABLEGEN=/home/lab/workspace/llvm/build4x86/bin/clang-tblgen </div><div>-DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf </div><div>-DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM </div><div>-DCMAKE_CXX_FLAGS='-target armv7a-linux-gnueabihf -mcpu=cortex-a9 --sysroot=/usr/arm-linux-gnueabihf/ -mfloat-abi=hard -ccc-gcc-name arm-linux-gnueabihf-gcc' </div><div>-DLLVM_ENABLE_LIBCXX=ON -DLLVM_ENABLE_PIC=False</div></div><div><br></div><div>But it still produce error, like this:</div><div><br></div><div><div>CMake Error at /home/lab/workspace/cmake-3.2.0-Linux-x86_64/share/cmake-3.2/Modules/CMakeTestCXXCompiler.cmake:54 (message):</div><div> The C++ compiler "/home/lab/workspace/llvm/build4x86/bin/clang++" is not</div><div> able to compile a simple test program.</div></div><div><br></div><div><div>/usr/bin/ld: unrecognised emulation mode: armelf_linux_eabi</div><div><br></div><div> Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om</div><div> elf_k1om i386pep i386pe</div><div><br></div><div> clang-3.9: error: linker command failed with exit code 1 (use -v to see</div><div> invocation)</div><div><br></div><div> ninja: build stopped: subcommand failed.</div></div><div><br></div><div>2. If I maually add all the libraries/headers, it don't produce the errors above.</div><div><br></div><div>So I think I still need to download some necessary libraries.</div><div><br></div><div>Thanks for your reply!</div><div><br></div><div>Best,</div><div>Liyang</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-25 23:42 GMT+08:00 James Molloy <span dir="ltr"><<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You shouldn't need any. Did you attempt my suggestion ?<div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, 25 Apr 2016 at 16:40, 李阳 <<a href="mailto:yanglee.cqu@gmail.com" target="_blank">yanglee.cqu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi James, renato,<div><br></div><div>So how do I download the missing ARM libraries on Ubuntu14.04? I cannot find any available libraries.</div><div><br></div><div>Best,</div><div>Liyang</div></div>
</blockquote></div>
</div></div></blockquote></div><br></div>