Solved buildworld/installworld errors

balanga

Son of Beastie

Reaction score: 106
Messages: 2,514

I'm a little out of my depth here, so go easy on me :)

After around seven hours of trying to build/install world using these instructions:-
Code:
cd /
fetch http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/12.0-RELEASE/src.txz
tar zxf src.txz
cd /usr/src
setenv TARGET_ARCH arm
setenv TARGET arm
make -j 8 buildworld TARGET_ARCH=arm -DWITH_FDT
make -j 8 buildkernel TARGET_ARCH=arm KERNCONF=DB-88F6XXX

make installworld TARGET_ARCH=arm DESTDIR=/var/nfsroot
make distribution TARGET_ARCH=arm DESTDIR=/var/nfsroot

#make installkernel TARGET_ARCH=arm KERNCONF=DB-88F6XXX DESTDIR=
I ended up with:-
Code:
--------------------------------------------------------------
>>> Kernel build for DB-88F6XXX completed on Wed Mar 13 19:40:12 GMT 2019
--------------------------------------------------------------
make[1]: "/usr/obj/usr/src/arm.arm/toolchain-metadata.mk" line 1: Using cached toolchain metadata from build at Server on Wed Mar 13 12:31:07 GMT 2019
ERROR: Required ntpd user is missing, see /usr/src/UPDATING.
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1


Stop.
make: stopped in /usr/src
cd /usr/src/etc; MACHINE_ARCH=arm  MACHINE=arm  CPUTYPE= CC="cc -target arm-gnueabi-freebsd12.0 --sysroot=/usr/obj/usr/src/arm.arm/tmp -B/usr/obj/usr/src/arm.arm/tmp/usr
/bin" CXX="c++  -target arm-gnueabi-freebsd12.0 --sysroot=/usr/obj/usr/src/arm.arm/tmp -B/usr/obj/usr/src/arm.arm/tmp/usr/bin"  CPP="cpp -target arm-gnueabi-freebsd12.0
--sysroot=/usr/obj/usr/src/arm.arm/tmp -B/usr/obj/usr/src/arm.arm/tmp/usr/bin"  AS="as" AR="ar" LD="ld" LLVM_LINK=""  NM=nm OBJCOPY="objcopy"  RANLIB=ranlib STRINGS=  SI
ZE="size" PATH=/usr/obj/usr/src/arm.arm/tmp/legacy/usr/sbin:/usr/obj/usr/src/arm.arm/tmp/legacy/usr/bin:/usr/obj/usr/src/arm.arm/tmp/legacy/bin:/usr/obj/usr/src/arm.arm/
tmp/usr/sbin:/usr/obj/usr/src/arm.arm/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin make  INSTALL="install -N /usr/src/etc" MTREE_CMD="mtree -N /usr/src/etc" METALOG= distri
bution
cd /usr/src/etc;  install -N /usr/src/etc -o root -g wheel -m 644  group  login.access  rc.bsdextended  rc.firewall  termcap.small rc.sendmail /var/nfsroot/etc;  install
-N /usr/src/etc -o root -g wheel -m 600  master.passwd /var/nfsroot/etc;
install: target directory `/var/nfsroot/etc' does not exist
usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
               [-M log] [-D dest] [-h hash] [-T tags]
               [-B suffix] [-l linkflags] [-N dbdir]
               file1 file2
       install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
               [-M log] [-D dest] [-h hash] [-T tags]
               [-B suffix] [-l linkflags] [-N dbdir]
               file1 ... fileN directory
       install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner]
               [-M log] [-D dest] [-h hash] [-T tags]
               directory ...
*** Error code 64

Stop.
make[2]: stopped in /usr/src/etc
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

Command exit status: 1
Script done on Wed Mar 13 19:40:14 2019
From the above I take it I need to add the user ntpd... but do I need to run this process again for another seven hours?

As for a missing /var/nfsroot/etc, am I supposed to create that before running make installworld?
 

ljboiler

Well-Known Member

Reaction score: 96
Messages: 328

Maybe you have things out of order.

I always thought it was:
Code:
buildworld
buildkernel
installkernel
installworld
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,073
Messages: 29,218

Run mergemaster -p before installworld.
 
Top