Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843461 - sys-devel/gdb-12.1: No rule to make target '../bfd/libbfd.a', needed by 'gdb'.
Summary: sys-devel/gdb-12.1: No rule to make target '../bfd/libbfd.a', needed by 'gdb'.
Status: RESOLVED DUPLICATE of bug 792969
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2022-05-09 21:00 UTC by orbea
Modified: 2022-05-09 21:25 UTC (History)
0 users

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


Attachments
Build log (build.log,697.50 KB, text/x-log)
2022-05-09 21:02 UTC, orbea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description orbea 2022-05-09 21:00:57 UTC
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.
Comment 1 orbea 2022-05-09 21:02:40 UTC
Created attachment 777797 [details]
Build log
Comment 2 orbea 2022-05-09 21:17:13 UTC
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
Comment 3 orbea 2022-05-09 21:25:43 UTC

*** This bug has been marked as a duplicate of bug 792969 ***