mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Zhu Chunlin <simon_0214@hotmail.com>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>,
	"nullplan@gmx.net" <nullplan@gmx.net>
Subject: 回复: [musl] Failed to build musl 1.2.2 by using clang cross compiler
Date: Mon, 25 Oct 2021 05:03:40 +0000	[thread overview]
Message-ID: <SY4P282MB35176270661544166DDBE1DEE1839@SY4P282MB3517.AUSP282.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20211024142220.GC2191@voyager>


[-- Attachment #1.1: Type: text/plain, Size: 1146 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 3148 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 44398 bytes --]

  reply	other threads:[~2021-10-25  5:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-24  3:34 Zhu Chunlin
2021-10-24 14:22 ` Markus Wichmann
2021-10-25  5:03   ` Zhu Chunlin [this message]
2021-10-25  8:44     ` Jeffrey Walton
2021-10-25 13:26       ` 回复: " Zhu Chunlin
2021-10-30  3:46         ` Chunlin Zhu
2021-10-30  4:25           ` Jeffrey Walton
2021-10-30 10:53             ` Chunlin Zhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SY4P282MB35176270661544166DDBE1DEE1839@SY4P282MB3517.AUSP282.PROD.OUTLOOK.COM \
    --to=simon_0214@hotmail.com \
    --cc=musl@lists.openwall.com \
    --cc=nullplan@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).