Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731680 - net-proxy/squidguard-1.6.0 - checking for pthread_create in -lpthread... no // Thread library not found, this may cause problems if your db libraries require threading support, but most of the time it is not an issue.
Summary: net-proxy/squidguard-1.6.0 - checking for pthread_create in -lpthread... no /...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergey Popov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-08 07:55 UTC by Agostino Sarubbo
Modified: 2020-12-08 12:49 UTC (History)
0 users

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


Attachments
build.log (build.log,10.52 KB, text/plain)
2020-07-08 07:55 UTC, Agostino Sarubbo
Details
other.tar.bz2 (other.tar.bz2,15.67 KB, application/x-bzip-compressed-tar)
2020-07-08 07:55 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-07-08 07:55:15 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-proxy/squidguard fails to compile.
Discovered on: amd64

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 isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-08 07:55:20 UTC
Created attachment 648306 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-08 07:55:23 UTC
Created attachment 648308 [details]
other.tar.bz2

other logs
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2020-08-29 13:26:43 UTC
configure:3844: x86_64-pc-linux-gnu-clang -o conftest -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -DLDAP_DEPRECATED -I/usr/include/db5.3 -I/usr/include  -I/usr/include/db5.3 -I/usr/include -Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,--defsym=__gentoo_check_ldflags__=0 -L/usr/local/BerkeleyDB/lib
-L/usr/lib conftest.c  >&5
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../lib64/crt1.o is incompatible with elf_x86_64
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../lib64/crti.o is incompatible with elf_x86_64
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/crtbegin.o is incompatible with elf_x86_64
ld.lld: error: /var/tmp/portage/net-proxy/squidguard-1.6.0/temp/conftest-a84eb6.o is incompatible with elf_x86_64
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/libgcc_s.so.1 is incompatible with elf_x86_64
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/libgcc_s.so.1 is incompatible with elf_x86_64
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/crtend.o is incompatible with elf_x86_64
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.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)

It's injecting -L/usr/lib in configure.ac. Should be easy to get rid of.
Comment 4 Larry the Git Cow gentoo-dev 2020-12-08 12:49:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8135845b8bc6721e7537e46f7033537cf9ac30f6

commit 8135845b8bc6721e7537e46f7033537cf9ac30f6
Author:     Sergey Popov <pinkbyte@gentoo.org>
AuthorDate: 2020-12-08 12:45:34 +0000
Commit:     Sergey Popov <pinkbyte@gentoo.org>
CommitDate: 2020-12-08 12:49:03 +0000

    net-proxy/squidguard: fix building with clang
    
    Also correct build-time dependencies
    
    Reported-by: Agostino Sarubbo <ago@gentoo.org>
    Closes: https://bugs.gentoo.org/731680
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>

 net-proxy/squidguard/squidguard-1.6.0.ebuild | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)