Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858095 - dev-util/lttng-tools-2.13.9[ust] - x86_64-pc-linux-gnu-objcopy: prog: file format not recognized
Summary: dev-util/lttng-tools-2.13.9[ust] - x86_64-pc-linux-gnu-objcopy: prog: file fo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/lttng/lttng-tools/...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: slibtool 924437
  Show dependency tree
 
Reported: 2022-07-15 00:16 UTC by orbea
Modified: 2024-04-15 06:32 UTC (History)
0 users

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


Attachments
Build log (build.log,964.09 KB, text/x-log)
2022-07-15 00:18 UTC, orbea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description orbea 2022-07-15 00:16:32 UTC
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
Comment 1 orbea 2022-07-15 00:18:54 UTC
Created attachment 791453 [details]
Build log
Comment 2 Agostino Sarubbo gentoo-dev 2024-02-24 07:41:26 UTC
slibtool_tinderbox has reproduced this issue with version 2.13.9 - Updating summary.
Comment 3 orbea 2024-03-08 16:23:47 UTC
The fix requires slibtool-9999 to work.
Comment 4 Larry the Git Cow gentoo-dev 2024-04-15 06:32:27 UTC
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(-)