x86_64-pc-linux-gnu-g++: fatal error: cannot execute ‘/usr/libexec/gcc/x86_64-pc-linux-gnu/11.1.0/collect2’: execv: Argument list too long compilation terminated. rdlibtool: exec error upon slbt_exec_link_create_executable(), line 1745: (see child process error messages). rdlibtool: < returned to > slbt_exec_link(), line 2155. make[5]: *** [Makefile:637: kea-dhcp4] Error 2 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_systemd-j2-20210521-123005 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.8.10 Available Rust versions: [1] rust-bin-1.52.1 * The Glorious Glasgow Haskell Compilation System, version 8.10.4 [1] php7.3 [2] php7.4 [3] php8.0 * timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Tue May 25 16:50:09 UTC 2021 emerge -qpvO net-misc/kea [ebuild N ] net-misc/kea-1.8.2 USE="openssl -mysql -postgres -samples"
Created attachment 711210 [details] emerge-info.txt
Created attachment 711213 [details] emerge-history.txt
Created attachment 711216 [details] environment
Created attachment 711219 [details] etc.portage.tar.bz2
Created attachment 711222 [details] logs.tar.bz2
Created attachment 711225 [details] net-misc:kea-1.8.2:20210525-170425.log.bz2
Created attachment 711228 [details] temp.tar.bz2
This blows up because the build literally gives so many -L linker directories that gcc blows up. g++: fatal error: cannot execute ‘/usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.1/collect2’: execv: Argument list too long This happened a few years ago in another project with -l linker flags and it was solved then by removing redundant flags from the compiler command in slibtool itself. Probably should do that for -L arguments too.
slibtool_tinderbox has reproduced this issue with version 2.4.1 - Updating summary.
Fixed in slibtool-9999.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=341f85a7caa16a7d986a4b428521562bf9120b08 commit 341f85a7caa16a7d986a4b428521562bf9120b08 Author: orbea <orbea@riseup.net> AuthorDate: 2024-03-15 13:51:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-15 19:29:22 +0000 dev-build/slibtool: add 0.5.36 Many bugs are fixed with this release, it is recommended for slibtool users to rebuild their entire system after this release. The addition of -export-symbols and -export-symbols-regex will allow exporting only the desired public symbols globally in any package that uses them. Closes: https://bugs.gentoo.org/925555 Closes: https://bugs.gentoo.org/913670 Closes: https://bugs.gentoo.org/916128 Closes: https://bugs.gentoo.org/775596 Closes: https://bugs.gentoo.org/792072 Closes: https://bugs.gentoo.org/924407 Closes: https://bugs.gentoo.org/924291 Closes: https://bugs.gentoo.org/782013 Closes: https://bugs.gentoo.org/914569 Closes: https://bugs.gentoo.org/791880 Closes: https://bugs.gentoo.org/913551 Closes: https://bugs.gentoo.org/913688 Closes: https://bugs.gentoo.org/914097 Closes: https://bugs.gentoo.org/915966 Closes: https://bugs.gentoo.org/924408 Closes: https://bugs.gentoo.org/915121 Closes: https://bugs.gentoo.org/913642 Closes: https://bugs.gentoo.org/917639 Closes: https://bugs.gentoo.org/917640 Closes: https://bugs.gentoo.org/913530 Closes: https://bugs.gentoo.org/913638 Closes: https://bugs.gentoo.org/778515 Closes: https://bugs.gentoo.org/920190 Closes: https://bugs.gentoo.org/924404 Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Sam James <sam@gentoo.org> dev-build/slibtool/Manifest | 2 ++ dev-build/slibtool/slibtool-0.5.36.ebuild | 41 +++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+)