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


I am trying to use Clang cross compiler to build musl libc 1.2.2, as following:

./configure CC=clang --target=aarch64

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



Content of type "text/html" skipped

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.