This is an auto-filled bug because net-proxy/squid fails to compile.
The issue was originally discovered on ppc, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.
Feel free to adjust the summary to clarify the exact issue..
Created attachment 634710 [details]
build log and emerge --info
configure.ac has the check if libatomic needed.
> ## check for atomics library before anything that might need it
> # AC_SEARCH_LIBS pollutes LIBS
> test "$ac_res" = "none required" || ATOMICLIB=$ac_res],)
but check misfires
checking for library containing __atomic_load_8... no
since I'm compiling in a ppc32 chroot with 64bit kernel it makes me wonder if this is somehow related?
part of config.log
configure:21154: powerpc-unknown-linux-gnu-g++ -o conftest -O2 -pipe -Wl,-O1 -Wl,--as-needed conftest.cpp -latomic >&5
conftest.cpp:56:6: error: new declaration 'char __atomic_load_8()' ambiguates built-in declaration 'long long unsigned int __atomic_load_8(const volatile void*, int)' [-fpermissive]
56 | char __atomic_load_8 ();
conftest.cpp: In function 'int main()':
conftest.cpp:60:25: error: too few arguments to function 'long long unsigned int __atomic_load_8(const volatile void*, int)'
60 | return __atomic_load_8 ();
configure:21154: $? = 1
looks like autotools is to blame
AC_SEARCH_LIBS is broken with gcc8 and up for some libs and generates incorrect conftest and check is always false.
I think doing something like
> inherit .. flag-o-matic ..
> use ppc && append-ldflags '-latomic'
is acceptable as long as -as-needed is passed.
this will link atomic only into objects that actually use it.
I can confirm it builds that way.
fixing autoconf is a bit more involved.
It should be reported upstream, yes. If someone is able to fix that, a patch would be great, for the ebuild as well as upstream.
The bug has been referenced in the following commit(s):
Author: Sam James (sam_c) <firstname.lastname@example.org>
AuthorDate: 2020-05-08 03:00:53 +0000
Commit: Mikle Kolyada <email@example.com>
CommitDate: 2020-05-18 13:43:53 +0000
net-proxy/squid: Fix 32-bit build
Links against libatomic on 32-bit non-x86 arches.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sam James (sam_c) <firstname.lastname@example.org>
Signed-off-by: Mikle Kolyada <email@example.com>
net-proxy/squid/squid-4.11.ebuild | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)