List Info

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




Re: make release abends with "*** Error code 1"
user name
2007-01-21 07:06:45
Well, scrubbing obj and using "build.sh" didn't
work.
Abend in the same place.

Error messages are changing, though.  Somewhat more
information about
the higher levels in Make that have branched down to the
erring level.

Anyway, the Makefile that is resulting in the error is
/usr/src/distrib/common/Makefile.image

The target is:

.if !target($)                                   
   # {
$: $ $ $
$
#       There is a .PHONY $, so check if out of
date by hand
#       Default to `.' if $ isn't set, to always
force a rebuild.
        [ "${.OODATE}" = ${CRUNCHBIN:U.} -a -f
$ -a $ -nt 
${CRUNCHBIN:U.} ]  || { 
        $ "  build "
${.CURDIR:T}/$; 
        rm -rf $ $; 
        mkdir -m 755 $ &&  
        $ -def $ -p $/ -UW
&& 
        $ -v mode=populate $ | 
        $ -e $ 
        && touch $ ; 
        }

(This was found by fgrepping for "mode=populate"
through /usr/src/distrib,
Grep is the hacker's friend.  A tip for any aspiring youth
in
attendance -- look for stuff that isn't the result of an
expanded
variable.

In the interests of satisfying my curiosity, this was
changed to include
some instrumentation, as suggested by Mr Laight, thusly

--- Makefile.image.orig 2007-01-21 07:39:45.000000000 -0500
+++ Makefile.image      2007-01-21 07:45:08.000000000 -0500
 -49,7
+49,8 
        mkdir -m 755 $ &&  
        $ -def $ -p $/ -UW
&& 
        $ -v mode=populate $ | 
-       $ -e $ 
+       /usr/bin/tee /home/awk-out.bug | 
+       $ -evx $ 
        && touch $ ; 
        }

Without any other changes to /usr/src/*, /usr/obj,
RELEASEDIR or
DESTDIR,  I repeat the build.sh command, which is

./build.sh -u -U -D /home/destdir -R /home/release release 
	| tee /home/build.release.out 

Stay tuned to this thread for the exciting results!

Dave the Patient

Re: make release abends with "*** Error code 1"
user name
2007-01-21 14:58:59
On Sun, Jan 21, 2007 at 08:06:45AM -0500, Woodchuck wrote:
> 
> (This was found by fgrepping for
"mode=populate" through /usr/src/distrib,
> Grep is the hacker's friend.  A tip for any aspiring
youth in
> attendance -- look for stuff that isn't the result of
an expanded
> variable.

I found it by searching for work.built, but probably had an
advantage
in knowing I needed to stack from the ramdiskbin makefile.

Remember:
  vi `find . -name ..... | xargs grep -l ....`
is the real hackers friend.

	David

-- 
David Laight: davidl8s.co.uk

[1-2]

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