<html><head><meta http-equiv="Content-Type" content="text/html charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="" dir="auto"><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">Hi all,</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">I am doing cross-compiling LLVMLinux for arm64 platform with the purpose of generating some *.bc files to analysis. So I followed the procedure as below:</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">1-&gt;<span class="Apple-tab-span" style="white-space:pre">        </span>git clone&nbsp;<a href="git://git.linuxfoundation.org/llvmlinux/kernel.git" class="">git://git.linuxfoundation.org/llvmlinux/kernel.git</a></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">2-&gt;<span class="Apple-tab-span" style="white-space:pre">        </span>downloaded little ¡®m¡¯ makefile and change ARCH, CROSS_COMPILE, CC and HOSTCC</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">3-&gt;<span class="Apple-tab-span" style="white-space:pre">        </span>make memuconfig &amp;&amp; make&nbsp;</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">But something weird happened:</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">¡­</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">2 warnings generated.</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; HOSTCC&nbsp; scripts/dtc/util.o</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; HOSTCC&nbsp; scripts/dtc/dtc-lexer.lex.o</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; HOSTCC&nbsp; scripts/dtc/dtc-parser.tab.o</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; HOSTLD&nbsp; scripts/dtc/dtc</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; HOSTCC&nbsp; scripts/genksyms/genksyms.o</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; HOSTCC&nbsp; scripts/genksyms/parse.tab.o</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; HOSTCC&nbsp; scripts/genksyms/lex.lex.o</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; HOSTLD&nbsp; scripts/genksyms/genksyms</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; CC&nbsp; &nbsp; &nbsp; scripts/mod/empty.o</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/tmp/empty-1a3667.s: Assembler messages:</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/tmp/empty-1a3667.s:28: Error: bad expression</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/tmp/empty-1a3667.s:28: Warning: division by zero</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/tmp/empty-1a3667.s:28: Error: junk at end of line, first unrecognized character is `L'</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/tmp/empty-1a3667.s:29: Error: bad expression</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/tmp/empty-1a3667.s:29: Warning: division by zero</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/tmp/empty-1a3667.s:29: Error: junk at end of line, first unrecognized character is `D'</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/tmp/empty-1a3667.s:30: Error: bad expression</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/tmp/empty-1a3667.s:30: Error: junk at end of line, first unrecognized character is `O¡¯</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">¡­</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div class="">I tried to figure out what was wrong. And for native compiling (HOST=Clang CC=Clang) it goes all right.&nbsp;</div><div class="">So I wonder if it is the dependency problem as you said</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>¡°<span style="background-color: rgb(0, 0, 0);" class=""><font color="#efefef" face="trebuchet ms, arial, helvetica, sans-serif" class=""><span style="font-size: 12px;" class="">Yes, there is still a&nbsp;dependency&nbsp;on parts of the gcc toolchain. Most notably ld, as, and sometimes libgcc.¡±</span></font></span></div><div class=""><br class=""></div><div class="">Any help? I would appreciate it a lot.</div></body></html>