Summary: | media-gfx/iscan-3.62.0 : ../.../libutsushi.so: error: undefined reference to pthread_create | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Marcin Deranek <marcin.deranek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dilfridge, proxy-maint |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/15879 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 logs.tbz2 media-gfx:iscan-3.62.0:20200504-193947.log temp.tbz2 |
Description
Toralf Förster
2020-05-04 20:23:18 UTC
Created attachment 636078 [details]
emerge-info.txt
Created attachment 636080 [details]
emerge-history.txt
Created attachment 636082 [details]
environment
Created attachment 636084 [details]
etc.portage.tbz2
Created attachment 636086 [details]
logs.tbz2
Created attachment 636088 [details]
media-gfx:iscan-3.62.0:20200504-193947.log
Created attachment 636090 [details]
temp.tbz2
I narrowed it to gold linker. Building iscan with bfd works just fine. Surprisingly library in question is linked with libpthread: /var/tmp/portage/media-gfx/iscan-3.62.0/work/utsushi-0.62.0/drivers/esci # x86_64-pc-linux-gnu-g++ -Wall -O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Wl,-O1 -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/verify verify-verify.o verify-verify-compound-protocol.o verify-verify-compound-scanning.o -L/usr/lib64 -Wl,--as-needed -Wl,--no-as-needed ./.libs/libdrv-esci.so ../../lib/.libs/libutsushi.so -lboost_unit_test_framework-mt ../../connexions/.libs/libcnx-usb.so -lusb-1.0 ../../connexions/.libs/libcnx-hexdump.so /var/tmp/portage/media-gfx/iscan-3.62.0/work/utsushi-0.62.0/lib/.libs/libutsushi.so -lboost_filesystem -lboost_system -lboost_program_options-mt //usr/lib64/libltdl.so -ldl -ludev -ltiff -Wl,-rpath -Wl,/usr/lib64/utsushi ../../lib/.libs/libutsushi.so: error: undefined reference to 'pthread_create' collect2: error: ld returned 1 exit status /var/tmp/portage/media-gfx/iscan-3.62.0/work/utsushi-0.62.0/drivers/esci # ldd ../../lib/.libs/libutsushi.so | fgrep pthread libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7363748000) Interestingly explicitly adding -lpthread/-pthread or removing -ltiff from command line makes the thing compile just fine. Switching to bfd linked (-fuse-ld=bfd) also works fine. Feels like bug in gold linker. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72080b86d2e93f9d9ec984ad2df0bc456e8c4918 commit 72080b86d2e93f9d9ec984ad2df0bc456e8c4918 Author: Marcin Deranek <marcin.deranek@booking.com> AuthorDate: 2020-05-19 16:38:46 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-07-16 14:38:40 +0000 media-gfx/iscan: Explicitly use pthreads so we can use gold linker Closes: https://bugs.gentoo.org/720994 Signed-off-by: Marcin Deranek <marcin.deranek@slonko.net> Closes: https://github.com/gentoo/gentoo/pull/15879 Signed-off-by: Joonas Niilola <juippis@gentoo.org> media-gfx/iscan/iscan-3.62.0.ebuild | 2 ++ 1 file changed, 2 insertions(+) |