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

Bug 843461

Summary: sys-devel/gdb-12.1: No rule to make target '../bfd/libbfd.a', needed by 'gdb'.
Product: Gentoo Linux Reporter: orbea <orbea>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 765709    
Attachments: Build log

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 ***