[ebuild N ] dev-util/strace-4.22::gentoo USE="aio perl static -unwind" 0 KiB checking size of long... 8 checking size of long long... 8 checking size of off_t... 8 checking size of kernel_long_t... 8 checking size of struct i64_i32... 16 checking for SIGRTMIN... 32 checking for SA_RESTORER... 0x04000000 checking for __builtin_popcount... yes checking for program_invocation_name... yes checking for static_assert... yes checking for dladdr in -ldl... yes checking for library containing timer_create... no configure: error: in `/var/tmp/portage/dev-util/strace-4.22/work/strace-4.22': configure: error: failed to find timer_create See `config.log' for more details !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-util/strace-4.22/work/strace-4.22/config.log * ERROR: dev-util/strace-4.22::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 124: Called src_configure * environment, line 2265: Called econf '--without-libunwind' * phase-helpers.sh, line 712: Called __helpers_die 'econf failed' * isolated-functions.sh, line 121: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=dev-util/strace-4.22::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/strace-4.22::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-util/strace-4.22/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/strace-4.22/temp/environment'. * Working directory: '/var/tmp/portage/dev-util/strace-4.22/work/strace-4.22' * S: '/var/tmp/portage/dev-util/strace-4.22/work/strace-4.22'
Created attachment 527564 [details] config.log
configure:13664: x86_64-pc-linux-gnu-gcc -o conftest -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now -static conftest.c >&5 /var/tmp/portage/dev-util/strace-4.22/temp/ccufJfoG.o: In function `main': conftest.c:(.text.startup+0x8): undefined reference to `timer_create' collect2: error: ld returned 1 exit status timer_create(2) says: "Link with -lrt." but we do not see that here, and then the next test fails when it does try with -lrt: configure:13664: x86_64-pc-linux-gnu-gcc -o conftest -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now -static conftest.c -lrt >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/librt.a(timer_create.o): In function `__timer_create_new': (.text+0x11f): undefined reference to `pthread_once' (.text+0x184): undefined reference to `pthread_attr_init' (.text+0x1c7): undefined reference to `pthread_attr_setdetachstate' (.text+0x231): undefined reference to `pthread_mutex_lock' (.text+0x24f): undefined reference to `pthread_mutex_unlock'
Seems a Bug with 4.22. Older versions, 4.20 und 4.21, compile fine with USE=static.
Adding "-lpthread" fixes the issue for me.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a09a15504b88b6e26eb916606781ed8b055e24cb commit a09a15504b88b6e26eb916606781ed8b055e24cb Author: Conrad Kostecki <ck+gentoo@bl4ckb0x.de> AuthorDate: 2018-04-17 12:35:37 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-04-17 13:36:16 +0000 dev-util/strace-4.22: Fix static build Closes: https://bugs.gentoo.org/653292 Package-Manager: Portage-2.3.24, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/8044 dev-util/strace/strace-4.22.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93ffaf8a823d13397792fd7c741daa3d8a4fdb11 commit 93ffaf8a823d13397792fd7c741daa3d8a4fdb11 Author: Mike Frysinger <vapier@chromium.org> AuthorDate: 2018-05-18 07:51:24 +0000 Commit: Mike Frysinger <vapier@gentoo.org> CommitDate: 2018-05-18 08:05:56 +0000 dev-util/strace: sync static fix w/9999 ebuild and document it #653292 Bug: https://bugs.gentoo.org/653292 dev-util/strace/strace-4.22.ebuild | 1 + dev-util/strace/strace-9999.ebuild | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)