List Info

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




Re: make release abends with "*** Error code 1"
user name
2007-01-20 04:17:19
On Fri, Jan 19, 2007 at 09:44:50PM -0500, Woodchuck wrote:
> 
> *** 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

Unfortunately it isn't easy to see exactly where that is
failing!
The 'mtree' part is generating its 'usual' output to the
screen.
So it is likely to be the 'awk ... | sh -e' part.
My guess is that something in the environment, or some
unexpected version
of a standard utility program, is causing grief.
The commands are in src/distrib/common/Makefile.image you
probably need
to edit them slightly to find out what is wrong.
I'd try an extra 'echo' after the mtree line, 'tee' the awk
output into
a temporary file. If all else fails add -x to the 'sh -e'
command.

	David

-- 
David Laight: davidl8s.co.uk

Re: make release abends with "*** Error code 1"
user name
2007-01-20 08:11:47
On Sat, 20 Jan 2007, David Laight wrote:

> On Fri, Jan 19, 2007 at 09:44:50PM -0500, Woodchuck
wrote:
>>
>> *** Error code 1
>
> Unfortunately it isn't easy to see exactly where that
is failing!

I've reformatted it to be readable, but won't post it out
of
sanity considertaions.

> The 'mtree' part is generating its 'usual' output to
the screen.

But might have abended after generating output.  But I fixed
the
"&" bug in mtree, repeated the build.sh drill,
and it still squawked
and died.

> So it is likely to be the 'awk ... | sh -e' part.

I agree with you and Perry at this point.

> My guess is that something in the environment, or some
unexpected version
> of a standard utility program, is causing grief.

That machine is as vanilla as it gets.  It's been used for
building
source and *nothing* else, except for experiments with the
(very
nice, BTW) cryptographic file system layer, so the kernel I
call
GENERIC has the single change of adding 4 cgd devices. 
There are a few
packages installed, but I believe them innocent.

> The commands are in src/distrib/common/Makefile.image
you probably need
> to edit them slightly to find out what is wrong.

Yeah.

> I'd try an extra 'echo' after the mtree line, 'tee' the
awk output into
> a temporary file. If all else fails add -x to the 'sh
-e' command.

These are good ideas, and should be enough to snag the
problem.

Right now, I said "let's start over", so I removed
/usr/obj/*,
scoured the environment, and am in the middle now of a
"vanilla"
build.sh with null DESTDIR and RELEASEDIR and null MKUPDATE.
 This
should install to /, as I understand it.  (build.sh is new
to me
and I am not operating at the "instinctive" level
yet with it.).

We'll see what happens.  Sometime Sunday evening, I'll
probably be
done with the first build, reboot and try the build.sh -u -U
release
stunt again. (The machine in question is a Pentium Pro
200MHz with
only around 150MB memory, so it really spanks the swap
partition
sometimes.)

I am reluctant to install from a "DESTDIR" using
"build.sh"  on a
running system, because I have the impression from the docs
that
this would overwrite things in /etc and elsewhere, unlike
the
old "make install" from /usr/src.

Dave
-- 
         In each of us, there burns a soul of a woodchuck.
         In every generation a few are chosen to prove it.

[1-2]

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