Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH8yC8myzuc=SkEyJ6xFehC2hG6EzepgVE3Q7QVYW7YJn0+=Gw@mail.gmail.com>
Date: Mon, 25 Oct 2021 04:44:24 -0400
From: Jeffrey Walton <noloader@...il.com>
To: musl@...ts.openwall.com
Cc: "nullplan@....net" <nullplan@....net>
Subject: Re: Failed to build musl 1.2.2 by using clang cross compiler

On Mon, Oct 25, 2021 at 1:04 AM Zhu Chunlin <simon_0214@...mail.com> wrote:

> 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
>
>
-fuse-ld=/usr/local/bin/ld.lld is a LDFLAG. Since you are using GCC to
drive link, set:

    LDFLAGS = "-Wl,-fuse-ld=/usr/local/bin/ld.lld "
--rtlib=compiler-rt and --target=aarch64may need to go into LDFLAGS, too.

--noexecstack is a ASFLAG. Use:

    ASFLAGS = "-Wa,--noexecstack"

Jeff

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.