Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2016 15:59:30 -0700
From:      "David P. Discher" <dpd@dpdtech.com>
To:        freebsd-stable@freebsd.org
Subject:   Build Failing 11/stable - svn r304921 - "ld: cannot find -lsbuf"
Message-ID:  <4B8FB3F0-A7A6-48D7-A806-753713249CD8@dpdtech.com>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_F6908996-D68C-4970-B482-18FF730C3F82
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I=E2=80=99ve been having an issue for a few days on 11-stable (=E2=80=A6 =
maybe longer with -current/-head in general) =E2=80=A6 especially with =
parallel makes (-j12) on amd64.   I wasn=E2=80=99t capturing the logs, =
so finally did, and looking back, the error appears to be :


--- lib/libgeom__L ---
cc  -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings =
-Wl,--warn-shared-textrel  -o libgeom.so.5.full -Wl,-soname,libgeom.so.5 =
 `NM=3D'nm' NMFLAGS=3D'' lorder geom_getxml.So geom_stats.So =
geom_xml2tree.So geom_ctl.So geom_util.So | tsort -q`  -lbsdxml  -lsbuf
/usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lsbuf
cc: error: linker command failed with exit code 1 (use -v to see =
invocation)
*** [libgeom.so.5.full] Error code 1


This is a clean chroot,  with just make installworld from a previous =
11-pre-release that the host is running.  /usr/src and /usr/obj are NFS =
mounts from a 10.3 machine with ZFS.

Appears to be some sort of race condition?   I=E2=80=99ve build =
10-stable, and probably 9.X this way for years, but -current seems to =
have this issue.

Will try local disks, then single process =E2=80=A6 but it would be nice =
to get this parallel build fixed.



Building the lib alone works:

root@borg:/usr/src/lib/libgeom # ls
Makefile        geom_ctl.c      geom_stats.c    geom_xml2tree.c =
libgeom.h
Makefile.depend geom_getxml.c   geom_util.c     libgeom.3
root@borg:/usr/src/lib/libgeom # make
cc -pg  -O2 -pipe -I/usr/src/lib/libgeom   -MD  =
-MF.depend.geom_getxml.po -MTgeom_getxml.po -std=3Dgnu99 =
-fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k =
-W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes =
-Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body =
-Wno-string-plus-int -Wno-unused-const-variable =
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality =
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef  =
-Qunused-arguments  -c /usr/src/lib/libgeom/geom_getxml.c -o =
geom_getxml.po
cc -pg  -O2 -pipe -I/usr/src/lib/libgeom   -MD  -MF.depend.geom_stats.po =
-MTgeom_stats.po -std=3Dgnu99 -fstack-protector-strong -Wsystem-headers =
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter =
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith =
-Wno-uninitialized -Wno-pointer-sign -Wno-empty-body =
-Wno-string-plus-int -Wno-unused-const-variable =
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality =
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef  =
-Qunused-arguments  -c /usr/src/lib/libgeom/geom_stats.c -o =
geom_stats.po
cc -pg  -O2 -pipe -I/usr/src/lib/libgeom   -MD  =
-MF.depend.geom_xml2tree.po -MTgeom_xml2tree.po -std=3Dgnu99 =
-fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k =
-W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes =
-Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body =
-Wno-string-plus-int -Wno-unused-const-variable =
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality =
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef  =
-Qunused-arguments  -c /usr/src/lib/libgeom/geom_xml2tree.c -o =
geom_xml2tree.po
cc -pg  -O2 -pipe -I/usr/src/lib/libgeom   -MD  -MF.depend.geom_ctl.po =
-MTgeom_ctl.po -std=3Dgnu99 -fstack-protector-strong -Wsystem-headers =
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter =
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith =
-Wno-uninitialized -Wno-pointer-sign -Wno-empty-body =
-Wno-string-plus-int -Wno-unused-const-variable =
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality =
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef  =
-Qunused-arguments  -c /usr/src/lib/libgeom/geom_ctl.c -o geom_ctl.po
cc -pg  -O2 -pipe -I/usr/src/lib/libgeom   -MD  -MF.depend.geom_util.po =
-MTgeom_util.po -std=3Dgnu99 -fstack-protector-strong -Wsystem-headers =
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter =
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith =
-Wno-uninitialized -Wno-pointer-sign -Wno-empty-body =
-Wno-string-plus-int -Wno-unused-const-variable =
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality =
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef  =
-Qunused-arguments  -c /usr/src/lib/libgeom/geom_util.c -o geom_util.po
building profiled geom library
ar -crD libgeom_p.a `NM=3D'nm' NMFLAGS=3D'' lorder geom_getxml.po =
geom_stats.po geom_xml2tree.po geom_ctl.po geom_util.po  | tsort -q`
ranlib -D libgeom_p.a
make: /usr/obj/usr/src/lib/libgeom/.depend, 1: ignoring stale .depend =
for /usr/obj/usr/src/tmp/usr/lib/libsbuf.a
building shared library libgeom.so.5
cc  -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings =
-Wl,--warn-shared-textrel  -o libgeom.so.5.full -Wl,-soname,libgeom.so.5 =
 `NM=3D'nm' NMFLAGS=3D'' lorder geom_getxml.So geom_stats.So =
geom_xml2tree.So geom_ctl.So geom_util.So | tsort -q`  -lbsdxml  -lsbuf
objcopy --only-keep-debug libgeom.so.5.full libgeom.so.5.debug
objcopy --strip-debug --add-gnu-debuglink=3Dlibgeom.so.5.debug  =
libgeom.so.5.full libgeom.so.5
gzip -cn /usr/src/lib/libgeom/libgeom.3 > libgeom.3.gz
root@borg:/usr/src/lib/libgeom #




-
David P. Discher
http://davidpdischer.com/
AIM: DavidDPD | Y!M: daviddpdz
Mobile: 408.368.3725




--Apple-Mail=_F6908996-D68C-4970-B482-18FF730C3F82
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJXwhtTAAoJEEmwU6XuhYWOV6AH/RJ3riH6hFJOzWQ8/L8KzIVX
RAskaFNY8rLnQA+KpQmpGAN9SwfWhom+R9StSMsUNPhwo+IU1ZBb1IRZ4i8btS9R
3Fhj/+AeTO8NueeCMce4G01aOCrpB4LKe+PXs5rUWKac4XnAj0m8mqKYn9PTmytE
wmOz4NOeE1gX766SmK8KApOYelqUDkyd+iTqGTjSzYQUPidVso92vL2t2eVOTklM
z5KM1GJlWobL3A80ygzHakCTx4sUE1PRbhMjKdiBawpz7XuTT01xSw/y+hgkzSKL
1bEEkqHCm3/vSCVDsooAC9iCYMNRWaN7547Qn50Ezejcof7/roRbFjtEh5TQmnM=
=rduS
-----END PGP SIGNATURE-----

--Apple-Mail=_F6908996-D68C-4970-B482-18FF730C3F82--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B8FB3F0-A7A6-48D7-A806-753713249CD8>