Build Failing 11/stable - svn r304921 - "ld: cannot find -lsbuf"

David P. Discher dpd at dpdtech.com
Sat Aug 27 22:59:34 UTC 2016


I’ve been having an issue for a few days on 11-stable (… maybe longer with -current/-head in general) … especially with parallel makes (-j12) on amd64.   I wasn’t 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='nm' NMFLAGS='' 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’ve 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 … but it would be nice to get this parallel build fixed.



Building the lib alone works:

root at 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 at 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=gnu99 -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=gnu99 -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=gnu99 -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=gnu99 -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=gnu99 -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='nm' NMFLAGS='' 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='nm' NMFLAGS='' 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=libgeom.so.5.debug  libgeom.so.5.full libgeom.so.5
gzip -cn /usr/src/lib/libgeom/libgeom.3 > libgeom.3.gz
root at borg:/usr/src/lib/libgeom #




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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20160827/5fca11f3/attachment.sig>


More information about the freebsd-stable mailing list