List Info

Thread: Re: make release abends with "*** Error code 1"




Re: make release abends with "*** Error code 1"
user name
2007-01-19 19:09:00
Woodchuck <djvbedford.net> writes:
> On Fri, 19 Jan 2007, Perry E. Metzger wrote:
>
>> Woodchuck <djvbedford.net> writes:
>>> On this machine: NetBSD jezebel.chuck
3.1_STABLE NetBSD 3.1_STABLE
>>> (GENERIC) #0:
>>> 	Wed Jan 17 15:08:30 EST 2007
>>>
>>> the commands:
>>> cd /usr/src
>>> make release 2>&1 | tee /home/make.out
>>>
>>> are failing.  This error is repeatable.
>>
>> I'd suggest using build.sh instead of "make
release". It also looks
>> like you may be missing some of the error message
information, though
>> I'm not sure why.
>>
>> Perry
>
> Trust me, the sample command above (make release
2>...) is *cut
> and pasted* from the command history, and the total
output put up
> at the website is unedited.
>
> Googling various archives for Net- Free- and OpenBSD
show that your
> response is a typical one going back several years , namely
> "Where are the error messages?" And indeed I
share your mystification
> about that.  I have the feeling that there is a *bug*
somewhere,

I do builds all the time -- I've probably done several
hundred -- and
I don't generally have this problem when things error out.
The only
time I've seen error messages "vanish" this way is
when I fail to do a
make clean before re-building, and that usually only happens
if I'm
not using build.sh.

> script, called by make, which is "stingy"
with information, or that
> it is invoked with 2>/dev/null, as is sometimes done
by the "hurried"
> programmer.

You can grep through our source tree -- that's not happening
here.

> I suspect mtree, the command that seemed to have most
recently
> executed.  A cursory inspection of the source in
> /usr/src/usr.sbin/mtree/mtree.c shows this bit of code
near the
> end:
>
> 	status = verify();
> 	if (Uflag & (status == MISMATCHEXIT))
> 		status = 0;
> 	exit(status);
> }
>
> I feel like putting in a spoiler gap here, so that
readers could
> try to "spot that bug", but I won't 

That does indeed look like a bug -- thank you for spotting
it -- but I
suspect that is not, in fact, what is causing your issue. In
any case,
I'll see about fixing it.

Perry

Re: make release abends with "*** Error code 1"
user name
2007-01-19 20:44:50
On Fri, 19 Jan 2007, Perry E. Metzger wrote:

> >> I'd suggest using build.sh instead of
"make release". It also looks

OK

> I do builds all the time -- I've probably done several
hundred -- and
...

