From: Zhu Chunlin <simon_0214@hotmail.com>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: [musl] Failed to build musl 1.2.2 by using clang cross compiler
Date: Sun, 24 Oct 2021 03:34:56 +0000 [thread overview]
Message-ID: <SY4P282MB3517741697DA9347591A115CE1829@SY4P282MB3517.AUSP282.PROD.OUTLOOK.COM> (raw)
[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]
Hello,
I am trying to use Clang cross compiler to build musl libc 1.2.2, as following:
./configure CC=clang --target=aarch64
make
but it report the below error:
clang -std=c99 -nostdinc -ffreestanding -frounding-math -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I./arch/aarch64 -I./arch/generic -Iobj/src/internal -I./src/include -I./src/internal -Iobj/include -I./include -Os -pipe -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -w -Wno-pointer-to-int-cast -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -Werror=int-conversion -Werror=incompatible-pointer-types -Qunused-arguments -Waddress -Warray-bounds -Wchar-subscripts -Wduplicate-decl-specifier -Winit-self -Wreturn-type -Wsequence-point -Wstrict-aliasing -Wunused-function -Wunused-label -Wunused-variable -fPIC -fno-stack-protector -DCRT -c -o obj/crt/Scrt1.o crt/Scrt1.c
<inline asm>:5:11: error: unknown token in expression
mov x29, #0
^
<inline asm>:6:11: error: unknown token in expression
mov x30, #0
^
<inline asm>:7:2: error: unknown use of instruction mnemonic without a size suffix
mov x0, sp
^
<inline asm>:10:2: error: invalid instruction mnemonic 'adrp'
adrp x1, _DYNAMIC
Note: It's OK when I don't specify the --target to aarch64
./configure CC=clang
make
Thanks,
Simon
[-- Attachment #2: Type: text/html, Size: 4851 bytes --]
next reply other threads:[~2021-10-24 3:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-24 3:34 Zhu Chunlin [this message]
2021-10-24 14:22 ` Markus Wichmann
2021-10-25 5:03 ` 回复: " Zhu Chunlin
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=SY4P282MB3517741697DA9347591A115CE1829@SY4P282MB3517.AUSP282.PROD.OUTLOOK.COM \
--to=simon_0214@hotmail.com \
--cc=musl@lists.openwall.com \
/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).