Created attachment 558744 [details] build.log # emerge -pqv libunwind [ebuild R ] sys-libs/libunwind-1.2.1-r1 USE="lzma static-libs -debug -debug-frame -doc -libatomic" [...] checking for libunwind-ptrace.h... yes checking for backtrace in -lunwind... no configure: error: in `/var/tmp/portage/dev-util/strace-4.25/work/strace-4.25': configure: error: failed to find libunwind See `config.log' for more details !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-util/strace-4.25/work/strace-4.25/config.log * ERROR: dev-util/strace-4.25::gentoo failed (configure phase): * econf failed
Created attachment 558746 [details] emerge --info
(In reply to ernsteiswuerfel from comment #0) > !!! Please attach the following file when seeking support: > !!! /var/tmp/portage/dev-util/strace-4.25/work/strace-4.25/config.log Where is it?
Created attachment 558780 [details] config.log.xz
Created attachment 611544 [details] build.log (5.3) Still happens in strace-5.3. [...] configure: error: in `/var/tmp/portage/dev-util/strace-5.3/work/strace-5.3': configure: error: failed to find libunwind See `config.log' for more details !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-util/strace-5.3/work/strace-5.3/config.log * ERROR: dev-util/strace-5.3::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 1504: Called econf '--enable-mpers=check' '--with-libunwind' '--without-libdw' * phase-helpers.sh, line 681: Called __helpers_die 'econf failed' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@"
Created attachment 611546 [details] emerge --info
Created attachment 611548 [details] config.log.xz (5.3)
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../lib64/libunwind.a(elf64.o): in function `_Uelf64_get_proc_name_in_image': (.text+0x479): undefined reference to `lzma_stream_footer_decode' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x4c7): undefined reference to `lzma_index_buffer_decode' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x4de): undefined reference to `lzma_index_size' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x4f9): undefined reference to `lzma_index_end' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x50d): undefined reference to `lzma_index_uncompressed_size' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x51e): undefined reference to `lzma_index_end' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x5a8): undefined reference to `lzma_stream_buffer_decode' collect2: error: ld returned 1 exit status Making build system use pkg-config would help: $ pkg-config libunwind --libs -lunwind $ pkg-config libunwind --libs --static -lunwind -llzma
Created attachment 628934 [details, diff] Patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6b222b1be5bd4818974dcaf840f93cea1bd99ca commit a6b222b1be5bd4818974dcaf840f93cea1bd99ca Author: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> AuthorDate: 2020-04-02 07:51:26 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2020-04-09 08:29:02 +0000 dev-util/strace: Fix building with USE="static". Closes: https://bugs.gentoo.org/673934 Closes: https://bugs.gentoo.org/686946 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> dev-util/strace/files/strace-5.5-static.patch | 178 ++++++++++++++++++++++++++ dev-util/strace/strace-5.5.ebuild | 14 +- dev-util/strace/strace-9999.ebuild | 14 +- 3 files changed, 200 insertions(+), 6 deletions(-)