On Sun, Jan 21, 2018 at 08:49:53PM -0600, Bruce Dubbs wrote:
> Ken Moffat wrote:
> > On Sun, Jan 21, 2018 at 04:58:22AM +0000, Ken Moffat wrote:
> > > I'll be putting rustc-1.23.0 into the book soon
> > 
> > Or maybe I won't.
> 
> I looked at arch also and did a DESTDIR install.  I used:
> 
> cat << EOF > config.toml
> # see src/bootstrap/config.toml.example for more possible options
I think that is now in the top-level directory.

> [llvm]
> targets = "X86"
> 
> [build]
> # install cargo as well as rust
> 
> cargo = "/usr/bin/cargo"
> rustc = "/usr/bin/rustc"
> 
> extended = true
> verbose = 1
Is the verbosity helpful ?

> 
> [install]
> prefix = "/usr"
> docdir = "share/doc/rustc-$VER"
> 
> [rust]
> codegen-units = 0
> debuginfo = true

I'm happy to go with the defaults, but I forget what they are.

In the early days of trying to build rustc, playing with the nmber
of codegen-units didn't seem to make any real difference.
> 
> # Whether or not line number debug information is emitted
> #debuginfo-lines = false
> 
> channel = "stable"
> EOF
> 
> ####
> python x.py build --jobs=10
Rust will use the number of available CPUs, unless you limit it
with taskset (both 1.22.1 and 1.23.0 use a recent enough version of
the num_cpus cargo crate to work with that).

Hmm, you are using python2 ?  Maybe I should try that instead of
python3.

> DESTDIR="$DEST" python x.py install
> 
> ----------
> 
> Those [rust] entries seemed to help.  No files were downloaded.
> 

Umm, I think you had already build the same version and had the
correct cargo files in ~/.cargo ?
> SBU=21.168
> BUILD SIZE=4.2G including installed files.
> 
> Included in that 4.2G is 581M.  The space is taken up with:
> 
> 83M     /usr/bin    (34M stripped)
> 365M    /usr/lib    (333M stripped)
> 134M    /usr/share  Almost all in html documentation
> 
> looking at the output of ldd, I think we need a way to not have the system
> use rpath.  I think there is a way to do that.  I'll try adding rpath = true
> to the [rust] portion of config.toml.
> 
> For some reason arch removes:
> -rw-r--r-- 1  132 Jan 21 20:15 usr/lib/rustlib/components
> -rw-r--r-- 1 3430 Jan 21 20:15 usr/lib/rustlib/manifest-rustc
> -rw-r--r-- 1    2 Jan 21 20:15 usr/lib/rustlib/rust-installer-version
> 
> but I do not see what harm those do.
> 
>   -- Bruce

There is a lot of the proverbial brown-stuff installed, including
source files in /usr/lib.


Thanks for the comments.  At the moment I've got 4 cores allocated
to building 1.22.1, before I see what happens when the big guy tries
to DESTDIR it.  If that works, I'll measure it in case it gets used.

I know 1.22.1 is good enough for firefox for the moment, but I don't
know if it is good enough for librsvg.

Will try building 1.23.0 with python2, in case it's a series of
Python issues.  The problem is that the issues mostly surfaced after
doing several builds of rustc, so one good build won't be
definitive.

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
                                     - Unseen Academicals
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to