Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750542 - net-fs/samba-4.13.0-r1 fails to emerge and doesn't find 32-bit libraries when passing -m32
Summary: net-fs/samba-4.13.0-r1 fails to emerge and doesn't find 32-bit libraries when...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-21 09:42 UTC by Adrian Bassett
Modified: 2024-02-20 19:26 UTC (History)
1 user (show)

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


Attachments
emerge --info samba (do,14.52 KB, text/plain)
2020-10-21 11:17 UTC, Adrian Bassett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Bassett 2020-10-21 09:42:23 UTC
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
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-10-21 10:46:07 UTC
Please post the output of

  emerge --info samba

to this bug and attach the build.log file.
Comment 2 Adrian Bassett 2020-10-21 11:17:41 UTC
Created attachment 667625 [details]
emerge --info samba

emerge --info samba
Comment 3 Adrian Bassett 2024-02-20 19:26:14 UTC
Closing this as it's way to old to be relevant any more.