GNU bug report logs - #78854
Cross-Compiling: ld.lld - "clang_rt.crtbegin.o is incompatible with elf32-littlearm"

Previous Next

Package: libtool;

Reported by: NR <nroycea+gnu <at> gmail.com>

Date: Sat, 21 Jun 2025 07:27:07 UTC

Severity: normal

Done: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>

Full log


View this message in rfc822 format

From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: NR <nroycea+gnu <at> gmail.com>, 78854 <at> debbugs.gnu.org
Subject: bug#78854: Cross-Compiling: ld.lld - "clang_rt.crtbegin.o is incompatible with elf32-littlearm"
Date: Wed, 2 Jul 2025 21:34:27 +0300
[Message part 1 (text/plain, inline)]
On 21/06/2025 02:27, NR wrote:
> For some reason, libtool isn't specifying the target for ld.lld:
> ld.lld: error: /<pathTo>/toolchain/lib/clang/21/lib/x86_64-unknown-linux-gnu/clang_rt.crtbegin.o
> is incompatible with elf32-littlearm
> 
> Note how `--target=armv6-pc-linux-gnu --sysroot=<...>` was set with
> the first clang command, but only `--sysroot` exists with the
> subsequent clang command for linking.

Thank you for your bug report! I think this is an easy fix to have the
"--target" flag passed through libtool. Would you test the attached
diff? It is based on the development branch, so it may not apply.

-- 
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

[handle-target-architecture-flag.diff (text/x-patch, attachment)]
[OpenPGP_0x6570EA01146F7354.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.