Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 792072

Summary: net-misc/kea-2.4.1 - x86_64-pc-linux-gnu-g++: fatal error: cannot execute /.../collect2: execv: Argument list too long
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Dennis Lamm <expeditioneer>
Status: RESOLVED FIXED    
Severity: normal CC: chainsaw, expeditioneer, ionen, orbea
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://dev.midipix.org/cross/slibtool/issue/41
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 765709    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
net-misc:kea-1.8.2:20210525-170425.log.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-25 17:47:31 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2021-05-25 17:47:33 UTC
Created attachment 711210 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-25 17:47:34 UTC
Created attachment 711213 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-25 17:47:36 UTC
Created attachment 711216 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-25 17:47:37 UTC
Created attachment 711219 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-25 17:47:38 UTC
Created attachment 711222 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-25 17:47:39 UTC
Created attachment 711225 [details]
net-misc:kea-1.8.2:20210525-170425.log.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-25 17:47:41 UTC
Created attachment 711228 [details]
temp.tar.bz2
Comment 8 orbea 2022-05-12 01:23:22 UTC
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.
Comment 9 Agostino Sarubbo gentoo-dev 2024-03-05 11:26:16 UTC
slibtool_tinderbox has reproduced this issue with version 2.4.1 - Updating summary.
Comment 10 orbea 2024-03-06 23:48:13 UTC
Fixed in slibtool-9999.
Comment 11 Larry the Git Cow gentoo-dev 2024-03-15 19:30:35 UTC
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(+)