mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Failed to build musl 1.2.2 by using clang cross compiler
@ 2021-10-24  3:34 Zhu Chunlin
  2021-10-24 14:22 ` Markus Wichmann
  0 siblings, 1 reply; 8+ messages in thread
From: Zhu Chunlin @ 2021-10-24  3:34 UTC (permalink / raw)
  To: musl

[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-30 10:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-24  3:34 [musl] Failed to build musl 1.2.2 by using clang cross compiler Zhu Chunlin
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

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).