mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Newbie cross compiling with LLVM
@ 2021-10-10 20:56 Matt Andrews
  2021-10-10 22:43 ` Quentin Rameau
  0 siblings, 1 reply; 14+ messages in thread
From: Matt Andrews @ 2021-10-10 20:56 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

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?

[-- Attachment #2: Type: text/html, Size: 4053 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-10-13  5:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-10 20:56 [musl] Newbie cross compiling with LLVM Matt Andrews
2021-10-10 22:43 ` Quentin Rameau
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

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).