Re: 7_STABLE build fails

2018-02-04 Thread Chavdar Ivanov
I have been using sysutils/sysbuild and sysupdate for quite some time. One
spends a few minutes setting up, then the procedure is consistent. I used
to build everything overnight, sysupdate in the morning.

Chavdar

On Sat, 3 Feb 2018, 19:14 Gua Chung Lim,  wrote:

> * Gua Chung Lim (gua.chung...@gmail.com) wrote:
> > * Fekete Zoltn (fekete.zol...@minux.hu) wrote:
> > > Appending -u after -U does solve the problem?
> > I fixed it. I simply do ./build.sh kernel=GENERIC, without any options.
> >
> > lim@netbsd:~% uname -a
> > NetBSD netbsd.localdomain 7.1_STABLE NetBSD 7.1_STABLE (GENERIC) #0: Sat
> Feb  3 21:55:51 +07 2018  
> root@netbsd.localdomain:/usr/obj/sys/arch/amd64/compile/GENERIC
> amd64
> >
> > I'm now building distribution.
> > To see if it gets compiled.
> build distribution completed. :-)
>
> But I still doubt some questions.
> Normally I cvs source tree once a month. And I do this procedure in order.
> ref:
> http://www.netbsd.org/docs/guide/en/chap-updating.html#updating-procedure
>
> # cd /usr/src
> # cvs update -Pd (I always adhere with _STABLE.)
> # ./build.sh -r -O ../obj -T ../tools -U distribution
> # ./build.sh -O ../obj -T ../tools -U kernel=GENERIC
> # mv /netbsd /netbsd.old
> # mv /usr/obj/sys/arch/amd64/compile/GENERIC/netbsd /
> # shutdown -r now
> Distribution was compiled and kernel was compiled and installed. Then
> reboot.
> # cd /usr/src
> # ./build.sh -O ../obj -T ../tools -U install=/
> # /usr/sbin/etcupdate [-s /usr/src]
> # shutdown -r now
> The procedure above works most of the times, except this time.
>
> This time my first build distribution failed (I didn't log).
> I did googling, someone said "kernel should be built prior to
> distribution".
> But ONLY build kernel WITHOUT any options i.e. ./build.sh kernel=GENERIC
> works.
> And I change some order i.e. build and install kernel before build
> distribution.
> And install distribution after reboot. This procudure works for this time.
>
> My questions are...
> 1. In correct order, which one to build first between kernel and
> distribution?
> 2. When to build distribution? I was told, sometimes build distribution is
> not required.
> 3. When to use options -O ../obj -T ../obj? As sometimes without options
> it compiles.
> 4. On fresh installed system from iso, is ./build.sh tools always required?
>
> build.sh is only a script, ./build.sh -help is not much detailed as man
> pages.
>
> Thank you,
>
> --
> Gua Chung Lim
>
> To live is to love.
>


Re: 7_STABLE build fails

2018-02-03 Thread Gua Chung Lim
* Gua Chung Lim (gua.chung...@gmail.com) wrote:
> * Fekete Zoltn (fekete.zol...@minux.hu) wrote:
> > Appending -u after -U does solve the problem?
> I fixed it. I simply do ./build.sh kernel=GENERIC, without any options.
> 
> lim@netbsd:~% uname -a
> NetBSD netbsd.localdomain 7.1_STABLE NetBSD 7.1_STABLE (GENERIC) #0: Sat Feb  
> 3 21:55:51 +07 2018  
> root@netbsd.localdomain:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
> 
> I'm now building distribution.
> To see if it gets compiled.
build distribution completed. :-)

But I still doubt some questions.
Normally I cvs source tree once a month. And I do this procedure in order.
ref: http://www.netbsd.org/docs/guide/en/chap-updating.html#updating-procedure

# cd /usr/src
# cvs update -Pd (I always adhere with _STABLE.)
# ./build.sh -r -O ../obj -T ../tools -U distribution
# ./build.sh -O ../obj -T ../tools -U kernel=GENERIC
# mv /netbsd /netbsd.old
# mv /usr/obj/sys/arch/amd64/compile/GENERIC/netbsd /
# shutdown -r now
Distribution was compiled and kernel was compiled and installed. Then reboot.
# cd /usr/src
# ./build.sh -O ../obj -T ../tools -U install=/
# /usr/sbin/etcupdate [-s /usr/src]
# shutdown -r now
The procedure above works most of the times, except this time.

