Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737864 - 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
Summary: dev-php/pecl-event-3.0.8 fails to compile: configure: error: event_free not f...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ruslan Osmanov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2020-08-18 11:04 UTC by Agostino Sarubbo
Modified: 2024-02-10 20:22 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,10.59 KB, text/plain)
2020-08-18 11:04 UTC, Agostino Sarubbo
Details
1-autoconf.out (1-autoconf.out,113 bytes, text/plain)
2020-08-18 11:05 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,17.95 KB, text/plain)
2020-08-18 11:05 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-08-18 11:04:56 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-18 11:04:59 UTC
Created attachment 655288 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-08-18 11:05:00 UTC
Created attachment 655290 [details]
1-autoconf.out

1-autoconf.out
Comment 3 Agostino Sarubbo gentoo-dev 2020-08-18 11:05:01 UTC
Created attachment 655292 [details]
1-config.log

1-config.log
Comment 4 Agostino Sarubbo gentoo-dev 2021-12-22 07:04:30 UTC
tinderbox has reproduced this issue with version 3.0.2_p1 - Updating summary.
Comment 5 Ruslan Osmanov 2021-12-22 20:56:58 UTC
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
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-22 21:00:56 UTC
This is a consequence of using lld, actually. It rejects invalid libpaths and dies (see examples on the blocked tracker bug).
Comment 7 Agostino Sarubbo gentoo-dev 2024-02-10 20:22:55 UTC
clang-lld_tinderbox has reproduced this issue with version 3.0.8 - Updating summary.