Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 25 Oct 2021 05:03:40 +0000
From: Zhu Chunlin <>
To: "" <>, ""
 回复: Failed to build musl 1.2.2 by using clang cross compiler

Hello Markus,


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

Best Regards,
发件人: Markus Wichmann <>
发送时间: 2021年10月24日 22:22
收件人: <>
主题: 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


Content of type "text/html" skipped

Download attachment "image.png" of type "image/png" (44398 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.