mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Quentin Rameau <quinq@fifth.space>
To: musl@lists.openwall.com
Subject: Re: [musl] Newbie cross compiling with LLVM
Date: Mon, 11 Oct 2021 00:43:46 +0200	[thread overview]
Message-ID: <20211011004346.13768de6@tpx.quinq.eu.org> (raw)
In-Reply-To: <CAD0C5PA06wQ3zPwFcWcf5AS2hFw9bpYtVd9Y36MMLUp9_KhMNw@mail.gmail.com>

> Hello everyone,

Hi Matt,

> 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?

Have try with setting passing AR=clang-ar?

  reply	other threads:[~2021-10-10 22:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-10 20:56 Matt Andrews
2021-10-10 22:43 ` Quentin Rameau [this message]
2021-10-10 23:21   ` Matt Andrews
2021-10-11 17:20     ` Khem Raj
2021-10-11 17:40     ` Jeffrey Walton
2021-10-11 23:55       ` Matt Andrews
2021-10-12  0:24         ` Jeffrey Walton
2021-10-12  4:53           ` Nagakamira
2021-10-12  4:57             ` Matt Andrews
2021-10-12  5:00               ` Nagakamira
2021-10-12  5:55                 ` Matt Andrews
2021-10-12  6:09                   ` Nagakamira
2021-10-13  2:34                     ` Matt Andrews
2021-10-13  5:35                       ` Nagakamira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211011004346.13768de6@tpx.quinq.eu.org \
    --to=quinq@fifth.space \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).