News for hackers. Stuff that matters.
Re:Rustc_codegen_GCC can now bootstrap rustc by jcelerier on Friday April 01, 2022 @12:54PM (#30880409)
I don't understand why anyone would use ld or gold in 2022. Every distro has shipped lld for years and it links in less than seconds. It's a default to not break compatibility, not because it's good ; makes as much sense to use as ed(1). For reference on a 8C/16T CPU from 2016 an llvm initial build is ~10-12 minutes here.. not instant but not the end of the world either.
Re:Rustc_codegen_GCC can now bootstrap rustc by JoshTriplett on Friday April 01, 2022 @02:28PM (#30881661)
lld is not 100% compatible with ld; switching to it usually works, but occasionally breaks the build of some software. That's especially true for complex cases involving linker scripts and unusual binary layouts with various sections. (Those cases also tend to be hard to debug.)
Re:Rustc_codegen_GCC can now bootstrap rustc by wyldfire on Friday April 01, 2022 @04:07PM (#30882733)
But it's really well tested for building llvm and clang, so that suits the use case this thread is focused on.
Re:Rustc_codegen_GCC can now bootstrap rustc by xxpor on Friday April 01, 2022 @01:10PM (#30880610)
When LLVM doesn't support your platform :(

Granted, that means no Rust support today so probably not relevent to most people reading this thread, but yeah I'm still salty :|

Re:Rustc_codegen_GCC can now bootstrap rustc by jcelerier on Friday April 01, 2022 @01:29PM (#30880826)
... which platform is that ?
Re:Rustc_codegen_GCC can now bootstrap rustc by bregma on Saturday April 02, 2022 @07:01AM (#30887275)
I for one maintain the official toolchains for QNX. I've been trying to port LLVM, and it's not possible to bootstrap LLVM using LLVM because it hasn't been ported yet.
Re:Rustc_codegen_GCC can now bootstrap rustc by jcelerier on Saturday April 02, 2022 @08:09AM (#30887614)
> it's not possible to bootstrap LLVM using LLVM

I don't understand, LLVM would be on the host machine under some Linux or Windows on x86 where the development happens, not on the QNX hardware anyways, no ? Unless for some reason one would want to port Mesa to have LLVMPIPE or something like this, but I have a hard time imagining the use case.

Re:Rustc_codegen_GCC can now bootstrap rustc by bregma on Saturday April 02, 2022 @01:40PM (#30890067)
What QNX hardware are you thinking of? The self-hosted x86_64 PC being used to develop on?
Re:Rustc_codegen_GCC can now bootstrap rustc by jcelerier on Saturday April 02, 2022 @04:38PM (#30891472)
My experience with QNX is with it used for automotive stuff, so everything was cross-compiled from normal Linux systems. The little bit of work I did with it did really not make me think that this was an useable workstation OS (although the speed was extremely appreciable)
Re:Rustc_codegen_GCC can now bootstrap rustc by steveklabnik on Friday April 01, 2022 @02:29PM (#30881673)
lld is good, but you answered why in your own comment: it's not always compatible, and so when you need ld, you need ld.