Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686946 - dev-util/strace-4.26[elfutils,static] - configure: error: failed to find dwfl_linux_proc_attach in libdw
Summary: dev-util/strace-4.26[elfutils,static] - configure: error: failed to find dwfl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 715920
Blocks:
  Show dependency tree
 
Reported: 2019-05-29 16:29 UTC by Rolf Eike Beer
Modified: 2020-04-09 08:29 UTC (History)
1 user (show)

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


Attachments
config.log (config.log.xz,29.15 KB, application/x-xz)
2019-05-29 16:29 UTC, Rolf Eike Beer
Details
build.log (build.log,34.86 KB, text/plain)
2019-05-29 16:30 UTC, Rolf Eike Beer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer archtester 2019-05-29 16:29:31 UTC
configure:14961: hppa2.0-unknown-linux-gnu-gcc -o conftest -O2 -pipe -march=2.0    -Wl,-O1 -Wl,--as-needed -static -pthread conftest.c -ldw  
                                       >&5
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/8.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /usr/lib/gcc/hppa2.0-unknown-linux-gnu/8.3.0/../../../libdw.a(dwfl_error.o): in function `__libdwfl_canon_error':
(.text+0x98): undefined reference to `elf_errno'
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/8.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /usr/lib/gcc/hppa2.0-unknown-linux-gnu/8.3.0/../../../libdw.a(dwfl_error.o): in function `__libdwfl_seterrno':
(.text+0x16c): undefined reference to `elf_errno'

Portage 2.3.62 (python 3.6.5-final-0, default/linux/hppa/17.0, gcc-8.3.0, glibc-2.27-r6, 5.0.10 parisc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.0.10-parisc64-PA8800_-Mako-with-gentoo-2.6
KiB Mem:     8231368 total,    381068 free
KiB Swap:    4194300 total,   4191732 free
Timestamp of repository gentoo: Wed, 29 May 2019 00:15:01 +0000
Head commit of repository gentoo: 44959e11f8d2650db7a0448ff22bad245c862016
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p7) 2.31.1
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.4-r1::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r6::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="@FREE"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=2.0"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/bind /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=2.0"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="ftp://castor.sf-tec.de/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl berkdb big-endian bzip2 cli crypt cups cxx firefox foomaticdb fortran gdbm gpm hppa iconv imlib ipv6 libwww ncurses nls nptl openmp pam pcre readline spell ssl tcpd unicode xattr zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-libs/elfutils-0.173-r1::gentoo was built with the following:
USE="bzip2 lzma nls static-libs utils -test (-threads)"
Comment 1 Rolf Eike Beer archtester 2019-05-29 16:29:51 UTC
Created attachment 577998 [details]
config.log
Comment 2 Rolf Eike Beer archtester 2019-05-29 16:30:08 UTC
Created attachment 578000 [details]
build.log
Comment 3 Rolf Eike Beer archtester 2020-04-02 11:57:29 UTC
The patch improves things, but the build still breaks:

