On 22/10/2021 00:25, Michael Catanzaro wrote:

Hi, I'm having trouble building webkit2gtk3-2.34.1 for i686 in rawhide. An example build failure [1] looks like:

/usr/bin/ld.gold: fatal error: lib/libwebkit2gtk-4.0.so.37.55.4: mmap: failed to allocate 2108254132 bytes for output file: Cannot allocate memory

Any ideas? I don't believe the builder is actually running out of memory because I'm using %limit_build and because a normal OOM almost always results in a SIGKILL. This issue seems to occur reliably (I tried three builds, it died three times) and only affects rawhide and only i686. F35 is fine and all other architectures are fine.

An OOM is when the total memory usage of the system builds up over time.

What has happened here is that the linker has tried to allocate 2Gb at
once as a single chunk and the kernel was unable to do that.

Is there a reason for using gold? Maybe the default bfd linker would
manage to use less memory?

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to