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=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9608 invoked from network); 10 Oct 2021 20:56:56 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 10 Oct 2021 20:56:56 -0000 Received: (qmail 24527 invoked by uid 550); 10 Oct 2021 20:56:52 -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 24496 invoked from network); 10 Oct 2021 20:56:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=wnlqmebqq8Wj2DnSFDf9HDB2k37aEteBFvIyE43zT1g=; b=WNTM2rvtjMmcIWkN+d1cOEZ+0hcpY/47oAYeUt7mwLbMGf2rbGROFYCd70ddv8er3l hhc79HSENMWULJO6La1EMAOUlmad425G0qr43VqnN0xikNW/n2guMBI7tgSWQqXDvxej DN4379I0JPnnnXCv3qDni9knclPWP5bccTBkOZLkmo9ZPlLPmxfs4CqUzFM+VUZKmjBd z9qn723j6GIt30HNfu+kcLrl441lNCRCz2ofPPdWAGv4WHtrZCEMfgEFNS4+6DhxGZVy TmM3qJsVnJOz1QY/ioQFQkwjk5IvdBWjWp784XB7FT2k/A46buy0MS2B7byZMox25Lyp f5vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wnlqmebqq8Wj2DnSFDf9HDB2k37aEteBFvIyE43zT1g=; b=HPn4W26rbuJH2DKxUNYj5iG017cD0cVO0waE8n6+Ki0Fr4o2VR/QdBPc8kGhSWQLvK 2Alw6R90M8XbkKuGCOfBQP+T4Ob5UQL58Lf08asUvMxzhKuwxP4t+xzhwro/HbDbe4C6 M43LUhpfUPb62wvBWxHH8q3NUKJAr5WNydPwnYUSy8VKn5sK0rT/GUNL1xSKwhu+zBEb lIs8xHJGPsf1qYR9gDD2mR05+V5Kq2hwBw7WIfl6VAUlQFguwEYo15v5Bxwawt4MW1Gf vcVaptrf6RwSU6tnt+xujaOamIiMf7afKPu2sCv7qkgaY8jgOP0u0mwpvDkJV56zJ5I1 H2/A== X-Gm-Message-State: AOAM531L5B14eb0+fHnYCl/iJ/Fa1EoT0lf+CN2+X49Tmq6pDeYVUlIi b6++4qNMaAmPxB6ihFCcEF9v3nQgD9lkDV+WOcpRcMEDoXM= X-Google-Smtp-Source: ABdhPJz+z3KGo+r1DBql+2PZ/TpclPelpY/Im/dNzE/Yq26cVuI9mV3oO+sAAsqjpMEuD464pF/b3sdwzzSkMEecNhM= X-Received: by 2002:a05:6402:2682:: with SMTP id w2mr35227618edd.185.1633899400578; Sun, 10 Oct 2021 13:56:40 -0700 (PDT) MIME-Version: 1.0 From: Matt Andrews Date: Mon, 11 Oct 2021 07:56:29 +1100 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="0000000000005ec89805ce05d937" Subject: [musl] Newbie cross compiling with LLVM --0000000000005ec89805ce05d937 Content-Type: text/plain; charset="UTF-8" Hello everyone, I'm trying to cross compile from Ubuntu 20.04 to armv7a-linux-musleabihf using LLVM. Configure looks like this ./configure \ --prefix=$VECX/usr \ --syslibdir=$VECX/lib \ --target=armv7a-linux-eabihf \ CC=/usr/lib/llvm-13/bin/clang \ CFLAGS="--target=armv7a-linux-eabihf -mcpu=cortex-a8" Then make && make install The compilation fails with the following make: armv7a-linux-eabihf-ar: Command not found make: *** [Makefile:167: lib/libc.a] Error 127 It's looking for an archiver from a cross compiler toolchain, but should be using llvm-ar. Which configure options should I use to get LLVM to cross compile successfully? --0000000000005ec89805ce05d937 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello everyone,

I'm tryi= ng to cross compile from Ubuntu 20.04 to armv7a-linux-musleabihf using LLVM= . Configure looks like this

./configure \
--prefix=3D$VECX/usr \
<= div> = --syslibdir=3D$VECX/lib \
= --target=3Darmv7a-linux-eabihf \
= CC=3D/usr/lib/llvm-13/bin/clang \
= CFLAGS=3D"--target=3Darmv7a-linux-eabihf -mcpu=3Dcortex-a8"

Then

mak= e && make install

<= /span>
The compilation fails with the following

make: ar= mv7a-linux-eabihf-ar: Command not found
make: *** [Makefile:167: lib= /libc.a] Error 127
<= span style=3D"background-color:rgb(255,255,255)">
It's looking for an archiver from a cross compiler toolc= hain, but should be using llvm-ar.

Which configure options should I use to get = LLVM to cross compile successfully?
--0000000000005ec89805ce05d937--