The build fails with slibtool. This is probably related: libtooldir=`rdlibtool --config | /bin/sed -n -e 's/^objdir=//p'`; \ if [ -f $libtooldir/libbfd.a ]; then \ cp $libtooldir/libbfd.a libbfd.tmp; \ x86_64-pc-linux-gnu-ranlib --plugin /usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.1/liblto_plugin.so libbfd.tmp; \ /bin/sh ./../move-if-change libbfd.tmp libbfd.a; \ else true; fi rdlibtool: error: <compiler> is missing. slibtool does not have --config nor should it have it since it would be pointless. Additionally the move-if-change part is very suspect. Reproducible: Always Steps to Reproduce: 1. Install sys-devel/slibtool 2. Set MAKEFLAGS="LIBTOOL=rlibtool" and MAKE="make LIBTOOL=rlibtool" in the environment. 3. Build sys-devel/gdb Actual Results: make[2]: *** No rule to make target '../bfd/libbfd.a', needed by 'gdb'. Stop. make[2]: Leaving directory '/var/tmp/portage/sys-devel/gdb-12.1/work/gdb-12.1/gdb' make[1]: *** [Makefile:11132: all-gdb] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-devel/gdb-12.1/work/gdb-12.1' make: *** [Makefile:1001: all] Error 2 Expected Results: It should build with slibtool.
Created attachment 777797 [details] Build log
Correction: slibtool does have --config, but it only displays specific information and will not dump the whole configuration as gdb is requesting which would be pointless. For example it will print compiler information. $ slibtool --config gcc key value annotation --- ----- ---------- compiler gcc target host x86_64-pc-linux-gnu native (cached in ccenv/host.mk) flavor linux derived from <host> ar x86_64-pc-linux-gnu-ar derived from <host> ranlib x86_64-pc-linux-gnu-ranlib derived from <host> windres not applicable dlltool not applicable mdso not applicable
*** This bug has been marked as a duplicate of bug 792969 ***