Upgrading to samba-4.13.0-r1 from 4.12.6 fails during linking requiring 32-bit libraries (gcc ... -m32) because it's looking in /lib64 and not in /usr/lib: [2840/3160] Linking bin/default/source3/utils/testparm 10:21:12 runner ['x86_64-pc-linux-gnu-gcc-10.2.0', '-m32', '-march=core2', ^^^^ '-mtune=core2', '-mmmx', '-msse', '-msse2', '-msse3', '-mssse3', '-msse4.1', '-mfpmath=sse', '-mstackrealign', '-fomit-frame-pointer', '-frecord-gcc-switches', '-fstack-clash-protection', '-fuse-ld=gold', '-O2', '-pipe', '-Wno-expansion-to-defined', '-Wno-error=unused', '-fuse-ld=bfd', '-march=core2', '-mtune=core2', '-mmmx', '-msse', '-msse2', '-msse3', '-mssse3', '-msse4.1', '-mfpmath=sse', '-mstackrealign', '-fomit-frame-pointer', '-frecord-gcc-switches', '-fstack-clash-protection', '-fuse-ld=gold', '-O2', '-pipe', '-Wno-expansion-to-defined', '-Wno-error=unused', '-Wl,-O1', '-Wl,--as-needed', '-z', 'now', '-Wl,--as-needed', '-fuse-ld=bfd', 'source3/utils/testparm.c.41.o', '-o/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/source3/utils/testparm', '-Wl,-rpath,/usr/lib', '-Wl,-rpath,/usr/lib', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/lib/tdb_wrap', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/source4/lib/events', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/source4/heimdal_build', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/libcli/registry', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/lib/param', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/lib/messaging', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/lib/socket', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/librpc', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/lib/dbwrap', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/lib', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/libcli/security', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/lib/util', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/lib/replace', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/libcli/util', '-L/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default/source3', '-L/usr/local/lib', '-L/usr/local/lib', '-lcmdline-contexts-samba4', '-lpopt-samba3-samba4', '-lsamba-errors', '-lsmbconf', '-lreplace-samba4', '-lCHARSET3-samba4', '-lutil-tdb-samba4', '-liov-buf-samba4', '-lsamba-security-samba4', '-ltalloc-report-printf-samba4', '-lsamba-sockets-samba4', '-lsocket-blocking-samba4', '-ldbwrap-samba4', '-lsys-rw-samba4', '-lndr', '-lsamba-cluster-support-samba4', '-lmessages-util-samba4', '-lserver-id-db-samba4', '-lsamba3-util-samba4', '-linterfaces-samba4', '-lsamba-util', '-ltevent-util', '-lmessages-dgm-samba4', '-lsamba-debug-samba4', '-lsamba-hostconfig', '-lsmbd-shim-samba4', '-lutil-reg-samba4', '-lroken-samba4', '-levents-samba4', '-lndr-nbt', '-ltdb-wrap-samba4', '-ltime-basic-samba4', '-lutil-setid-samba4', '-lgenrand-samba4', '-lmsghdr-samba4', '-lserver-role-samba4', '-ltdb', '-lpthread', '-ltevent', '-ltalloc', '-licui18n', '-licudata', '-lunwind-generic', '-lunwind', '-licuuc', '-ltirpc', '-lresolv', '-lnsl', '-lutil', '-lldap', '-llber', '-lz', '-ltalloc', '-ldl', '-lgnutls', '-lbsd', '-lcap', '-lpopt', '-march=core2', '-mtune=core2', '-mmmx', '-msse', '-msse2', '-msse3', '-mssse3', '-msse4.1', '-mfpmath=sse', '-mstackrealign', '-fomit-frame-pointer', '-frecord-gcc-switches', '-fstack-clash-protection', '-fuse-ld=gold', '-O2', '-pipe', '-Wno-expansion-to-defined', '-Wno-error=unused', '-Wl,-O1', '-Wl,--as-needed', '-z', 'now', '-Wl,--as-needed', '-fuse-ld=bfd', '-pie', '-Wl,-z,relro,-z,now', '-Wl,-no-undefined', '-Wl,--export-dynamic'] /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: skipping incompatible /usr/lib64/libpopt.so when searching for -lpopt /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: skipping incompatible /usr/lib64/liblber.so when searching for -llber /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: skipping incompatible /usr/lib64/libldap.so when searching for -lldap /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: skipping incompatible /usr/lib64/libbsd.so when searching for -lbsd /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: skipping incompatible /usr/lib64/libdl.so when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: skipping incompatible /usr/lib64/libdl.a when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: skipping incompatible /usr/lib64/libpthread.so when searching for -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: skipping incompatible /usr/lib64/libpthread.a when searching for -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: skipping incompatible /lib64/libz.so.1 when searching for /lib64/libz.so.1 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: cannot find /lib64/libz.so.1 collect2: error: ld returned 1 exit status Waf: Leaving directory `/mnt/data-ext/portage/tmpdir/portage/net-fs/samba-4.13.0-r1/work/samba-4.13.0-abi_x86_32.x86/bin/default' Build failed -> task in 'samba-regedit' failed with exit status 1: But: $ file /lib64/libz.so.1.2.11 $ /lib64/libz.so.1.2.11: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped The 32-bit library does exist (in /usr/lib): $ file /usr/lib/libz.so.1.2.11 /usr/lib/libz.so.1.2.11: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped I sort of remember seeing something similar before and it being a 17.1 profile-related multisrc thing but I can't remember any details. My current profile: [20] default/linux/amd64/17.1/desktop (stable) * Thanks! Reproducible: Always
Please post the output of emerge --info samba to this bug and attach the build.log file.
Created attachment 667625 [details] emerge --info samba emerge --info samba
Closing this as it's way to old to be relevant any more.