https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-php/pecl-event-2.5.3-r1 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses a clang/LLVM toolchain. If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004. This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Created attachment 655288 [details] build.log build log and emerge --info
Created attachment 655290 [details] 1-autoconf.out 1-autoconf.out
Created attachment 655292 [details] 1-config.log 1-config.log
tinderbox has reproduced this issue with version 3.0.2_p1 - Updating summary.
Please verify your /usr/lib64 binaries. It looks like at least the following libraries are not compatible with x86_64 architecture: /usr/lib64/libevent_core.so /usr/lib64/libgcc_s.so.1 Just look at this part of the build.log: configure:4361: checking for event_free in -levent_core configure:4386: x86_64-pc-linux-gnu-clang -o conftest -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -L/usr/lib -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=lld conftest.c -levent_core -levent_core >&5 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/crt1.o is incompatible with elf_x86_64 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/crti.o is incompatible with elf_x86_64 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/crtbegin.o is incompatible with elf_x86_64 ld.lld: error: /var/tmp/portage/dev-php/pecl-event-2.5.3-r1/temp/conftest-385458.o is incompatible with elf_x86_64 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libevent_core.so is incompatible with elf_x86_64 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libevent_core.so is incompatible with elf_x86_64 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libgcc_s.so.1 is incompatible with elf_x86_64 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libgcc_s.so.1 is incompatible with elf_x86_64 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/crtend.o is incompatible with elf_x86_64 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/crtn.o is incompatible with elf_x86_64 clang-10: error: linker command failed with exit code 1 (use -v to see invocation) ------- By the way, I couldn't reproduce the issue using the official gentoo/stage3 Docker image (https://hub.docker.com/r/gentoo/stage3), amd64 tag: $ cat Dockerfile FROM gentoo/stage3:amd64 ENV PHP_TARGETS=php7-3 ENV USE="$USE sockets" RUN emerge-webrsync RUN emerge dev-php/pecl-event CMD ["php", "--ri", "event"] $ docker build -q -t gentoo-stage3-amd64-pecl-event . sha256:dec78a86078f72c44beb250ed26f6437df444e94f42d415b8ab3e6a455807f44 $ docker run gentoo-stage3-amd64-pecl-event event Event support => enabled Sockets support => enabled Debug support => disabled Extra functionality support including HTTP, DNS, and RPC => enabled OpenSSL support => enabled Thread safety support => disabled Extension version => 3.0.2r1 libevent2 headers version => 2.1.12-stable
This is a consequence of using lld, actually. It rejects invalid libpaths and dies (see examples on the blocked tracker bug).