Hello Markus, Thanks! AR=/usr/local/bin/llvm-ar \ RANLIB=/usr/local/bin/llvm-ranlib \ CC=/usr/local/bin/clang \ CFLAGS="-fuse-ld=/usr/local/bin/ld.lld --rtlib=compiler-rt --target=aarch64" \ LIBCC=-lcompiler_rt \ ./configure --target=aarch64 \ && make But when I use the above config, it reports the below error, but I don't understand why there are gcc error, I have explict specify to use clang and ld.lld [cid:316ac50e-0bf9-49dc-a4d3-0c469e9d2248] Best Regards, Simon ________________________________ 发件人: Markus Wichmann 发送时间: 2021年10月24日 22:22 收件人: musl@lists.openwall.com 主题: Re: [musl] Failed to build musl 1.2.2 by using clang cross compiler On Sun, Oct 24, 2021 at 03:34:56AM +0000, Zhu Chunlin wrote: > ./configure CC=clang --target=aarch64 I believe you want ./configure CC="clang --target=aarch64". You only specified the target for the configure script but not to clang itself. That's why the --target is absent from the command line that make generated. And so it fails the first time it sees an actual assembly file. Ciao, Markus