So do I.  Maybe 5 a year since 1995.  I agree, there is
usually more
meat to the output for an abend.  But google (for "***
Error code 1")
shoes lossage of error information to not be unique to me. 
(Notice how mtree collapses all error information to 0/1 in
its
return value, a minor but not unique example).

Anyway, I repeated with build.sh, using this command line:

./build.sh -U -u -D /home/destdir -R /home/release 
	-T /tooldir.NetBSD-3.1_STABLE-i386  release  2>&1 |

	tee /home/make.Friday.txt

with environment: (some unrelated stuff snipped away)

SHELL=/bin/ksh
BLOCKSIZE=1k
RELEASEDIR=/home/release
MKUPDATE=yes
DESTDIR=/home/destdir
ENV=/root/.kshrc

The build abended in the same place.  Same error, more error
messages
this time.  I am repeating the experiment now with an
altered mtree,
just for sport.

Output (last 75 or so lines, more on request).

#     strip  ramdiskbin
[
"/usr/src/distrib/i386/floppies/ramdisk-big/disktab.pre
install /usr/src/usr.sbin/dhcp/clientscript/dhclient-script
ramdiskbin
/usr/src/distrib/i386/floppies/ramdisk-big/../common/dot.pro
file
/usr/src/distrib/i386/floppies/ramdisk-big/../common/termcap
.mini /home/destdir/usr/mdec/boot
/home/destdir/usr/mdec/bootxx_ffsv1
/home/destdir/usr/mdec/mbr /home/destdir/usr/mdec/mbr_ext
/home/destdir/usr/mdec/mbr_bootsel /usr/src/etc/group
/usr/src/etc/master.passwd /usr/src/etc/netconfig
/usr/src/etc/protocols /usr/src/etc/services
/usr/src/etc/obj/MAKEDEV work.spec
/usr/src/distrib/common/parselist.awk
/usr/src/distrib/i386/floppies/ramdisk-big/list
/usr/src/distrib/i386/floppies/ramdisk-big/../common/list.ra
mdisk /usr/src/distrib/common/list.sysinst
/usr/src/distrib/common/list.makedev" = ramdiskbin -a
-f work.built -a work.built -nt ramdiskbin ]  || {  echo '# 
' "  build " ramdisk-big/work;  rm -rf work
work.built;  mkdir -m 755 work &&  
/tooldir.NetBSD-3.1_STABLE-i386/bin/nbmtree -def work.spec
-p work/ -UW &&  BOOTMODEL=big NETBSDSRCDIR=/usr/src
 CRUNCHBIN=ramdiskbin 
CURDIR=/usr/src/distrib/i386/floppies/ramdisk-big 
DESTDIR=/home/destdir  DISTRIBDIR=/usr/src/distrib 
MACHINE=i386  MACHINE_ARCH=i386 
MAKE=/tooldir.NetBSD-3.1_STABLE-i386/bin/nbmake 
OBJDIR=/usr/src/distrib/i386/floppies/ramdisk-big/obj
MAKEDEVSCRIPT=/usr/src/etc/obj/MAKEDEV
TARGETDIR=/usr/src/distrib/i386/floppies/ramdisk-big/obj/wor
k awk -f /usr/src/distrib/common/parselist.awk -v
mode=populate
/usr/src/distrib/i386/floppies/ramdisk-big/list
/usr/src/distrib/i386/floppies/ramdisk-big/../common/list.ra
mdisk /usr/src/distrib/common/list.sysinst
/usr/src/distrib/common/list.makedev
/usr/src/distrib/i386/floppies/ramdisk-big/list.inet6 |  sh
-e   && touch work.built ;  }
#     build  ramdisk-big/work
missing: ./bin (created)
missing: ./dev (created)
missing: ./etc (created)
missing: ./mnt (created)
missing: ./mnt2 (created)
missing: ./kern (created)
missing: ./sbin (created)
missing: ./targetroot (created)
missing: ./tmp (created)
missing: ./usr (created)
missing: ./usr/bin (created)
missing: ./usr/mdec (created)
missing: ./usr/sbin (created)
missing: ./usr/share (created)
missing: ./usr/share/misc (created)
missing: ./var (created)
missing: ./var/db (created)
missing: ./var/run (created)
missing: ./var/log (created)
missing: ./var/spool (created)
missing: ./var/spool/lock (created)

*** Failed target:  work.built
*** Failed command: [
"/usr/src/distrib/i386/floppies/ramdisk-big/disktab.pre
install /usr/src/usr.sbin/dhcp/clientscript/dhclient-script
ramdiskbin
/usr/src/distrib/i386/floppies/ramdisk-big/../common/dot.pro
file
/usr/src/distrib/i386/floppies/ramdisk-big/../common/termcap
.mini /home/destdir/usr/mdec/boot
/home/destdir/usr/mdec/bootxx_ffsv1
/home/destdir/usr/mdec/mbr /home/destdir/usr/mdec/mbr_ext
/home/destdir/usr/mdec/mbr_bootsel /usr/src/etc/group
/usr/src/etc/master.passwd /usr/src/etc/netconfig
/usr/src/etc/protocols /usr/src/etc/services
/usr/src/etc/obj/MAKEDEV work.spec
/usr/src/distrib/common/parselist.awk
/usr/src/distrib/i386/floppies/ramdisk-big/list
/usr/src/distrib/i386/floppies/ramdisk-big/../common/list.ra
mdisk /usr/src/distrib/common/list.sysinst
/usr/src/distrib/common/list.makedev" = ramdiskbin -a
-f work.built -a work.built -nt ramdiskbin ] || { echo '# '
" build " ramdisk-big/work; rm -rf work
work.built; mkdir -m 755 work &&
/tooldir.NetBSD-3.1_STABLE-i386/bin/nbmtree -def work.spec
-p work/ -UW && BOOTMODEL=big NETBSDSRCDIR=/usr/src
CRUNCHBIN=ramdiskbin
CURDIR=/usr/src/distrib/i386/floppies/ramdisk-big
DESTDIR=/home/destdir DISTRIBDIR=/usr/src/distrib
MACHINE=i386 MACHINE_ARCH=i386
MAKE=/tooldir.NetBSD-3.1_STABLE-i386/bin/nbmake
OBJDIR=/usr/src/distrib/i386/floppies/ramdisk-big/obj
MAKEDEVSCRIPT=/usr/src/etc/obj/MAKEDEV
TARGETDIR=/usr/src/distrib/i386/floppies/ramdisk-big/obj/wor
k awk -f /usr/src/distrib/common/parselist.awk -v
mode=populate
/usr/src/distrib/i386/floppies/ramdisk-big/list
/usr/src/distrib/i386/floppies/ramdisk-big/../common/list.ra
mdisk /usr/src/distrib/common/list.sysinst
/usr/src/distrib/common/list.makedev
/usr/src/distrib/i386/floppies/ramdisk-big/list.inet6 | sh
-e && touch work.built ; }
*** Error code 1

Stop.
nbmake: stopped in
/usr/src/distrib/i386/floppies/ramdisk-big

*** Failed target:  all-ramdisk-big
*** Failed command: _makedirtarget() { dir="$1";
shift; target="$1"; shift; case "$"
in /*) this="$/"; real="$" ;;
.) this="etc/i386/floppies/";
real="/usr/src/distrib/i386/floppies" ;; *)
this="etc/i386/floppies/$/";
real="/usr/src/distrib/i386/floppies/$" ;;
esac; show=${this:-.}; echo "$ ===>
${show%/}${1:+ (with: $)}"; cd "$"
&& /tooldir.NetBSD-3.1_STABLE-i386/bin/nbmake
_THISDIR_="$" "$" $; };
_makedirtarget ramdisk-big all
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/i386/floppies

*** Failed target:  all-floppies
*** Failed command: _makedirtarget() { dir="$1";
shift; target="$1"; shift; case "$"
in /*) this="$/"; real="$" ;;
.) this="etc/i386/";
real="/usr/src/distrib/i386" ;; *)
this="etc/i386/$/";
real="/usr/src/distrib/i386/$" ;; esac;
show=${this:-.}; echo "$ ===> ${show%/}${1:+
(with: $)}"; cd "$" &&
/tooldir.NetBSD-3.1_STABLE-i386/bin/nbmake
_THISDIR_="$" "$" $; };
_makedirtarget floppies all
*** Error code 1

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

*** Failed target:  all-i386
*** Failed command: _makedirtarget() { dir="$1";
shift; target="$1"; shift; case "$"
in /*) this="$/"; real="$" ;;
.) this="etc/"; real="/usr/src/distrib"
;; *) this="etc/$/";
real="/usr/src/distrib/$" ;; esac;
show=${this:-.}; echo "$ ===> ${show%/}${1:+
(with: $)}"; cd "$" &&
/tooldir.NetBSD-3.1_STABLE-i386/bin/nbmake
_THISDIR_="$" "$" $; };
_makedirtarget i386 all
*** Error code 1

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

*** Failed target:  snap_post
*** Failed command: cd /usr/src/distrib &&
/tooldir.NetBSD-3.1_STABLE-i386/bin/nbmake depend &&
/tooldir.NetBSD-3.1_STABLE-i386/bin/nbmake &&
/tooldir.NetBSD-3.1_STABLE-i386/bin/nbmake release
*** Error code 1

Stop.
nbmake: stopped in /usr/src/etc

*** Failed target:  release
*** Failed command: _makedirtarget() { dir="$1";
shift; target="$1"; shift; case "$"
in /*) this="$/"; real="$" ;;
.) this=""; real="/usr/src" ;; *)
this="$/"; real="/usr/src/$"
;; esac; show=${this:-.}; echo "$ ===>
${show%/}${1:+ (with: $)}"; cd "$"
&& /tooldir.NetBSD-3.1_STABLE-i386/bin/nbmake
_THISDIR_="$" "$" $; };
_makedirtarget etc release DISTRIBUTION_DONE=1
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make release
*** BUILD ABORTED ***
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )