<div dir="ltr"><div><div>Sry, the previous one is not a plain text mail.</div><div><br></div><div>Hi all,</div><div>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>1-&gt;<span class="" style="white-space:pre">        </span>git clone git://<a href="http://git.linuxfoundation.org/llvmlinux/kernel.git">git.linuxfoundation.org/llvmlinux/kernel.git</a></div><div>2-&gt;<span class="" style="white-space:pre">        </span>downloaded little ‘m’ makefile and change ARCH, CROSS_COMPILE, CC and HOSTCC</div><div>3-&gt;<span class="" style="white-space:pre">        </span>make memuconfig &amp;&amp; make </div><div><br></div><div>But something weird happened:</div><div><br></div><div>…</div><div><br></div><div>2 warnings generated.</div><div>  HOSTCC  scripts/dtc/util.o</div><div>  HOSTCC  scripts/dtc/dtc-lexer.lex.o</div><div>  HOSTCC  scripts/dtc/dtc-parser.tab.o</div><div>  HOSTLD  scripts/dtc/dtc</div><div>  HOSTCC  scripts/genksyms/genksyms.o</div><div>  HOSTCC  scripts/genksyms/parse.tab.o</div><div>  HOSTCC  scripts/genksyms/lex.lex.o</div><div>  HOSTLD  scripts/genksyms/genksyms</div><div>  CC      scripts/mod/empty.o</div><div>/tmp/empty-1a3667.s: Assembler messages:</div><div>/tmp/empty-1a3667.s:28: Error: bad expression</div><div>/tmp/empty-1a3667.s:28: Warning: division by zero</div><div>/tmp/empty-1a3667.s:28: Error: junk at end of line, first unrecognized character is `L&#39;</div><div>/tmp/empty-1a3667.s:29: Error: bad expression</div><div>/tmp/empty-1a3667.s:29: Warning: division by zero</div><div>/tmp/empty-1a3667.s:29: Error: junk at end of line, first unrecognized character is `D&#39;</div><div>/tmp/empty-1a3667.s:30: Error: bad expression</div><div>/tmp/empty-1a3667.s:30: Error: junk at end of line, first unrecognized character is `O’</div><div>…</div><div><br></div><div>I tried to figure out what was wrong. And for native compiling (HOST=Clang CC=Clang) it goes all right. </div><div>So I wonder if it is the dependency problem as you said</div><div><span class="" style="white-space:pre">        </span>“Yes, there is still a dependency on parts of the gcc toolchain. Most notably ld, as, and sometimes libgcc.”</div><div><br></div><div>Any help? I would appreciate it a lot.</div></div></div>