Created attachment 690417 [details] buildlog 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/libupower-glib.la -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 \ fi 2021-03-10 01:38:43,582:scangobj.py:execute_command:1289:WARNING:Running 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
rlibtool generally works fine here unless USE=doc
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/ld-linux-x86-64.so.2, 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 scangobj.py * Searching for scangobj.py ... dev-util/gtk-doc-1.33.1-r4 (/usr/share/gtk-doc/python/gtkdoc/scangobj.py) Its possible to try to not build it with libtool by adding to configure.ac: AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [false]) However scangobj.py then fails: ../libupower-glib/libupower-glib.la: file not recognized: file format not recognized collect2: error: ld returned 1 exit status 2021-03-17 12:19:38,581:scangobj.py:execute_command:1289:WARNING:Linking scanner failed: 1, command: gcc -lgobject-2.0 -lglib-2.0 -g -O2 -Wl,--as-needed UPower-scan.o ../libupower-glib/libupower-glib.la -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: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/e64366234837762e61dd8047b7e144b5de228a54 https://bugs.gentoo.org/767160
Fixed in slibtool-9999. https://dev.midipix.org/cross/slibtool/c/f27e858bae27a049f6f92dbe6b3ba4fcc28a9329?branch=main
Fixed in slibtool-0.5.33.