Openwrt 24.10: rust/host does not build on Ubuntu 22.04

Shankar Unni shankar.unni at gmail.com
Tue Feb 11 12:23:06 PST 2025


Thanks for that pointer.  Yes, that's basically it.

For the moment, I've stepped around it by selecting
CONFIG_GCC_USE_VERSION_12, which effectively makes it the same
gcc/libstdc++ version as Ubuntu 22, so that's the workaround for
anyone else who's in this situation.   I'll follow this ticket and see
how it gets tackled.

On Mon, Feb 10, 2025 at 11:36 PM Luca Barbato <lu_zero at luminem.org> wrote:
>
> On 11/02/25 00:23, Shankar Unni wrote:
> > Sorry, ignore my last host-compile.txt (that was from one of my flailing
> > fix attempts).
> The main problem is that is hard for rustc to figure out the host from
> the target if they have the same triple. (see
> https://github.com/rust-lang/cargo/issues/9453)
>
> If you __really__ need to use glibc you have to have either
> - have a custom target spec (see rustc +nightly -Z unstable-options
> --print target-spec-json)
> - build everything in a chroot with the correct host glibc that would be
> compatible for both host and target binaries
>
> lu



More information about the openwrt-devel mailing list