Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792072 - net-misc/kea-1.8.2 - x86_64-pc-linux-gnu-g++: fatal error: cannot execute /.../collect2: execv: Argument list too long
Summary: net-misc/kea-1.8.2 - x86_64-pc-linux-gnu-g++: fatal error: cannot execute /.....
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-05-25 17:47 UTC by Toralf Förster
Modified: 2022-05-12 01:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.23 KB, text/plain)
2021-05-25 17:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,302.79 KB, text/plain)
2021-05-25 17:47 UTC, Toralf Förster
Details
environment (environment,68.92 KB, text/plain)
2021-05-25 17:47 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.76 KB, application/x-bzip)
2021-05-25 17:47 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,30.20 KB, application/x-bzip)
2021-05-25 17:47 UTC, Toralf Förster
Details
net-misc:kea-1.8.2:20210525-170425.log.bz2 (net-misc:kea-1.8.2:20210525-170425.log.bz2,26.65 KB, application/x-bzip)
2021-05-25 17:47 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,46.37 KB, application/x-bzip)
2021-05-25 17:47 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
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.