I think I'm going to upgrade the book to rustc-1.32.0 this week.
For people who don't follow -book, this has been as much pain as
with some previous versions, and I need to do a lot more testing and
measuring before I say that it seem ok (and at the moment I'm
running it out of /opt/new). So, why am I mentioning it at this
stage ?

Two reasons:

1. On some people's machines, system LLVM is definitely not good
enough.  The machine where I've now installed it in /opt/new is such
a machine.  I'm now using the shipped LLVM.  For firefox, clang is
still preferred, but for librsvg, seamonkey and thunderbird I guess
that might make a difference to what people choose to build in the
future.

Along the way, due to a fubar in config.toml I identified that the
shipped LLVM thinks it is LLVM-8 (i.e. a git version).

2. I decided that for my current build I did not want to waste space
and time installing the docs.  This does make the build smaller, and
presumably less slow.  So, I'm thinking about making that the
default in the book - rustaceans will no doubt want to read all
those wonderful docs, but then the books only-X86 build is already
inadequate for creating cargo files.  Does anyone here actually use
the docs (rather than the man-pages) ?

I've also given up trying thin-lto in rust : it needs the lld
linker, which is a separate LLVM download analagous to clang, but
more to the point it seems to need *static* toolchain libraries.
I'm sure that some of you keep these lying around, but for most of
them I'm anal enough to want to know which packages or testsuites
use them.  Specifically, it failed to find -ldl -lrt -lpthread
-lgcc_s -lc -lm -lutil and telling it to use -L /usrlib did not
help.

Well DUH, of course it didn't help.  But finding out if thin-lto
would speed up the build, at the cost of a non-reproducible build,
will need several versions of the build using different numbers of
codegen units, and then builds of the desired package which uses
rust (and firefox is already pretty random in its exact timing) so
I'll leave that for some other schmuck to test, I've had enough pain
and wasted enough time on this for the moment.

Anyway if anyone cares, the config.toml is in #11521.

ĸen
-- 
In my seventh decade astride this planet, and as my own cells degrade,
there are some things I cannot do now: skydiving, marathon running,
calculus. I couldn't do them in my 20s either, so no big loss.
            -- Derek Smalls, formerly of Spinal Tap
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to