Created attachment 577736 [details] build.log.gz Hello. After disabling 32-bit build (by adding "net-fs/samba -abi_x86_32" to /etc/portage/package.use) the 64-bit-only package builds fine.
Thank you for the report. Please recompile and paste the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket The logs must be part of the ticket, but not on external websites. We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks. Please reopen this ticket (Status:unconfirmed) afterwards.
Created attachment 577786 [details] emerge-info.txt
I have same problem with all sambas in multilib environment. Please run following command: grep '^LIBPATH_NCURSES =' /var/tmp/portage/net-fs/samba-4.8.6-r2/work/samba-4.8.6-abi_x86_32.x86/bin/c4che/default_cache.py so if your result is "LIBPATH_NCURSES = ['/usr/lib64']", then you just catched your problem culprit...
Sorry, my mistake. In samba-4.8 this file name is 'default.cache.py' and not 'default_cache.py'!
(In reply to Jiří Moravec from comment #3) > I have same problem with all sambas in multilib environment. > Please run following command: > > grep '^LIBPATH_NCURSES =' > /var/tmp/portage/net-fs/samba-4.8.6-r2/work/samba-4.8.6-abi_x86_32.x86/bin/ > c4che/default_cache.py > > so if your result is "LIBPATH_NCURSES = ['/usr/lib64']", > then you just catched your problem culprit... There are multiple instances of "lib64" in samba-4.8.6-abi_x86_32.x86/bin/c4che/default.cache.py Thanks for pointing this out. I am unsure whether this is the actual cause of the issue. The following sequence of commands completes successfully: $ unp -U /usr/portage/distfiles/samba-4.8.6.tar.gz $ cd samba-4.8.6 $ CC="ccache-gcc -m32" CFLAGS="" ./configure \ --disable-python --without-ad-dc --without-lttng $ make $ grep lib64 bin/c4che/default.cache.py CPPPATH_DBUS-1 = ... LIBPATH_LIBSYSTEMD = ['/lib64'] LIBPATH_NCURSES = ['/usr/lib64'] PERL_INC = ... PYTHONARCHDIR = '/usr/local/samba/lib64/python2.7/site-packages' PYTHONDIR = '/usr/local/samba/lib64/python2.7/site-packages' RPATH_LDB = ['/usr/lib64'] RPATH_TALLOC = ['/usr/lib64'] RPATH_TDB = ['/usr/lib64'] RPATH_TEVENT = ['/usr/lib64', '/usr/lib64']
RPATH_* should be all '/usr/lib32' PYTHON_* are right with '/usr/local/samba/lib64/python2.7/site-packages' and systemd is not on my system, but probably it should be '/usr/lib32' too...
I had exactly the same issue when my libs were linked with something other than BFD (tested both GOLD and LLD). By looking at your logs I think you should rebuild sys-libs/libcap without LTO and using BFD as the linker (either GCC or Clang are fine).