This time my first build distribution failed (I didn't log).
I did googling, someone said "kernel should be built prior to distribution".
But ONLY build kernel WITHOUT any options i.e. ./build.sh kernel=GENERIC works.
And I change some order i.e. build and install kernel before build distribution.
And install distribution after reboot. This procudure works for this time.

My questions are...
1. In correct order, which one to build first between kernel and distribution?
2. When to build distribution? I was told, sometimes build distribution is not 
required.
3. When to use options -O ../obj -T ../obj? As sometimes without options it 
compiles.
4. On fresh installed system from iso, is ./build.sh tools always required?

build.sh is only a script, ./build.sh -help is not much detailed as man pages.

Thank you,

-- 
Gua Chung Lim
 
To live is to love.


Re: 7_STABLE build fails

2018-02-03 Thread Gua Chung Lim
* Fekete Zoltn (fekete.zol...@minux.hu) wrote:
> Appending -u after -U does solve the problem?
I fixed it. I simply do ./build.sh kernel=GENERIC, without any options.

lim@netbsd:~% uname -a
NetBSD netbsd.localdomain 7.1_STABLE NetBSD 7.1_STABLE (GENERIC) #0: Sat Feb  3 
21:55:51 +07 2018  
root@netbsd.localdomain:/usr/obj/sys/arch/amd64/compile/GENERIC amd64

I'm now building distribution.
To see if it gets compiled.

Thank you,

-- 
Gua Chung Lim
 
To live is to love.


Re: 7_STABLE build fails

2018-02-03 Thread Fekete Zoltán

Hi,

Appending -u after -U does solve the problem?

FeZ


On 2018. február 3. du. 3:36:50 Gua Chung Lim  wrote:


Hi all,

This weekend I cvs(ed) source tree as usual.
Normally, I do it every month.
But this time build failed as followings.
Error message said /usr/tools/bin/nbconfig does not exist.
"./build.sh tools" is required.
But, I've already done "./build.sh tools". Actually, I did many times.
But this error keeps happening.
How to solve it?

Thanks in advance.

root@netbsd:/usr/src# ./build.sh -O ../obj -T ../tools -U kernel=GENERIC
===> build.sh command:./build.sh -O ../obj -T ../tools -U kernel=GENERIC
===> build.sh started:Sat Feb  3 21:10:32 +07 2018
===> NetBSD version:  7.1_STABLE
===> MACHINE: amd64
===> MACHINE_ARCH:x86_64
===> Build platform:  NetBSD 7.1_STABLE amd64
===> HOST_SH: /bin/sh
===> MAKECONF file:   /etc/mk.conf
===> TOOLDIR path:/usr/src/../tools
===> DESTDIR path:/usr/src/../obj/destdir.amd64
===> RELEASEDIR path: /usr/src/../obj/releasedir
===> Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
===> Building kernel without building new tools
===> Building kernel: GENERIC
===> Build directory: /usr/src/../obj/sys/arch/amd64/compile/GENERIC
(cd /usr/obj/sys/arch/amd64/compile/GENERIC && rm -f a.out [Ee]rrs mklog 
core *.core .gdbinit || true)


ERROR: /usr/src/../tools/bin/nbconfig does not exist. You need to 
"./build.sh tools" first.

*** BUILD ABORTED ***
root@netbsd:/usr/src#
root@netbsd:/usr/src# uname -a
NetBSD netbsd.localdomain 7.1_STABLE NetBSD 7.1_STABLE (GENERIC) #5: Wed 
Jan  3 20:11:41 +07 2018  
root@netbsd.localdomain:/usr/obj/sys/arch/amd64/compile/GENERIC amd64

root@netbsd:/usr/src# cd ../tools/bin
root@netbsd:/usr/tools/bin# ls -l
total 178
-rwxr-xr-x  1 root  wheel  180135 Feb  3 20:40 nbmake*
-rwxr-xr-x  1 root  wheel1066 Feb  3 21:10 nbmake-amd64*
root@netbsd:/usr/tools/bin#

--
Gua Chung Lim

To live is to love.





7_STABLE build fails

2018-02-03 Thread Gua Chung Lim
Hi all,

This weekend I cvs(ed) source tree as usual.
Normally, I do it every month.
But this time build failed as followings.
Error message said /usr/tools/bin/nbconfig does not exist.
"./build.sh tools" is required.
But, I've already done "./build.sh tools". Actually, I did many times.
But this error keeps happening.
How to solve it?

Thanks in advance.

root@netbsd:/usr/src# ./build.sh -O ../obj -T ../tools -U kernel=GENERIC
===> build.sh command:./build.sh -O ../obj -T ../tools -U kernel=GENERIC
===> build.sh started:Sat Feb  3 21:10:32 +07 2018
===> NetBSD version:  7.1_STABLE
===> MACHINE: amd64
===> MACHINE_ARCH:x86_64
===> Build platform:  NetBSD 7.1_STABLE amd64
===> HOST_SH: /bin/sh
===> MAKECONF file:   /etc/mk.conf
===> TOOLDIR path:/usr/src/../tools
===> DESTDIR path:/usr/src/../obj/destdir.amd64
===> RELEASEDIR path: /usr/src/../obj/releasedir
===> Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
===> Building kernel without building new tools
===> Building kernel: GENERIC
===> Build directory: /usr/src/../obj/sys/arch/amd64/compile/GENERIC
(cd /usr/obj/sys/arch/amd64/compile/GENERIC && rm -f a.out [Ee]rrs mklog core 
*.core .gdbinit || true) 

ERROR: /usr/src/../tools/bin/nbconfig does not exist. You need to "./build.sh 
tools" first.
*** BUILD ABORTED ***
root@netbsd:/usr/src#
root@netbsd:/usr/src# uname -a
NetBSD netbsd.localdomain 7.1_STABLE NetBSD 7.1_STABLE (GENERIC) #5: Wed Jan  3 
20:11:41 +07 2018  
root@netbsd.localdomain:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
root@netbsd:/usr/src# cd ../tools/bin
root@netbsd:/usr/tools/bin# ls -l
total 178
-rwxr-xr-x  1 root  wheel  180135 Feb  3 20:40 nbmake*
-rwxr-xr-x  1 root  wheel1066 Feb  3 21:10 nbmake-amd64*
root@netbsd:/usr/tools/bin#

-- 
Gua Chung Lim
 
To live is to love.