From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLACK autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3222 invoked from network); 29 Jan 2021 20:04:34 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 29 Jan 2021 20:04:34 -0000 Received: (qmail 26576 invoked by uid 550); 29 Jan 2021 20:04:29 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 26558 invoked from network); 29 Jan 2021 20:04:28 -0000 Date: Fri, 29 Jan 2021 21:04:16 +0100 From: Szabolcs Nagy To: Jiahao XU Cc: "musl@lists.openwall.com" Message-ID: <20210129200416.GA2447252@port70.net> Mail-Followup-To: Jiahao XU , "musl@lists.openwall.com" References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Subject: Re: [musl] =?utf-8?B?Q2Fu4oCZ?= =?utf-8?Q?t?= build musl with lto=thin * Jiahao XU [2021-01-29 12:19:42 +0000]: > musl-1.2.2 compilation with clang-11 failed to build libc.so at the final= linking stage: > ld.lld: error: undefined hidden symbol: __dls2 > >>> referenced by ld-temp.o > >>> lto.tmp:(_dlstart_c) > >>> did you mean: __dls3 > >>> defined in: lto.tmp looks like a clang bug if -flto changes behaviour, doesn't it? >=20 > I am using CFLAGS=3D=E2=80=98-march=3Dnative -mtune=3Dnative -Oz -flto -f= merge-all-constants -fomit-frame-pointer=E2=80=99 and LDFLAGS=3D=E2=80=98-f= lto -fuse-ld=3Dlld -Wl,=E2=80=94plugin-opt=3DO3,-O3,=E2=80=94icf=3Dsafe=E2= =80=99. > No configure option is supplied. >=20 > Get Outlook for iOS