5 ms·
Is Rust (llvm?) supported on all platforms Linux targets?
by malkia 2y ago
Is Rust (llvm?) supported on all platforms Linux targets?
- preisschild 2y agoNot yet, afaik the rust4linux devs thus want to create a rust frontend for GCC (gccrs)
- estebank 2y agogccrs (and gcc-codegen which is a project with the same objective but only implementing the backend) is an independent project to Rust4Linux (but they talk to each other).
- preisschild 2y agoAh ok i thought they were the main contributers and users.
- masklinn 2y agoNo. What relevance does that have tho?
- rerdavies 2y agoThe relevance would be that Rust coreutils cannot be merged into Linux mainline. Obviously.
- masklinn 2y agoCoreutils are not part of the linux project in the first place, and uutils does not aim to be merged into GNU coreutils.
- mustache_kimono 2y ago>> The relevance would be that Rust coreutils cannot be merged into Linux mainline. Obviously. > Coreutils are not part of the linux project in the first place, and uutils does not aim to be merged into GNU coreutils. I think he having fun with you bro.
- mustache_kimono 2y ago> Is Rust (llvm?) supported on all platforms Linux targets? AFAIK, no. Linux chooses to support platforms from which we haven't seen new releases in decades, like DEC Alpha. Although in recent years, Linux has dumped support for many older platforms including IA-64. But my guess is GNU coreutils also doesn't support all Linux targets. I mean this in two ways -- 1) AFAIK coreutils does not expressly support each and every Linux platform, and 2) whether something builds is not the measure of whether there is platform support. That is -- Linux may support some weirdo MIPs variant and 68K (which has Tier 3 Rust support), but what's your guess that your GNU coreutils support, even busybox support, for these platforms is top tier? You may be guaranteed that your weirdo arch has a C compiler, but what's the likelihood all the GNU tests passed on this arch? That each and every utility even runs on this arch?
- estebank 2y agoI recall packages on Debian considered available for some obscure platforms that would segfault immediately when executed. Platform support goes beyond "does a compiler happen to produce a binary".
- yjftsjthsd-h 2y agoI can't find an official list of supported targets, but https://github.com/coreutils/coreutils/blob/master/README-install https://github.com/coreutils/coreutils/blob/master/README-in... contains notes on compiling for IRIX, HPUX, AIX, and OSF/1. So no, I would bet that it very much does run anywhere Linux runs, and a lot of places it doesn't.
- mustache_kimono 2y ago> contains notes on compiling for IRIX, HPUX, AIX, and OSF/1. Again, how well tested do you imagine the OSF/1 target is? Do you imagine each merge pops off a CI test for that platform? My guess is -- it's been a long time since anyone connected with the GNU coreutils project built for that platform. See the reply from estebank to me, below: > Platform support goes beyond "does a compiler happen to produce a binary".