Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775185 - sys-power/upower-0.99.11[doc] with slibtool: execute_command:1289:WARNING:Running scanner failed: -11, command: slibtool --mode=execute ./UPower-scan
Summary: sys-power/upower-0.99.11[doc] with slibtool: execute_command:1289:WARNING:Run...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
Depends on:
Blocks: slibtool
  Show dependency tree
Reported: 2021-03-10 00:46 UTC by Alessandro Barbieri
Modified: 2021-04-06 13:15 UTC (History)
2 users (show)

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

buildlog (upower-0.99.11:20210310-003718.log,179.50 KB, text/x-log)
2021-03-10 00:46 UTC, Alessandro Barbieri

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-10 00:46:55 UTC
Created attachment 690417 [details]

touch setup-build.stamp
_source_dir='' ; \
for i in ../libupower-glib ; do \
  _source_dir="${_source_dir} --source-dir=$i" ; \
done ; \
gtkdoc-scan --module=UPower --ignore-headers="config.h " ${_source_dir} --ignore-headers=config.h --rebuild-types --rebuild-sections 
if grep -l '^..*$' UPower.types > /dev/null 2>&1 ; then \
  scanobj_options=""; \
  gtkdoc-scangobj 2>&1 --help | grep  >/dev/null "\-\-verbose"; \
  if test "$?" = "0"; then \
    if test "x" = "x1"; then \
      scanobj_options="--verbose"; \
    fi; \
  fi; \
  CC="slibtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc  -pthread -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I../libupower-glib -I../libupower-glib  -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -DGSEAL_ENABLE  -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration" LD="slibtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -lgobject-2.0 -lglib-2.0  -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration  -Wl,--as-needed -Wl,-O1 -Wl,--as-needed" RUN="slibtool --mode=execute" CFLAGS=" -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration" LDFLAGS="../libupower-glib/   -Wl,--as-needed -Wl,-O1 -Wl,--as-needed" \
  gtkdoc-scangobj  $scanobj_options --module=UPower; \
else \
  for i in UPower.args UPower.hierarchy UPower.interfaces UPower.prerequisites UPower.signals ; do \
    test -f $i || touch $i ; \
  done \
2021-03-10 01:38:43, scanner failed: -11, command: slibtool --mode=execute ./UPower-scan
make[4]: *** [Makefile:954: scan-build.stamp] Error 245
make[4]: Leaving directory '/var/tmp/portage/sys-power/upower-0.99.11/work/upower-0.99.11/doc'
make[3]: *** [Makefile:614: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-power/upower-0.99.11/work/upower-0.99.11/doc'
make[2]: *** [Makefile:565: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-power/upower-0.99.11/work/upower-0.99.11/doc'
make[1]: *** [Makefile:556: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-power/upower-0.99.11/work/upower-0.99.11'
make: *** [Makefile:465: all] Error 2
 * ERROR: sys-power/upower-0.99.11::gentoo failed (compile phase):
 *   emake failed
Comment 1 Ionen Wolkens gentoo-dev 2021-03-10 02:35:21 UTC
rlibtool generally works fine here unless USE=doc
Comment 2 orbea 2021-03-17 19:27:34 UTC
Its failing because its executing the UPower-scan libtool wrapper script.

  $ file doc/UPower-scan
  doc/UPower-scan: POSIX shell script, ASCII text executable

It should be executing the real binary instead.

  $ file doc/.libs/UPower-scan
  doc/.libs/UPower-scan: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/, for GNU/Linux 3.2.0, with debug_info, not stripped

However the problem is not in sys-power/upower, but in dev-util/gtk-doc.

  $ equery b
   * Searching for ... 
  dev-util/gtk-doc-1.33.1-r4 (/usr/share/gtk-doc/python/gtkdoc/

Its possible to try to not build it with libtool by adding to


However then fails:

  ../libupower-glib/ file not recognized: file format not recognized
  collect2: error: ld returned 1 exit status
  2021-03-17 12:19:38, scanner failed: 1, command: gcc -lgobject-2.0 -lglib-2.0 -g -O2 -Wl,--as-needed UPower-scan.o ../libupower-glib/ -Wl,--as-needed -o UPower-scan
  make[4]: *** [Makefile:956: scan-build.stamp] Error 1

This will need someone who knows python unlike me to fix, ideally only a $(LIBTOOL) implementation should handle .la files.

For reference networkmanager had a similar issue:
Comment 4 orbea 2021-04-06 13:15:48 UTC
Fixed in slibtool-0.5.33.