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=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2730 invoked from network); 20 Mar 2023 04:05:46 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 20 Mar 2023 04:05:46 -0000 Received: (qmail 13478 invoked by uid 550); 20 Mar 2023 04:05:43 -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 13440 invoked from network); 20 Mar 2023 04:05:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679285130; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=PDkebsgE6k6SzPo5zJs4XkJHJBKNW7DOCm0HF94+tMw=; b=LoKKvmDAWTD/P+t/LzO0NxrjO22kQuxLaJ7HyoSxkYqyNWHVA89Gklb5LV/csD6rx2 iogLwE+XPtG1kWbIbPI5gdruFlCDZnCzaTHDYwCbcmJy5z/se3meJpq7cesR/j2kpY0s ALW8rFP8h9m+3YMV9ba4A7ytY/5cBH+OjlwJh+dCxqn1Tx1hBDdlrteI4PkGL08+uSsP ozZCo66TasyG/9jCuDvPyLgdD4CMk7ftjBigfhJMLtZyIYXFkfGCP6cBg4H0op9h7NsF YngBJy+IMBTXW00D2oak2u1HEOyHDgs2ivYVVyM6YG6SVmpussHPx8k6AVCh4dw0UuAF 5yRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679285130; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PDkebsgE6k6SzPo5zJs4XkJHJBKNW7DOCm0HF94+tMw=; b=sDQIecUAQpl8zOOrWIoMURf92EpOgEQIp4SFXHRTn7azAmdXvTKapHcxsW+y5m0jlU thjOZxykQLdN99x9C+r1l8Z+4MEGBjWcyo4QJSIjAYqO6qXctPtfxuWlzOrGJZ4n/022 ELuv6HcPkjQ2rA/qNJoGCO6FBsB6G4PXaNUhZq8qruDCBrkZou+IgYXjgVqEUpR0jp/w SNALJmR2ayZ4kOwAEeptI/ht+FjAOUSLWSlGAm++Jy3L5YV4cCoTHX1lpCj0NcxxEv8x W9nW9jdRnvHLr46Cpstgoc3/ZIlNqjvFFUB7qYlUaPwCdRFtzWYLvF21C/oRvxYoTaj5 gnWg== X-Gm-Message-State: AO0yUKVr9eKNM8JBWRC/D1x/Cq+4w4NxhFf88vTRH3zjqRXmyrx2yJOW imXK6ADK89rMTxcwViUPvRiklEQMYEm2J40f/E9RuZBH6fw= X-Google-Smtp-Source: AK7set86aJOAidXI0jMYsb7f+adiPvvn6jwSVW59cpoYx0DrZv4RfSI0I4TvCQACXbOkGCSgmF8G5/kRU/Is8jQLxVg= X-Received: by 2002:a05:6830:10d8:b0:69d:4900:69fa with SMTP id z24-20020a05683010d800b0069d490069famr2095285oto.2.1679285129896; Sun, 19 Mar 2023 21:05:29 -0700 (PDT) MIME-Version: 1.0 References: <58d9cdc5-db60-be97-ebf4-2ad43029b8bf@landley.net> In-Reply-To: <58d9cdc5-db60-be97-ebf4-2ad43029b8bf@landley.net> From: Jeffrey Walton Date: Mon, 20 Mar 2023 00:05:07 -0400 Message-ID: To: musl@lists.openwall.com Cc: Rich Felker Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] mcm native compile and llvm. On Sun, Mar 19, 2023 at 8:32=E2=80=AFPM Rob Landley wrote= : > > 1) In case you missed the #musl irc backscroll, building current mcm tip = of tree > works but building native compilers with the results fails unless you add > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80196#c13 to patches/gcc-1= 1.2.0 > list, which is the exact same fix they applied upstream: > > https://gcc.gnu.org/git/gitweb.cgi?p=3Dgcc.git;h=3D4fde88e5dd152fe866a97b= 12e0f8229970d15cb3 > > So it's basically a backport. Attached is the one I used, which Worked Fo= r Me. > > (P.S. Apparently gcc 11.2.0 build breaks configuring libstdc++ on a machi= ne that > hasn't got floating point support, so even the _cross_ armv7r toolchain d= oesn't > build anymore. Possibly I need to beat soft float out of it in the config > somewhere? Oh well...) > > 2) I have an old blog entry: https://landley.net/notes-2021.html#28-07-20= 21 > > Where I was building clang/llvm compilers, which resulted in this patch a= gainst > musl (ported to current git): > > diff --git a/configure b/configure > index 853bf05e..61471d61 100755 > --- a/configure > +++ b/configure > @@ -321,8 +321,8 @@ printf "%s\n" "$target" > # > case "$target" in > # Catch these early to simplify matching for 32-bit archs > -arm*) ARCH=3Darm ;; > -aarch64*) ARCH=3Daarch64 ;; > +thumb*|arm*) ARCH=3Darm ;; > +arm64*|aarch64*) ARCH=3Daarch64 ;; > i?86-nt32*) ARCH=3Dnt32 ;; > i?86*) ARCH=3Di386 ;; > x86_64-x32*|x32*|x86_64*x32) ARCH=3Dx32 ;; > @@ -337,7 +337,7 @@ powerpc64*|ppc64*) ARCH=3Dpowerpc64 ;; > powerpc*|ppc*) ARCH=3Dpowerpc ;; > riscv64*) ARCH=3Driscv64 ;; > sh[1-9bel-]*|sh|superh*) ARCH=3Dsh ;; > -s390x*) ARCH=3Ds390x ;; > +s390x*|systemz*) ARCH=3Ds390x ;; > unknown) fail "$0: unable to detect target arch; try $0 --target=3D..." = ;; > *) fail "$0: unknown or unsupported target \"$target\"" ;; > esac > > Because llvm uses different tuple names from the gnu/dammit stuff and it = might > be nice to support both? (Is anybody else out there building musl clang > toolchains? I fished a hexagon build out of qemu's test infrastructure, a= nd I > got pointed at google fuchsia doing x86 and arm, but that's 3 architectur= es > total and the hexagon build broke when I pulled a newer llvm...) Maybe -arm*) ARCH=3Darm ;; -aarch64*) ARCH=3Daarch64 ;; +arm64*|aarch64*) ARCH=3Daarch64 ;; +thumb*|arm*) ARCH=3Darm ;; To ensure 'arm64' does not match 'arm*'. Jeff