Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <SY4P282MB35176270661544166DDBE1DEE1839@SY4P282MB3517.AUSP282.PROD.OUTLOOK.COM>
Date: Mon, 25 Oct 2021 05:03:40 +0000
From: Zhu Chunlin <simon_0214@...mail.com>
To: "musl@...ts.openwall.com" <musl@...ts.openwall.com>, "nullplan@....net"
	<nullplan@....net>
Subject:
 回复: Failed to build musl 1.2.2 by using clang cross compiler

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 <nullplan@....net>
发送时间: 2021年10月24日 22:22
收件人: musl@...ts.openwall.com <musl@...ts.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

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.