<div dir="ltr">Hi <div><br></div><div>Now I am using clang and llvm to do cross compiling. My target architecture is arm and the host is x86-64.  I am trying to compile coreutils and SPEC2006(Anyone who ever has the same experience, please tell me. Really need your help)</div><div><br></div><div>At the same time, I hope to generate the LLVM IR, which I can write PASS to extract some information. I would also need the dwarf debug information. </div><div><br></div><div>I briefly describe my requirements above. I use the -save-temps option to save the LLVM IR(please tell me whether this is the best solution). I try to use -target arm-none-eabi to specify the architecture. However, when I was compiling the coreutils, I come across such exceptions.</div><div><br></div><div><div>CCLD     src/chroot</div><div>/usr/bin/ld.gold: fatal error: --plugin-opt requires --plugin.</div><div>clang-7: error: ld.lld command failed with exit code 1 (use -v to see invocation)</div><div>make[2]: *** [src/chroot] Error 1</div><div>make[2]: Leaving directory `/home/linux/share/coreutils-8.28-old'</div><div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory `/home/linux/share/coreutils-8.28-old'</div><div>make: *** [all] Error 2</div></div><div><br></div><div>I haven't try SPEC2006 since the configuration is not so familiar for me. It would be great if anyone can give me some references. Or you have the same experiences, please tell me your configuration and setup. Thank everyone so much~~</div><div><br></div><div>Regards</div><div>Muhui</div></div>