Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/build.sh error

7 views
Skip to first unread message

Kieran Jacobsen

unread,
Feb 23, 2011, 7:39:37 AM2/23/11
to
Hi All,

I have a cobalt 2 running 5.1 RC4, which I am working on getting to 5.1 stable. I am using http://netbsd.org/docs/updating.html as a guide.

Whilst SU-ed into ROOT and in /usr/src, I perform the commands:

./build.sh -O ../obj -T ../tools tools
./build.sh -O ../obj -T ../tools kernel=GENERIC

Which complete quickly and sucessfully

I am currently running the following command: ./build.sh -O ../obj -T ../tools -U distribution

After about 2 days this aborts the make distribution with the following error:

./stand/cobalt/5.1_STABLE/modules/umapfs/umapfs.kmod
./stand/cobalt/5.1_STABLE/modules/union
./stand/cobalt/5.1_STABLE/modules/union/union.kmod
./usr/share/man/cat4/btmagic.0
./usr/share/man/html4/btmagic.html
./usr/share/man/man4/btmagic.4
========= end of 123 extra files ===========


*** Failed target: checkflist
*** Failed command: cd /usr/src/distrib/sets && DESTDIR=/usr/src/../obj/destdird
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/sets

*** Failed target: distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; cast
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make distribution
*** BUILD ABORTED ***


Does anyone have any suggestions on how I can resolve this error? I have double checked that cvs has correctly updated everything else.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Izumi Tsutsui

unread,
Feb 24, 2011, 9:28:57 AM2/24/11
to
> ========= end of 123 extra files ===========

Check timestamps of these extra files.

---
Izumi Tsutsui

Izumi Tsutsui

unread,
Feb 24, 2011, 10:21:36 AM2/24/11
to
> bash-4.1# ls -lah /usr/src/../obj/destdir.cobalt/stand/cobalt/5.1_STABLE/modules/umapfs/umapfs.kmod
> -r--r--r-- 1 root wheel 16K Feb 17 11:21 /usr/src/../obj/destdir.cobalt/stand/cobalt/5.1_STABLE/modules/umapfs/umapfs.kmod

Hmm, if they are actualy built during the last build.sh, no problem.

> Could this be a permissions issue?

No, but it looks set list files under src/distrib/sets/lists are broken.
Check if they are taken from the correct branch. (see CVS/Entries)

% grep umapfs.kmod src/distrib/sets/lists/base/lkm.mi
./@MODULEDIR@/umapfs/umapfs.kmod base-kernel-modules
% grep btmagic.0 src/distrib/sets/lists/man/mi
./usr/share/man/cat4/btmagic.0 man-sys-catman .cat
%

Kieran Jacobsen

unread,
Feb 24, 2011, 9:53:42 AM2/24/11
to
Ok...

bash-4.1# ls -lah /usr/src/../obj/destdir.cobalt/stand/cobalt/5.1_STABLE/modules/umapfs/umapfs.kmod
-r--r--r-- 1 root wheel 16K Feb 17 11:21 /usr/src/../obj/destdir.cobalt/stand/cobalt/5.1_STABLE/modules/umapfs/umapfs.kmod

Could this be a permissions issue?

Kieran Jacobsen

unread,
Feb 27, 2011, 4:59:08 AM2/27/11
to
-bash-4.1$ grep umapfs.kmod src/distrib/sets/lists/base/lkm.mi
grep: src/distrib/sets/lists/base/lkm.mi: No such file or directory

I am guessing the CVS sync didn't occur correctly then?

-----Original Message-----
From: Izumi Tsutsui [mailto:tsu...@ceres.dti.ne.jp]
Sent: Friday, 25 February 2011 1:22 AM
To: Kieran Jacobsen
Cc: port...@NetBSD.org; tsu...@ceres.dti.ne.jp
Subject: Re: /build.sh error

> bash-4.1# ls -lah /usr/src/../obj/destdir.cobalt/stand/cobalt/5.1_STABLE/modules/umapfs/umapfs.kmod
> -r--r--r-- 1 root wheel 16K Feb 17 11:21 /usr/src/../obj/destdir.cobalt/stand/cobalt/5.1_STABLE/modules/umapfs/umapfs.kmod

Hmm, if they are actualy built during the last build.sh, no problem.

> Could this be a permissions issue?

No, but it looks set list files under src/distrib/sets/lists are broken.


Check if they are taken from the correct branch. (see CVS/Entries)

% grep umapfs.kmod src/distrib/sets/lists/base/lkm.mi
./@MODULEDIR@/umapfs/umapfs.kmod base-kernel-modules
% grep btmagic.0 src/distrib/sets/lists/man/mi
./usr/share/man/cat4/btmagic.0 man-sys-catman .cat
%

Izumi Tsutsui

unread,
Mar 4, 2011, 8:16:12 AM3/4/11
to
> I am guessing the CVS sync didn't occur correctly then?

No idea about cvs environment, but errors were caused by
inconsistent source tree.

Kieran Jacobsen

unread,
Mar 4, 2011, 7:05:37 PM3/4/11
to
Hmm, I might try hitting another mirror and will see what is happening.

-----Original Message-----
From: Izumi Tsutsui [mailto:tsu...@ceres.dti.ne.jp]
Sent: Friday, 4 March 2011 11:16 PM
To: Kieran Jacobsen
Cc: port...@NetBSD.org; tsu...@ceres.dti.ne.jp
Subject: Re: /build.sh error

> I am guessing the CVS sync didn't occur correctly then?

No idea about cvs environment, but errors were caused by inconsistent source
tree.

---
Izumi Tsutsui

Kieran Jacobsen

unread,
Mar 5, 2011, 3:01:02 AM3/5/11
to
What are you using to maintain your source tree?

