<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>I try to build LLVM/Clang 3.8.1 on Tegra X1 (aarch64) and libunwind is needed. Compilation failed when try to build libunwind with the following compilation errors:<br><br>[ 51%] Building C object<br>projects/libunwind/src/CMakeFiles/unwind.dir/UnwindRegistersRestore.S.o<br>/mnt/SD/hipacc/tar_llvm/llvm-3.8.1.src/projects/libunwind/src/UnwindRegistersRestore.S:270:74:<br>warning: invoking macro GLUE2 argument 1: empty macro arguments are<br>undefined in ISO C90 and ISO C++98 [enabled by default]<br> DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9libunwind15Registers_arm646jumptoEv)<br> ^<br>/mnt/SD/hipacc/tar_llvm/llvm-3.8.1.src/projects/libunwind/src/UnwindRegistersRestore.S:270:74:<br>warning: invoking macro GLUE2 argument 1: empty macro arguments are<br>undefined in ISO C90 and ISO C++98 [enabled by default]<br>/mnt/SD/hipacc/tar_llvm/llvm-3.8.1.src/projects/libunwind/src/UnwindRegistersRestore.S:270:74:<br>warning: invoking macro GLUE2 argument 1: empty macro arguments are<br>undefined in ISO C90 and ISO C++98 [enabled by default]<br>/mnt/SD/hipacc/tar_llvm/llvm-3.8.1.src/projects/libunwind/src/UnwindRegistersRestore.S:270:74:<br>warning: invoking macro GLUE2 argument 1: empty macro arguments are<br>undefined in ISO C90 and ISO C++98 [enabled by default]<br>/mnt/SD/hipacc/tar_llvm/llvm-3.8.1.src/projects/libunwind/src/UnwindRegistersRestore.S:<br>Assembler messages:<br>/mnt/SD/hipacc/tar_llvm/llvm-3.8.1.src/projects/libunwind/src/UnwindRegistersRestore.S:285:<br>Error: operand 2 should be an integer register -- `ldp x28,fp,[x0,#0x0E0]'<br>/mnt/SD/hipacc/tar_llvm/llvm-3.8.1.src/projects/libunwind/src/UnwindRegistersRestore.S:286:<br>Error: operand 1 should be an integer register -- `ldr lr,[x0,#0x100]'<br>/mnt/SD/hipacc/tar_llvm/llvm-3.8.1.src/projects/libunwind/src/UnwindRegistersRestore.S:309:<br>Error: operand 1 should be an integer register -- `ret lr'<br>projects/libunwind/src/CMakeFiles/unwind.dir/build.make:182: recipe for<br>target<br>'projects/libunwind/src/CMakeFiles/unwind.dir/UnwindRegistersRestore.S.o'<br>failed<br>make[2]: ***<br>[projects/libunwind/src/CMakeFiles/unwind.dir/UnwindRegistersRestore.S.o]<br>Error 1<br>CMakeFiles/Makefile2:12542: recipe for target<br>'projects/libunwind/src/CMakeFiles/unwind.dir/all' failed<br>make[1]: *** [projects/libunwind/src/CMakeFiles/unwind.dir/all] Error 2<br>Makefile:149: recipe for target 'all' failed<br>make: *** [all] Error 2<br><br>Os: Ubuntu 16.04, gcc/g++ : 4.8<br><br><br>I already installed this same clang version on two PC x86, Ubuntu OS, gcc / g ++ 4.8 without any problems. I can't find any information on internet. I hope you can help me with this<br>problem.<br>Thanks.</div></div></body></html>