hppa2.0-unknown-linux-gnu-gcc -Wall -Wempty-body -Wformat-security -Wignored-qualifiers -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Wold-style-definition -Woverride-init -Wsign-compare -Wtype-limits -Wwrite-strings  -O2 -pipe -march=2.0    -Wl,-O1 -Wl,--as-needed -pthread -static -o strace strace-access.o strace-affinity.o strace-aio.o strace-alpha.o strace-basic_filters.o strace-bind.o strace-bjm.o strace-block.o strace-bpf.o strace-bpf_filter.o strace-bpf_seccomp_filter.o strace-bpf_sock_filter.o strace-btrfs.o strace-cacheflush.o strace-capability.o strace-chdir.o strace-chmod.o strace-clone.o strace-copy_file_range.o strace-count.o strace-delay.o strace-desc.o strace-dirent.o strace-dirent64.o strace-dm.o strace-dyxlat.o strace-epoll.o strace-error_prints.o strace-evdev.o strace-evdev_mpers.o strace-eventfd.o strace-execve.o strace-fadvise.o strace-fallocate.o strace-fanotify.o strace-fchownat.o strace-fcntl.o strace-fetch_bpf_fprog.o strace-fetch_struct_flock.o strace-fetch_struct_keyctl_kdf_params.o strace-fetch_struct_mmsghdr.o strace-fetch_struct_msghdr.o strace-fetch_struct_stat.o strace-fetch_struct_stat64.o strace-fetch_struct_statfs.o strace-fetch_struct_xfs_quotastat.o strace-file_handle.o strace-file_ioctl.o strace-filter_qualify.o strace-filter_seccomp.o strace-flock.o strace-fs_x_ioctl.o strace-fsconfig.o strace-fsmount.o strace-fsopen.o strace-fspick.o strace-futex.o strace-get_personality.o strace-get_robust_list.o strace-getcpu.o strace-getcwd.o strace-getrandom.o strace-hdio.o strace-hostname.o strace-inotify.o strace-inotify_ioctl.o strace-io.o strace-io_uring.o strace-ioctl.o strace-ioperm.o strace-iopl.o strace-ioprio.o strace-ipc_msg.o strace-ipc_msgctl.o strace-ipc_sem.o strace-ipc_shm.o strace-ipc_shmctl.o strace-kcmp.o strace-kexec.o strace-keyctl.o strace-kvm.o strace-ldt.o strace-link.o strace-listen.o strace-lookup_dcookie.o strace-loop.o strace-lseek.o strace-mem.o strace-membarrier.o strace-memfd_create.o strace-mknod.o strace-mmap_notify.o strace-mmsghdr.o strace-mount.o strace-move_mount.o strace-mq.o strace-msghdr.o strace-mtd.o strace-nbd_ioctl.o strace-net.o strace-netlink.o strace-netlink_crypto.o strace-netlink_inet_diag.o strace-netlink_kobject_uevent.o strace-netlink_netfilter.o strace-netlink_netlink_diag.o strace-netlink_packet_diag.o strace-netlink_route.o strace-netlink_selinux.o strace-netlink_smc_diag.o strace-netlink_sock_diag.o strace-netlink_unix_diag.o strace-nlattr.o strace-nsfs.o strace-numa.o strace-number_set.o strace-oldstat.o strace-open.o strace-open_tree.o strace-or1k_atomic.o strace-pathtrace.o strace-perf.o strace-perf_ioctl.o strace-personality.o strace-pidfd_open.o strace-pkeys.o strace-poll.o strace-prctl.o strace-print_aio_sigset.o strace-print_dev_t.o strace-print_group_req.o strace-print_ifindex.o strace-print_instruction_pointer.o strace-print_kernel_version.o strace-print_mac.o strace-print_mq_attr.o strace-print_msgbuf.o strace-print_sg_req_info.o strace-print_sigevent.o strace-print_statfs.o strace-print_struct_stat.o strace-print_time.o strace-print_timespec.o strace-print_timespec32.o strace-print_timespec64.o strace-print_timeval.o strace-print_timeval64.o strace-print_timex.o strace-printmode.o strace-printrusage.o strace-printsiginfo.o strace-process.o strace-process_vm.o strace-ptp.o strace-ptrace_syscall_info.o strace-quota.o strace-random_ioctl.o strace-readahead.o strace-readlink.o strace-reboot.o strace-renameat.o strace-resource.o strace-retval.o strace-riscv.o strace-rt_sigframe.o strace-rt_sigreturn.o strace-rtc.o strace-rtnl_addr.o strace-rtnl_addrlabel.o strace-rtnl_dcb.o strace-rtnl_link.o strace-rtnl_mdb.o strace-rtnl_neigh.o strace-rtnl_neightbl.o strace-rtnl_netconf.o strace-rtnl_nsid.o strace-rtnl_route.o strace-rtnl_rule.o strace-rtnl_tc.o strace-rtnl_tc_action.o strace-s390.o strace-sched.o strace-scsi.o strace-seccomp.o strace-sendfile.o strace-sg_io_v3.o strace-sg_io_v4.o strace-shutdown.o strace-sigaltstack.o strace-signal.o strace-signalfd.o strace-sock.o strace-sockaddr.o strace-socketutils.o strace-sparc.o strace-sram_alloc.o strace-stage_output.o strace-stat.o strace-stat64.o strace-statfs.o strace-statx.o strace-strace.o strace-string_to_uint.o strace-swapon.o strace-syscall.o strace-sysctl.o strace-sysinfo.o strace-syslog.o strace-sysmips.o strace-term.o strace-time.o strace-times.o strace-truncate.o strace-ubi.o strace-ucopy.o strace-uid.o strace-uid16.o strace-umask.o strace-umount.o strace-uname.o strace-userfaultfd.o strace-ustat.o strace-util.o strace-utime.o strace-utimes.o strace-v4l2.o strace-wait.o strace-watchdog_ioctl.o strace-xattr.o strace-xlat.o strace-xmalloc.o  strace-bpf_attr_check.o types/strace-check-cryptouser.o types/strace-check-evdev.o types/strace-check-io_uring.o types/strace-check-rtnl_link.o types/strace-check-rtnl_mdb.o types/strace-check-rtnl_neightbl.o types/strace-check-rtnl_route.o strace-unwind.o strace-unwind-libdw.o  libstrace.a  -lrt -ldw -lbz2 -lelf -lz -lz -llzma -pthread   -liberty    
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/9.2.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: cannot find -lbz2
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/9.2.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: cannot find -llzma
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/9.2.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: strace-strace.o: in function `exec_or_die':
(.text+0x6c8): warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/9.2.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: strace-strace.o: in function `init':
(.text+0x1f64): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Comment 4 Arfrever Frehtes Taifersar Arahesis 2020-04-02 15:46:05 UTC
It is caused by incomplete dependencies in dev-libs/elfutils itself (Bug #715920), not in dev-util/strace.
Comment 5 Rolf Eike Beer archtester 2020-04-02 20:14:43 UTC
it's broken with elfutils 177, it works with 179, both with USE="static-libs -bzip2 -lzma".
Comment 6 Larry the Git Cow gentoo-dev 2020-04-09 08:29:12 UTC
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(-)