-----Original Message-----
From: Izumi Tsutsui <tsu...@ceres.dti.ne.jp>
Sent: Friday, 4 March 2011 11:16 PM

To: Kieran Jacobsen <kie...@kjacobsen.net>
Cc: port...@NetBSD.org <port...@NetBSD.org>; tsu...@ceres.dti.ne.jp <tsu...@ceres.dti.ne.jp>
Subject: Re: /build.sh error

> I am guessing the CVS sync didn't occur correctly then?

No idea about cvs environment, but errors were caused by
inconsistent source tree.

---

Izumi Tsutsui

unread,
Mar 5, 2011, 6:12:26 AM3/5/11
to
> What are you using to maintain your source tree?

I think anoncvs.NetBSD.org is enough,
but source sets in daily build is easier
to fetch the latest netbsd-5 sources.

http://nyftp.NetBSD.org/pub/NetBSD-daily/netbsd-5/201103040500Z/source/sets/
http://releng.NetBSD.org/

Kieran Jacobsen

unread,
Mar 15, 2011, 5:57:56 AM3/15/11
to
Ok, downloaded the latest set of sources and extracted them to /usr/src. And now things look pretty much the same after running the build.sh again.

./usr/share/man/man8/dnssec-dsfromkey.8
./usr/share/man/man8/dnssec-keyfromlabel.8
./usr/share/man/man8/dnssec-revoke.8
./usr/share/man/man8/dnssec-settime.8
========= end of 203 extra files ===========


*** Failed target: checkflist
*** Failed command: cd /usr/src/distrib/sets && DESTDIR=/usr/src/../obj/destdir.cobalt MACHINE=cobalt MACHINE_ARCH=mipsel AWK=/usr/src/../tools/bin/nbawk CKSUM=/usr/src/../tools/bin/nbcksum DB=/usr/src/../tools/bin/nbdb HOST_SH=/bin/sh MAKE=/usr/src/../tools/bin/nbmake MKTEMP=/usr/src/../tools/bin/nbmktemp MTREE=/usr/src/../tools/bin/nbmtree PAX=/usr/src/../tools/bin/nbpax SED=/usr/src/../tools/bin/nbsed TSORT=/usr/src/../tools/bin/nbtsort\ -q /bin/sh /usr/src/distrib/sets/checkflist -M /usr/src/../obj/destdir.cobalt/METALOG.sanitised
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/sets

*** Failed target: distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget distrib/sets checkflist
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make distribution
*** BUILD ABORTED ***

-----Original Message-----
From: port-mi...@NetBSD.org [mailto:port-mi...@NetBSD.org] On Behalf Of Izumi Tsutsui
Sent: Saturday, 5 March 2011 9:12 PM
To: Kieran Jacobsen

Cc: port...@NetBSD.org; tsu...@ceres.dti.ne.jp
Subject: Re: /build.sh error

Izumi Tsutsui

unread,
Mar 15, 2011, 10:08:14 AM3/15/11
to
> Ok, downloaded the latest set of sources and extracted them to /usr/src.
> And now things look pretty much the same after running the build.sh again.
>
> ./usr/share/man/man8/dnssec-dsfromkey.8
> ./usr/share/man/man8/dnssec-keyfromlabel.8
> ./usr/share/man/man8/dnssec-revoke.8
> ./usr/share/man/man8/dnssec-settime.8
> ========= end of 203 extra files ===========

Well, different files so not same, but
does your host have any definitions in /etc/mk.conf or
shell environment values, like "MKfoo=no" or "NOfoo=" etc?

Kieran Jacobsen

unread,
Mar 15, 2011, 10:35:01 AM3/15/11
to
It is interesting that yes there are more files, I suspect it's the same from last + extras. Perhaps I didn't clean up enough after the failed build based off CVS?

cat /etc/mk.conf

WRKOBJDIR=/usr/work
DISTDIR=/usr/distfiles
PKG_RCD_SCRIPTS=YES

Env print out


TERM=xterm
SHELL=/bin/csh
SSH_CLIENT=172.16.0.100 21909 22
SSH_TTY=/dev/ttyp0
USER=<removed>
ENV=/home/<removed>/.shrc
PAGER=more
MAIL=/var/mail/<removed>
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
EXINIT=set autoindent
PWD=/home/<removed>
EDITOR=vi
SHLVL=1
HOME=/root
LOGNAME=<removed>
SSH_CONNECTION=<removed>
_=/usr/bin/su
SU_FROM=<removed>
BLOCKSIZE=1k

-----Original Message-----
From: Izumi Tsutsui [mailto:tsu...@ceres.dti.ne.jp]
Sent: Wednesday, 16 March 2011 12:08 AM
To: Kieran Jacobsen
Cc: port...@NetBSD.org; tsu...@ceres.dti.ne.jp
Subject: Re: /build.sh error

Izumi Tsutsui

unread,
Mar 16, 2011, 9:40:34 AM3/16/11
to
> It is interesting that yes there are more files,
> I suspect it's the same from last + extras.
> Perhaps I didn't clean up enough after the failed build based off CVS?

It's better to remove all files under DESTDIR before build,
and also all files under /usr/src before extracting new sets.

Kieran Jacobsen

unread,
Apr 5, 2011, 6:50:23 PM4/5/11
to
Just thought I should let you all know, I removed all files in DESTDIR, reran build.sh and everything worked.

-----Original Message-----
From: Izumi Tsutsui [mailto:tsu...@ceres.dti.ne.jp]
Sent: Wednesday, 16 March 2011 11:41 PM
To: Kieran Jacobsen
Cc: port...@NetBSD.org; tsu...@ceres.dti.ne.jp
Subject: Re: /build.sh error

0 new messages