Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792969 - dev-debug/gdb-10.2 - make[2]: *** No rule to make target ../bfd/libbfd.a, needed by gdb. Stop.
Summary: dev-debug/gdb-10.2 - make[2]: *** No rule to make target ../bfd/libbfd.a, nee...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 843461 (view as bug list)
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-05-30 08:36 UTC by Toralf Förster
Modified: 2024-02-16 06:52 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.75 KB, text/plain)
2021-05-30 08:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,139.44 KB, text/plain)
2021-05-30 08:36 UTC, Toralf Förster
Details
environment (environment,108.98 KB, text/plain)
2021-05-30 08:36 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.31 KB, application/x-bzip)
2021-05-30 08:36 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,82.88 KB, application/x-bzip)
2021-05-30 08:36 UTC, Toralf Förster
Details
sys-devel:gdb-10.2:20210530-033802.log (sys-devel:gdb-10.2:20210530-033802.log,421.60 KB, text/plain)
2021-05-30 08:36 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,51.79 KB, application/x-bzip)
2021-05-30 08:36 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-30 08:36:23 UTC
make[2]: *** No rule to make target '../bfd/libbfd.a', needed by 'gdb'.  Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gdb-10.2/work/gdb-10.2/gdb'
make[1]: *** [Makefile:9430: all-gdb] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gdb-10.2/work/gdb-10.2'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-j3-20210528-173809

  -------------------------------------------------------------------

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 Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.52.1 *
The following VMs are available for generation-2:
1)	JamVM JDK 2.0.0 [jamvm]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   jamvm 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  HEAD of ::gentoo:
commit fd3bb3e94c89a77d8e74eda19baefb991a7a0f5e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun May 30 01:50:07 2021 +0000

    2021-05-30 01:50:05 UTC

emerge -qpvO sys-devel/gdb
[ebuild  N    ] sys-devel/gdb-10.2  USE="nls python server (-cet) -lzma -multitarget -source-highlight -test -vanilla -xml -xxhash" PYTHON_SINGLE_TARGET="python3_8 -python3_10 -python3_7 -python3_9"
Comment 1 Toralf Förster gentoo-dev 2021-05-30 08:36:24 UTC
Created attachment 712419 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-30 08:36:26 UTC
Created attachment 712422 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-30 08:36:27 UTC
Created attachment 712425 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-30 08:36:28 UTC
Created attachment 712428 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-30 08:36:30 UTC
Created attachment 712431 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-30 08:36:32 UTC
Created attachment 712434 [details]
sys-devel:gdb-10.2:20210530-033802.log
Comment 7 Toralf Förster gentoo-dev 2021-05-30 08:36:33 UTC
Created attachment 712437 [details]
temp.tar.bz2
Comment 8 orbea 2022-05-09 21:25:43 UTC
*** Bug 843461 has been marked as a duplicate of this bug. ***
Comment 9 orbea 2022-05-09 21:30:51 UTC
As described in the duplicate issue this probably has something to do with this issue.

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.

The argument --config works differently in GNU libtool and slibtool. It should not be part of the build system.
Comment 10 orbea 2022-07-15 21:08:05 UTC
I made an upstream issue.

https://sourceware.org/bugzilla/show_bug.cgi?id=29372
Comment 11 orbea 2022-11-08 22:54:33 UTC
This has been fixed in the upstream gdb repo and now works using the live ebuild.
Comment 12 orbea 2023-03-31 06:07:12 UTC
There is now a new issue which I reported with a patch here.

https://sourceware.org/bugzilla/show_bug.cgi?id=30295
Comment 13 midipix 2024-02-13 05:58:17 UTC
Thanks for catching this. GNU libtool actually does document the --config switch, making the above an slibtool bug.

As of slibtool commit c1f21665c7010c70b87f79e1b81dc7f2564f26c9, `rlibtool --config` sends to stdout a perfectly compatible output.
Comment 14 orbea 2024-02-13 15:01:13 UTC
*** Bug 923948 has been marked as a duplicate of this bug. ***
Comment 15 orbea 2024-02-16 06:51:46 UTC
Actually this one seems fixed in gdb now per the linked sourceware issue, closing and reopening #923948 which has the current error.