Your message dated Thu, 10 Oct 2019 12:19:34 +0000
with message-id <[email protected]>
and subject line Bug#930978: fixed in binutils-mingw-w64 8.5
has caused the Debian Bug report #930978,
regarding /usr/bin/x86_64-w64-mingw32-ld: Linker fails with "too many open
files"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
930978: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930978
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: binutils-mingw-w64-x86-64
Version: 2.32-8+8.4~exp1
Severity: normal
File: /usr/bin/x86_64-w64-mingw32-ld
Dear Maintainer,
When trying to link a large c++ program during a cross-compile
from Linux to Windows, the linker fails with "too many open files".
Trying to link a different (and smaller) program succeeds.
This bug occurs on both the 'unstable' version AND the 'experimental' version.
I switch from 2.31 (in unstable) to 2.32 (in experimental) to see if that would
resolve the issue, but it had no effect.
See https://sourceware.org/bugzilla/show_bug.cgi?id=24723
See https://sourceware.org/bugzilla/show_bug.cgi?id=23573
/usr/bin/x86_64-w64-mingw32-g++ -o rb.exe
'rb@exe/src_revlanguage_main.cpp.obj' -L/home/bredelings/win_root/mingw64/lib
-Wl,-O1 -Wl,--start-group librb-core.a librb-revlanguage.a librb-lib.a
-lboost_regex-mt -lboost_program_options-mt -lboost_thread-mt -lboost_system-mt
-lboost_filesystem-mt -lboost_date_time-mt -lboost_serialization-mt -pthread
-mconsole -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32
-luuid -lcomdlg32 -ladvapi32 -Wl,--end-group
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lstdc++
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lgcc_s
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lgcc
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmoldname
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmsvcrt
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lpthread
/usr/bin/x86_64-w64-mingw32-ld: cannot find -ladvapi32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lshell32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -luser32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lkernel32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lgcc_s
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lgcc
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmoldname
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmsvcrt
/usr/bin/x86_64-w64-mingw32-ld: cannot find
/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32/crtend.o: Too many open files
collect2: error: ld returned 1 exit status
Versions look like this:
$ uname -a
Linux name 5.0.0-trunk-amd64 #1 SMP Debian 5.0.2-1~exp1 (2019-03-18) x86_64
GNU/Linux
$ /usr/bin/x86_64-w64-mingw32-g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/x86_64-w64-mingw32-g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32/lto-wrapper
Target: x86_64-w64-mingw32
Configured with: ../../src/configure --build=x86_64-linux-gnu --prefix=/usr
--includedir='/usr/include' --mandir='/usr/share/man'
--infodir='/usr/share/info' --sysconfdir=/etc --localstatedir=/var
--disable-silent-rules --libdir='/usr/lib/x86_64-linux-gnu'
--libexecdir='/usr/lib/x86_64-linux-gnu' --disable-maintainer-mode
--disable-dependency-tracking --prefix=/usr --enable-shared --enable-static
--disable-multilib --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --libdir=/usr/lib --enable-libstdcxx-time=yes
--with-tune=generic --with-headers=/usr/x86_64-w64-mingw32/include
--enable-version-specific-runtime-libs --enable-fully-dynamic-string
--enable-libgomp --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-lto
--enable-threads=win32 --program-suffix=-win32
--program-prefix=x86_64-w64-mingw32- --target=x86_64-w64-mingw32
--with-as=/usr/bin/x86_64-w64-mingw32-as
--with-ld=/usr/bin/x86_64-w64-mingw32-ld --enable-libatomic
--enable-libstdcxx-filesystem-ts=yes
Thread model: win32
gcc version 8.3-win32 20190428 (GCC)
$ /usr/bin/x86_64-w64-mingw32-ld --version
GNU ld (GNU Binutils) 2.32
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
The ld command-line that is failing looks like this:
/usr/bin/x86_64-w64-mingw32-ld -plugin
/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32/liblto_plugin.so
-plugin-opt=/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccXUMZS3.res -plugin-opt=-pass-through=-lmingw32
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex
-plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread
-plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32
-plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32
-plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname
-plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -m
i386pep --subsystem console -Bdynamic -o rb.exe
/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32/../../../../x86_64-w64-mingw32/lib/crt2.o
/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32/crtbegin.o
-L/home/bredelings/win_root/mingw64/lib
-L/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32
-L/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32/../../../../x86_64-w64-mingw32/lib
rb@exe/src_revlanguage_main.cpp.obj -O1 --start-group librb-core.a
librb-revlanguage.a librb-lib.a -lboost_regex-mt -lboost_program_options-mt
-lboost_thread-mt -lboost_system-mt -lboost_filesystem-mt -lboost_date_time-mt
-lboost_serialization-mt -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32
-lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 --end-group -lstdc++ -lmingw32
-lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32
-luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt
/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32/crtend.o
$ dpkg -s binutils-mingw-w64-x86-64
Package: binutils-mingw-w64-x86-64
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 23637
Maintainer: Stephen Kitt <[email protected]>
Architecture: amd64
Source: binutils-mingw-w64 (8.4~exp1)
Version: 2.32-8+8.4~exp1
Replaces: binutils-mingw-w64 (<< 2.22-1+1)
Depends: libc6 (>= 2.14), zlib1g (>= 1:1.2.0), binutils-common (>= 2.32)
Breaks: binutils-mingw-w64 (<< 2.22-1+1)
Description: Cross-binutils for Win64 (x64) using MinGW-w64
MinGW-w64 provides a development and runtime environment for 32- and
64-bit (x86 and x64) Windows applications using the Windows API and
the GNU Compiler Collection (gcc).
.
This package contains the toolchain binutils targeting 64-bit Windows.
Built-Using: binutils (= 2.32-8)
Homepage: https://www.gnu.org/software/binutils/
$ dpkg -s g++-mingw-w64-x86-64
Package: g++-mingw-w64-x86-64
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 131359
Maintainer: Stephen Kitt <[email protected]>
Architecture: amd64
Source: gcc-mingw-w64 (21.3)
Version: 8.3.0-7+21.3
Replaces: gcc-mingw-w64 (<< 4.6.3-3+4)
Depends: gcc-mingw-w64-x86-64 (= 8.3.0-7+21.3), gcc-mingw-w64-base (=
8.3.0-7+21.3), libc6 (>= 2.14), libgcc1 (>= 1:4.2), libgmp10, libisl19 (>=
0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5.2), zlib1g (>= 1:1.1.4)
Suggests: gcc-8-locales (>= 8.3.0)
Breaks: gcc-mingw-w64 (<< 4.6.3-3+4)
Description: GNU C++ compiler for MinGW-w64 targeting Win64
MinGW-w64 provides a development and runtime environment for 32- and
64-bit (x86 and x64) Windows applications using the Windows API and
the GNU Compiler Collection (gcc).
.
This package contains the C++ compiler, supporting
cross-compiling to 64-bit MinGW-w64 targets.
Built-Using: gcc-8 (= 8.3.0-7)
Homepage: https://www.gnu.org/software/gcc/
-- System Information:
Debian Release: 10.0
APT prefers unstable
APT policy: (2000, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.0.0-trunk-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages binutils-mingw-w64-x86-64 depends on:
ii binutils-common 2.32-8
ii libc6 2.28-10
ii zlib1g 1:1.2.11.dfsg-1
binutils-mingw-w64-x86-64 recommends no packages.
binutils-mingw-w64-x86-64 suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: binutils-mingw-w64
Source-Version: 8.5
We believe that the bug you reported is fixed in the latest version of
binutils-mingw-w64, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Stephen Kitt <[email protected]> (supplier of updated binutils-mingw-w64 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 10 Oct 2019 13:59:05 +0200
Source: binutils-mingw-w64
Architecture: source
Version: 8.5
Distribution: unstable
Urgency: medium
Maintainer: Stephen Kitt <[email protected]>
Changed-By: Stephen Kitt <[email protected]>
Closes: 930978
Changes:
binutils-mingw-w64 (8.5) unstable; urgency=medium
.
* Correctly disable silent rules.
* List missing files.
* Highlight obsolete spelling fixes.
* Fix debian/rules comments.
* Require binutils 2.33 to ensure we get the plugin handling fixes.
Closes: #930978.
* Standards-Version 4.4.1, no change required.
Checksums-Sha1:
642444090cb09643cd716b874ee881a34932408c 1889 binutils-mingw-w64_8.5.dsc
2e59f13823a4ba7306efe87066e7651c17d34741 10376 binutils-mingw-w64_8.5.tar.xz
0d75abcd318dc73ab0470854ca09e98469306ca0 7013
binutils-mingw-w64_8.5_source.buildinfo
Checksums-Sha256:
82a38f05aa31764f6c2a8d59b0a420ccf1fad913cfb341fc628fc3d81c8da07e 1889
binutils-mingw-w64_8.5.dsc
17e717c4ca7f6068a5360ecaabdd607c7108843e6f80c135e98f410fb38e48e0 10376
binutils-mingw-w64_8.5.tar.xz
324ad28bcc59fbaf6a70582bb0a106bb3375800cba4c0f173c38056845e645c7 7013
binutils-mingw-w64_8.5_source.buildinfo
Files:
a08c00abe81c29fa4005a8d97201617b 1889 devel optional binutils-mingw-w64_8.5.dsc
58872a18f3f5493e00466b4da4d0c8ba 10376 devel optional
binutils-mingw-w64_8.5.tar.xz
8599913928865e3030841fbcb8a4be44 7013 devel optional
binutils-mingw-w64_8.5_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEnPVX/hPLkMoq7x0ggNMC9Yhtg5wFAl2fHR4ACgkQgNMC9Yht
g5zMKg//fd+UPSjW3m+6a/3J3B5M6KduHMp5EYS/ppARhCNkPKlrLjAofvLcB63T
54OONW0Fv8uzz4FAVcbq9tSB5nqwCB8qS4T4WXTwsmr3AO4BxlZEb5b7/rsRhXQQ
TCqP6628PxG3NQILJ2YWOupUS//jtu6trC8VoCmkccGq50gg/vS2e4SAwOaiffB1
OgrLHiw8FPfFouY24ctmrVIFcKvW76CqjyzUIXCOJ4Q41JPGkCS6gbI4TgRIjQGV
hCce4cjrHoNoxaVfF6Wb9QyOz6LJ2srUl0b+OjLbd/s74l+9Kx2HkkshjkY21AkZ
LEZus1WbJnG5FuLW9k2Srp0r7RpsmNrHRcWVQjye6JaonWBjC4G00IoIxrPSB1Qo
YkhWRnaBGFeRCd+jKVoiNguzyup7ShIP0UcDhqkMHvdbYMjtDV6ZSXvcFWrJWx6s
gFrZSoUAFZ0lk880BYZiNc5atT+w9Y7QbYYciymc0AX7C88nZfSPcLXkNbbqrRt7
wY2rKQceCj7/MBBMj7Vf3JdUhLVchXurbujMnFD6SS2qeIiCnRQieUmuaRT7pMze
BpwPOe1ezwSBUOQzOQT0mlYmbmTsZm5+E5hkw+Tt6a53oaJYEthq6x19nNeKRVxC
qrIWfIPPcfaQ1Y+ZVllzGZ1v6O/tERlQvxYxpdNj9NMk2K6ZIy4=
=ffnO
-----END PGP SIGNATURE-----
--- End Message ---