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

Luca Barbato lu_zero at luminem.org
Mon Feb 10 23:36:40 PST 2025


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