Summary: | dev-php/pecl-event-3.0.8 fails to compile: configure: error: event_free not found in event_core library, or the library is not installed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Ruslan Osmanov <rrosmanov> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | proxy-maint, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 731004 | ||
Attachments: |
build.log
1-autoconf.out 1-config.log |
Description
Agostino Sarubbo
2020-08-18 11:04:56 UTC
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). clang-lld_tinderbox has reproduced this issue with version 3.0.8 - Updating summary. |