bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/23573] "Too many open files" and binutils 2.31.1-1


From: benjamin.redelings at gmail dot com
Subject: [Bug binutils/23573] "Too many open files" and binutils 2.31.1-1
Date: Mon, 22 Jul 2019 17:10:15 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23573

--- Comment #18 from Benjamin Redelings <benjamin.redelings at gmail dot com> 
---
Hi Nick,

Thank you so much for looking into this.  

I reran the exact same command and now it works with the linker plugin just
fine.  I also check using /proc, and the linker process has about 30 open
files.  I have done some package upgrades, and it looks like a patch for Debug
bug 928214 ("Configure LTO support correctly",
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928214) may be the one that
fixed the problem.

In any case, for the benefit of any future triggerers of this bug:
1. The problem is probably with GCC, not binutils.
2. I was not using native mingw binutils, I was using Debian's linux-native
cross compiler.

Referring to the bug report above, one possible explanation is that
* the LTO plugin was misconfigured in autoconf
* this caused gcc to fall back to the lto-wrapper helper and NOT use the linker
plugin
* the lto-wrapper help creates N open file descriptors for an archive
containing N objects.
* the actual lto-plugin works fine.
This is somewhat speculative, but might hopefully give someone a path to
explore if they run into this again.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]