Failed make buildworld on 5.6.2
Chris Collinson
chriscollinson at toughnode.com
Sun Dec 8 11:13:35 PST 2019
I am a new user. I am running into problems trying to rebuild the system
from source on my Thinkpad x230. I have been following the instructions
in the Handbook on upgrading [1]. Any help pointing me in the right
direction would be appreciated. My understanding/assumptions:
- that some security and bug fixes make it into the latest stable
branch, for example [2].
- that whilst periodically there is a point release which includes bug
and security fixes i.e. 5.6.2, in the meantime I can download the
updated source code for the stable branch and rebuild my
system to take advantage of fixes (I know it doesn't actually say that
in the Handbook, and that may be where I am going wrong).
I get the following error when I issue "make buildworld":
collect2: fatal error: ld terminated with signal 11 [Segmentation fault],
core dumped
I can't see anything in the make or make.conf manpage which might help.
Perhaps this is a bug in ld (see [3] and [4])? But if so why is it just
me having the issue? I find it easier to believe that I am just doing
something wrong.
Thanks.
Chris
[1] https://www.dragonflybsd.org/docs/handbook/Upgrading/
[2]
http://lists.dragonflybsd.org/pipermail/commits/2019-November/720105.html
[3]
https://stackoverflow.com/questions/25371372/collect2-error-ld-terminated-with-signal-11-segmentation-fault-core-dumped
[4] https://bugzilla.redhat.com/show_bug.cgi?id=1557346
$ uname -a DragonFly 5.6-RELEASE DragonFly v5.6.2-RELEASE #3: Sat Aug
10 10:28:36 EDT 2019
root at www.shiningsilence.com:/usr/obj/home/justin/release/5_6/sys/X86_64_GENERIC
x86_64
# pwd
/usr/src
# git checkout DragonFly_RELEASE_5_6
Already on 'DragonFly_RELEASE_5_6' Your branch is up to date with
'origin/DragonFly_RELEASE_5_6'.
# make -d e buildworld
[...]
make[5]:
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/.depend,
219: ignoring stale .depend for
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/lib/libc.a make[5]:
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/.depend,
219: ignoring stale .depend for
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/lib/libl.a make[5]:
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/.depend,
219: ignoring stale .depend for
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/lib/libz.a cc -pipe -O
-I/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/bulibs
-I/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/bulibs
-I/usr/src/gnu/usr.bin/binutils227/block2/ar/../../../../../contrib/binutils-2.27/include
-I/usr/src/gnu/usr.bin/binutils227/block2/ar/../../../../../contrib/binutils-2.27/bfd
-I/usr/src/gnu/usr.bin/binutils227/block2/ar/../../../../../contrib/binutils-2.27/binutils
-Dbin_dummy_emulation=bin_vanilla_emulation -std=gnu99 -o ar ar.o
not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o arparse.o arlex.o
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/bulibs/libbu.a
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/libbfd/libbfd.a
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/libiberty/libiberty.a
-ll -lz
collect2: fatal error: ld terminated with signal 11
[Segmentation fault], core dumped compilation terminated.
*** Failed target: ar *** Failed command: cc -pipe -O
-I/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/bulibs
-I/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/bulibs
-I/usr/src/gnu/usr.bin/binutils227/block2/ar/../../../../../contrib/binutils-2.27/include
-I/usr/src/gnu/usr.bin/binutils227/block2/ar/../../../../../contrib/binutils-2.27/bfd
-I/usr/src/gnu/usr.bin/binutils227/block2/ar/../../../../../contrib/binutils-2.27/binutils
-Dbin_dummy_emulation=bin_vanilla_emulation -std=gnu99 -o ar ar.o
not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o arparse.o arlex.o
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/bulibs/libbu.a
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/libbfd/libbfd.a
/usr/obj/usr/src/ctools_x86_64_x86_64/usr/src/gnu/usr.bin/binutils227/block2/ar/../../block1/libiberty/libiberty.a
-ll -lz *** Error code 1
Stop. make[5]: stopped in /usr/src/gnu/usr.bin/binutils227/block2/ar
*** Failed target: _SUBDIR_all_ar *** Failed command: (if test -d
/usr/src/gnu/usr.bin/binutils227/block2/ar.x86_64; then echo "===>
gnu/usr.bin/binutils227/block2/ar.x86_64"; edir=ar.x86_64; cd
/usr/src/gnu/usr.bin/binutils227/block2/${edir}; else echo "===>
gnu/usr.bin/binutils227/block2/ar"; edir=ar; cd
/usr/src/gnu/usr.bin/binutils227/block2/${edir}; fi; make all
DIRPRFX=gnu/usr.bin/binutils227/block2/$edir/;) *** Error code 1
Stop. make[4]: stopped in /usr/src/gnu/usr.bin/binutils227/block2
*** Failed target: _SUBDIR_all_block2 *** Failed command: (if test -d
/usr/src/gnu/usr.bin/binutils227/block2.x86_64; then echo "===>
gnu/usr.bin/binutils227/block2.x86_64"; edir=block2.x86_64; cd
/usr/src/gnu/usr.bin/binutils227/${edir}; else echo "===>
gnu/usr.bin/binutils227/block2"; edir=block2; cd
/usr/src/gnu/usr.bin/binutils227/${edir}; fi; make all
DIRPRFX=gnu/usr.bin/binutils227/$edir/;) *** Error code 1
Stop. make[3]: stopped in /usr/src/gnu/usr.bin/binutils227
*** Failed target: ctools-gnu/usr.bin/binutils227 *** Failed command:
echo "===> gnu/usr.bin/binutils227 (cross-tools)"; cd
/usr/src/gnu/usr.bin/binutils227; make DIRPRFX=gnu/usr.bin/binutils227/
obj && make DIRPRFX=gnu/usr.bin/binutils227/ depend && make
DIRPRFX=gnu/usr.bin/binutils227/ all && make
DIRPRFX=gnu/usr.bin/binutils227/
DESTDIR=/usr/obj/usr/src/ctools_x86_64_x86_64 install *** Error code 1
Stop. make[2]: stopped in /usr/src .CURDIR='/usr/src'
.OBJDIR='/usr/src' .TARGETS='cross-tools'
.ERROR_TARGET='ctools-gnu/usr.bin/binutils227' .MAKE.LEVEL='2'
.MAKE.MODE=''
PATH='/usr/obj/usr/src/btools_x86_64/usr/sbin:/usr/obj/usr/src/btools_x86_64/usr/bin:/usr/obj/usr/src/btools_x86_64/sbin:/usr/obj/usr/src/btools_x86_64/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/pkg/bin'
LD_LIBRARY_PATH='' MACHINE_ARCH='x86_64' MACHINE='x86_64' MAKEFILE=''
MAKESYSPATH='' MAKEOBJDIRPREFIX='/usr/obj/usr/src/ctools_x86_64_x86_64'
WORLD_ALTCOMPILER='gcc47'
DESTDIR='/usr/obj/usr/src/ctools_x86_64_x86_64' SHELL='/bin/csh'
.SHELL=''
.MAKE.MAKEFILES='/usr/src/share/mk/sys.mk /etc/defaults/make.conf
/usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/bsd.cpu.gcc80.mk
Makefile.inc1 /usr/src/share/mk/bsd.subdir.mk
/usr/src/share/mk/bsd.init.mk /usr/src/share/mk/bsd.own.mk' .PATH='.
/usr/src'
*** Failed target: _cross-tools *** Failed command: cd /usr/src;
MAKEOBJDIRPREFIX=/usr/obj/usr/src/ctools_x86_64_x86_64 OBJTREE=/usr/obj
DESTDIR=/usr/obj/usr/src/ctools_x86_64_x86_64 LC_ALL=C
_SHLIBDIRPREFIX=/usr/obj/usr/src/ctools_x86_64_x86_64 INSTALL="sh
/usr/src/tools/install.sh"
TOOLS_PREFIX=/usr/obj/usr/src/ctools_x86_64_x86_64
USRDATA_PREFIX=/usr/obj/usr/src/world_x86_64 SELECT_LINKER=ld.gold
M4=/usr/obj/usr/src/btools_x86_64/usr/bin/m4
PATH=/usr/obj/usr/src/btools_x86_64/usr/sbin:/usr/obj/usr/src/btools_x86_64/usr/bin:/usr/obj/usr/src/btools_x86_64/sbin:/usr/obj/usr/src/btools_x86_64/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/pkg/bin
make -f Makefile.inc1 -DNO_GDB -DBOOTSTRAPPING -DNOMAN -DNOSHARED
-DSYSBUILD cross-tools *** Error code 1
Stop. make[1]: stopped in /usr/src .CURDIR='/usr/src'
.OBJDIR='/usr/obj/usr/src' .TARGETS='buildworld'
.ERROR_TARGET='_cross-tools' .MAKE.LEVEL='1' .MAKE.MODE=''
PATH='/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/pkg/bin'
LD_LIBRARY_PATH='' MACHINE_ARCH='x86_64' MACHINE='x86_64' MAKEFILE=''
MAKESYSPATH='' MAKEOBJDIRPREFIX='/usr/obj' WORLD_ALTCOMPILER='gcc47'
DESTDIR='' SHELL='/bin/csh'
.SHELL=''
.MAKE.MAKEFILES='/usr/src/share/mk/sys.mk /etc/defaults/make.conf
/usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/bsd.cpu.gcc80.mk
/usr/src/Makefile.inc1 /usr/src/share/mk/bsd.subdir.mk
/usr/src/share/mk/bsd.init.mk /usr/src/share/mk/bsd.own.mk' .PATH='.
/usr/src'
*** Failed target: buildworld *** Failed command: cd /usr/src;
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/pkg/bin make -m
/usr/src/share/mk -f Makefile.inc1 buildworld *** Error code 1
Stop. make: stopped in /usr/src
More information about the Users
mailing list