With slibtool lttng-tools now fails when it objcopy is given a slibtool wraper script instead of the real prog binary. The solution would be to use --mode=execute, but there may be a slibtool bug making that difficult until that is resolved first. Reproducible: Always Actual Results: rdlibtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wno-incomplete-setjmp-declaration -Wdiscarded-qualifiers -Wmissing-declarations -Wmissing-prototypes -Wmissing-parameter-type -Wshadow -fno-strict-aliasing -pthread -O2 -pipe -Wl,-O1 -Wl,--as-needed -o prog prog.o tp.o -llttng-ust -llttng-ust-common -ldl -ldl -lrt rdlibtool: lconf: {.name="libtool"}. rdlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/var/tmp/portage/dev-util/lttng-tools-2.13.7/work/lttng-tools-2.13.7/tests/regression/ust/baddr-statedump"}. rdlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 65026, .st_ino = 172684954}. rdlibtool: lconf: openat(AT_FDCWD,"libtool",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(AT_FDCWD,"../",O_DIRECTORY,0) = 3. rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 65026, .st_ino = 5910135}. rdlibtool: lconf: openat(3,"libtool",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(3,"../",O_DIRECTORY,0) = 4. rdlibtool: lconf: fstat(4,...) = 0 {.st_dev = 65026, .st_ino = 134535779}. rdlibtool: lconf: openat(4,"libtool",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(4,"../",O_DIRECTORY,0) = 3. rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 65026, .st_ino = 35816749}. rdlibtool: lconf: openat(3,"libtool",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(3,"../",O_DIRECTORY,0) = 4. rdlibtool: lconf: fstat(4,...) = 0 {.st_dev = 65026, .st_ino = 172674723}. rdlibtool: lconf: openat(4,"libtool",O_RDONLY,0) = 3. rdlibtool: lconf: found "/var/tmp/portage/dev-util/lttng-tools-2.13.7/work/lttng-tools-2.13.7/libtool". rdlibtool: link: x86_64-pc-linux-gnu-gcc prog.o tp.o -Wall -Wno-incomplete-setjmp-declaration -Wdiscarded-qualifiers -Wmissing-declarations -Wmissing-prototypes -Wmissing-parameter-type -Wshadow -fno-strict-aliasing -pthread -O2 -pipe -Wl,-O1 -Wl,--as-needed -llttng-ust -llttng-ust-common -ldl -lrt -o .libs/prog rdlibtool: link: ln -s ../prog .libs/prog.exe.wrapper x86_64-pc-linux-gnu-objcopy --only-keep-debug prog prog.debug x86_64-pc-linux-gnu-objcopy: prog: file format not recognized make[4]: *** [Makefile:798: prog.debug] Error 1 make[4]: Leaving directory '/var/tmp/portage/dev-util/lttng-tools-2.13.7/work/lttng-tools-2.13.7/tests/regression/ust/baddr-statedump' make[3]: *** [Makefile:576: all-recursive] Error 1 make[3]: Leaving directory '/var/tmp/portage/dev-util/lttng-tools-2.13.7/work/lttng-tools-2.13.7/tests/regression/ust' make[2]: *** [Makefile:847: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-util/lttng-tools-2.13.7/work/lttng-tools-2.13.7/tests/regression' make[1]: *** [Makefile:557: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-util/lttng-tools-2.13.7/work/lttng-tools-2.13.7/tests' make: *** [Makefile:661: all-recursive] Error 1
Created attachment 791453 [details] Build log
slibtool_tinderbox has reproduced this issue with version 2.13.9 - Updating summary.
The fix requires slibtool-9999 to work.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d90e8ffabbb45afe3f8bb6137172265153313bd commit 0d90e8ffabbb45afe3f8bb6137172265153313bd Author: orbea <orbea@riseup.net> AuthorDate: 2024-03-19 00:57:54 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-04-15 06:32:24 +0000 dev-util/lttng-tools: fix build with slibtool Closes: https://bugs.gentoo.org/858095 Closes: https://bugs.gentoo.org/924437 Upstream-PR: https://github.com/lttng/lttng-tools/pull/169 Upstream-Commit: https://github.com/lttng/lttng-tools/commit/bb1c9fc3f89c2faffb0228c0b77e32653e018a23 Signed-off-by: orbea <orbea@riseup.net> Closes: https://github.com/gentoo/gentoo/pull/35825 Signed-off-by: Joonas Niilola <juippis@gentoo.org> .../files/lttng-tools-2.13.9-slibtool.patch | 87 ++++++++++++++++++++++ dev-util/lttng-tools/lttng-tools-2.13.9.ebuild | 13 +++- 2 files changed, 99 insertions(+), 1 deletion(-)