Subject: Re: Problems compiling NetBSD Userland
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Jochen Keil <J.Keil@gmx.de>
List: netbsd-users
Date: 01/24/2005 23:03:29
Manuel Bouyer wrote:
> You don't give enouth context here. The real error occured before these
> lines in the log.

I tried to narrow the error down and i always came up with
nbmake: don't know how to make 
/tooldir.NetBSD-2.0.1-i386/share/groff/tmac/andoc.tmac. Stop

If i set MKUUCP=no it will break somewhere else. Meanwhile i even 
managed to get it all compiled (i didn't do "cleandir" after a broken 
"build" and then did a "distribution") but now it won't do again 
("distribution" after "cleandir").
Trying "./build.sh -U -D /usr/src/i368.build distribution" doesn't get 
me far either. When i'm redirecting the output to a file it generates a 
25MB large log file..
Somewhere make or something else is complaining about colorls which i 
use with an alias as a replacement for ls. Could this cause trouble?
Maybe you could give me some hints how to do a "make buildworld" as one 
does with FreeBSD. I've read BUILDING, looked trough mk.conf (5), read 
the documentation on netbsd.org (which is not very helpful because the 
proposed "./build.sh -d" doesn't work - there's no "-d" switch..) and 
then mainly followed 
http://www.onlamp.com/pub/a/bsd/2003/04/10/Big_Scary_Daemons.html?page=1.
Just before i read the onlamp article i've used "./build.sh -j8 -u -U 
build" now i'm using "./build.sh -U -D /usr/src/i368.build distribution" 
but this also doesn't work. It all boils down to that "andoc.tmac" error 
i've described above.
Please tell me how much context you need and i'll try to get it.
Until then i've attached the error messages "distribution" breaks with.

Best Regards,

Jochen Keil



*** Failed target:  bootxx_ffsv1
*** Failed command: sz=$(ls -ln bootxx_ffsv1|tr -s ' '|cut -d' ' -f5); 
if [ "$sz" -gt "$(( 15 * 512 ))" ]; then echo "### bootxx_ffsv1 size $sz 
is larger than $(( 15 * 512 )
)" >&2; rm bootxx_ffsv1; ! :; else : pad to sector boundary; pad=$(( 512 
- ( $sz & 511 ) )); [ $pad = 512 ] || dd if=/dev/zero bs=1 count=$pad 
 >>bootxx_ffsv1 2>/dev/null; ec
ho "bootxx_ffsv1 size $sz, $(($(( 15 * 512 )) - $sz)) free"; fi
*** Error code 2

Stop.
nbmake: stopped in /usr/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1

*** Failed target:  dependall
*** Failed command: cd /usr/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1

*** Failed target:  dependall-bootxx_ffsv1
*** Failed command: targ=dependall;dir=bootxx_ffsv1; case "$dir" in /*) 
echo "$targ ===> $dir"; cd "$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=$dir/" $t
arg; ;; *) echo "$targ ===> sys/arch/i386/stand/bootxx/$dir"; cd 
"/usr/src/sys/arch/i386/stand/bootxx/$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=sys/arc
h/i386/stand/bootxx/$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/i386/stand/bootxx

*** Failed target:  dependall-bootxx
*** Failed command: targ=dependall;dir=bootxx; case "$dir" in /*) echo 
"$targ ===> $dir"; cd "$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;
; *) echo "$targ ===> sys/arch/i386/stand/$dir"; cd 
"/usr/src/sys/arch/i386/stand/$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake 
"_THISDIR_=sys/arch/i386/stand/$dir/"
$targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/i386/stand

*** Failed target:  dependall-stand
*** Failed command: targ=dependall;dir=stand; case "$dir" in /*) echo 
"$targ ===> $dir"; cd "$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;;
  *) echo "$targ ===> sys/arch/i386/$dir"; cd 
"/usr/src/sys/arch/i386/$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake 
"_THISDIR_=sys/arch/i386/$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/i386

*** Failed target:  dependall-i386
*** Failed command: targ=dependall;dir=i386; case "$dir" in /*) echo 
"$targ ===> $dir"; cd "$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;;
*) echo "$targ ===> sys/arch/$dir"; cd "/usr/src/sys/arch/$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=sys/arch/$dir/" 
$targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch

*** Failed target:  dependall-arch
*** Failed command: targ=dependall;dir=arch; case "$dir" in /*) echo 
"$targ ===> $dir"; cd "$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;;
*) echo "$targ ===> sys/$dir"; cd "/usr/src/sys/$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=sys/$dir/" 
$targ; ;; esac
*** Error code 1

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

*** Failed target:  dependall-sys
*** Failed command: targ=dependall;dir=sys; case "$dir" in /*) echo 
"$targ ===> $dir"; cd "$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *
) echo "$targ ===> $dir"; cd "/usr/src/$dir"; 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake "_THISDIR_=$dir/" $targ; 
;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  do-build
*** Failed command: (cd /usr/src && 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake dependall BUILD_tools=no 
BUILD_lib=no)
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: (cd /usr/src && 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake do-build)
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  distribution
*** Failed command: (cd /usr/src && 
/usr/src/tooldir.NetBSD-2.0.1-i386/bin/nbmake NOPOSTINSTALL=1 build)
*** Error code 1

Stop.
nbmake: stopped in /usr/src