Re: final link failed: memory exhausted on armv7l

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Oct 2021 at 06:15, Jeff Law <jeffreyalaw@xxxxxxxxx> wrote:
>
>
>
> On 10/13/2021 10:37 AM, Michael Catanzaro wrote:
> > On Wed, Oct 13 2021 at 06:06:50 PM +0200, Björn 'besser82' Esser
> > <besser82@xxxxxxxxxxxxxxxxx> wrote:
> >> What you describe as lto requires a lot of memory is caused by building
> >> lto along with non-lto in the same object file requires significantly
> >> more memory.  For that reason one can disable building non-lto along
> >> with lto using the `-f-no-fat-lto-objects` compiler flags instead of
> >> `-f-fat-lto-objects`, if and *only IF* the package in question does
> >> *NOT* ship static libraries.
> >
> > More background: this default is, of course, backwards. Fedora
> > packages do not generally ship static libraries, so it makes more
> > sense for the few packages that do to opt-in instead of opt-out. Jeff
> > proposed a change to improve that here:
> >
> > https://fedoraproject.org/wiki/Changes/LTOBuildImprovements
> >
> > but he left Red Hat, so it hasn't been implemented.
> I'd still like to tackle this but my time is limited.
>
> However, I strongly suspect fat-lto-objects is not the problem here.  If
> the build is running out of memory at link time, that is the LTO phase.
> The best solution for that is to either disable LTO on the arm target,
> or (better) limit the parallelism at link time. There was a change to
> redhat-rpm-config that I think made it into f35 to allow a package to
> throttle the link-time parallelism.

This makes sense, because f34 builds consistently succeed in exactly
the same hardware. How do I limit just the link-time parallelism?

-- 
Iñaki Úcar
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux