On Thu, Jul 11, 2019 at 02:31:35AM +0800, Xi Ruoyao via blfs-dev wrote:
> On 2019-07-10 19:22 +0100, Ken Moffat via blfs-dev wrote:
> > On Wed, Jul 10, 2019 at 01:08:30PM +0800, Xi Ruoyao via blfs-dev wrote:
> > > 
> > > I only build GCC with LTO using --with-build-config=bootstrap-lto.  There
> > > are
> > > annoying problems with LTO and shared objects with ".symver" directive so 
> > > I
> > > never use LTO for other packages.
> > > 
> > > You may want to consult https://github.com/InBetweenNames/gentooLTO .
> > 
> > Thanks, I've not seen that config option, nor references to the
> > problems with .symver.  More things for me to read about.
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200
> 
> I've tried to write some code for it but my code is just like some pieces of
> sh*t.  I'll stay and wait for Jan Hubicka to do this work.
> 

Yes, I read that after following up some of the links.  I also
looked at his blog from May, and saw that OpenSuSe is _mostly_
moving to LTO.
> > The gentooLTO site was one of the places I started looking at before I
> > decided to try any of this, but at least I went into it with my eyes
> > wide open about never getting the time back.
> > 
> > On the bright side (for me), by doing this I don't have time to test
> > Linus's kernels.  Congratulations on your testing!
> 
> Just encountered a bug in 5.2 release, which Linus also encountered :(.
> 

Yes indeed.

> Now I'm trying to do a Python-3.7.4 build with LTO (its configure script now
> supports --with-lto to do a LTO build).

A quick test after one of my early builds had completed confirmed it
(3.7.3, I think) used PGO (Profile Guided Optimization, for those not
familiar with that TLA) and the build takes a _lot_ longer.

I build Python3 twice: once in LFS, and then fairly early in BLFS
after I've built extra dependencies.  Was thinking about using LTO
for the second build, but at the moment I don't use Python3 much and
I doubt that the benefits when running things like Meson will be more
than a few milliseconds per package.

But Jan's blog (or Honza as he calls himself) mentioned that
libreoffice uses LTO by default so I might try adding that option to
the Pythons (if 2 accepts it).  Decisions, decisions.

ĸen
-- 
This is magic for grown-ups; it has to be hard because we know there's
no such thing as a free goblin.
   -- Pratchett, Stewart & Cohen - The Science of Discworld II
-- 
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