Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
Posted Mar 1, 2021 22:14 UTC (Mon) by rweikusat2 (subscriber, #117920)Parent article: Woodruff: Weird architectures weren't supported to begin with
NB: This is not a statement on the Rust programming language which has some interesting concept in it and I'd welcome an opportunity to learn and use it for something.
Posted Mar 1, 2021 22:23 UTC (Mon)
by mathstuf (subscriber, #69389)
[Link] (5 responses)
Posted Mar 2, 2021 17:04 UTC (Tue)
by rweikusat2 (subscriber, #117920)
[Link] (4 responses)
ARM/ Yocto was abit more complicated: Getting a suitable LLVM built there required adding some libraries, one of the rust modules lacked a library reference for all of rust to be linkable and finally, some disagreement between autoconf and rust what precisely constitues a valid "target triplet" for this architecture which could be solved by making a pretty minimal change to the rust build system code (written in Rust). But becoming familiar enough with all of the parts involved here in order to be able to work out what precisely caused the build failures and learning enough Rust to be able to understand and change code written in Rust was a bit of a steep learning curve.
Posted Mar 2, 2021 17:50 UTC (Tue)
by mathstuf (subscriber, #69389)
[Link] (3 responses)
For the Yocto bit, there is a TOML file which can describe the target rather than patching the compiler, but agreeing with autoconf does sound like something might need to be tweaked there. I think there are those who are doing embedded development with Rust; asking on those channels for guidance would likely be how I would have handled it. But, I haven't needed to do anything like that, so I don't have much experience to offer here.
Posted Mar 2, 2021 18:13 UTC (Tue)
by rweikusat2 (subscriber, #117920)
[Link] (1 responses)
Ubuntu has a rust package. Please ask the maintainer why he doesn't just tell its users to download something from the internet instead.
Assumptions hard-code in the build system can't be "overridden" via configuration files. That's - BTW - the very meaning of "hard-coded".
Posted Mar 2, 2021 18:28 UTC (Tue)
by mathstuf (subscriber, #69389)
[Link]
> Assumptions hard-code in the build system can't be "overridden" via configuration files. That's - BTW - the very meaning of "hard-coded".
Like I said, I've not dealt with embedded details, but I have seen that new targets can be described via TOML files (up to LLVM configurability). But yes, if you're fighting internal logic, you're stuck with patching.
Posted Mar 7, 2021 23:01 UTC (Sun)
by nix (subscriber, #2304)
[Link]
This has improved greatly of late: since about LLVM 10, a separately-compiled upstream LLVM works well enough. (IIRC, there are hardly any patches left in Rust's not-a-fork of LLVM any more.)
Posted Mar 1, 2021 22:38 UTC (Mon)
by roc (subscriber, #30627)
[Link] (3 responses)
Posted Mar 2, 2021 2:46 UTC (Tue)
by gus3 (guest, #61103)
[Link] (2 responses)
Posted Mar 2, 2021 12:39 UTC (Tue)
by amacater (subscriber, #790)
[Link]
Posted Mar 8, 2021 13:35 UTC (Mon)
by gspr (subscriber, #91542)
[Link]
Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
Woodruff: Weird architectures weren't supported to begin with
