Subject: Re: source tree build fails
To: DataZap <az@datazap.net>
From: John Klos <john@ziaspace.com>
List: port-amiga
Date: 08/11/2007 18:57:07
Hey, Al,

The easiest thing to do, in my opinion (although it's not the quickest), 
is to cvs update your source tree, rm -Rf your 
/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k, /usr/src/obj/destdir.amiga, 
and /usr/src/obj/releasedir directories, then start again from scratch.

John Klos


On Sat, 11 Aug 2007, DataZap wrote:

> Date: Sat, 11 Aug 2007 11:51:08 -0700 (PDT)
> From: DataZap <az@datazap.net>
> To: port-amiga@NetBSD.org
> Cc: john@ziaspace.com, is@NetBSD.org
> Subject: Re: source tree build fails
> 
> Hi,
>
> I was able to sovle this problem. It was because I didn't rebuild the /dev
> files and I was then able to install the new binaries without a problem.
> But then we had a lightning storm and it caused the computer to reboot
> twice in a very short period of time. I then shut the power off and
> unplugged it, but it seemed to corrupt the root partition. I was going
> to just install that, but I think that I had made a mistake when I ran
> newfs. I did the root partition (a little over a gig partition) with
> newfs -b16384 -f2048 and I think that is what created the problem. So, I
> just did "newfs /dev/sd0a" (I did this from an install of 1.5.4).  It
> looks like it has fixed the problem, I filled that partition, and then
> cycled the power. It did a filesystem check but other than that booted up
> no problem.
>
> Now, I have a new problem. It looks like the ./build build finishes
> without any errors, but then when I do ./build.sh -u install=/ it stops
> with an error. I redownloaded the source and rebuilt everything but it
> still will not install. Here is the error message:
>
> #    objdir  /usr/obj/tools
> ===> MACHINE:          amiga
> ===> MACHINE_ARCH:     m68k
> ===> TOOLDIR path:     /usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k
> ===> DESTDIR path:     /usr/src/obj/destdir.amiga
> ===> RELEASEDIR path:  /usr/src/obj/releasedir
> ===> Created /usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmake
> ===> makewrapper:
> /usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmake-amiga
> ===> Updated /usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmake-amiga
> installsets ===> distrib/sets   (with: INSTALLDIR=/ INSTALLSETS=)
> cd /usr/src/distrib/sets &&  DESTDIR=/usr/src/obj/destdir.amiga
> MACHINE=amiga MACHINE_ARCH=m68k
> CKSUM=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbcksum
> DB=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbdb  HOST_SH=/bin/sh
> MAKE=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmake
> MKTEMP=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmktemp
> MTREE=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmtree
> PAX=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbpax
> TSORT=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbtsort\ -q  /bin/sh
> ./maketars -d /usr/src/obj/destdir.amiga   -N /usr/src/etc   -i /
> ./maketars: /usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmktemp: not
> found
> cp: /usr/src/obj/destdir.amiga/etc/mtree/set.base: No such file or
> directory
> cp: /usr/src/obj/destdir.amiga/etc/mtree/set.comp: No such file or
> directory
> cp: /usr/src/obj/destdir.amiga/etc/mtree/set.games: No such file or
> directory
> cp: /usr/src/obj/destdir.amiga/etc/mtree/set.man: No such file or
> directory
> cp: /usr/src/obj/destdir.amiga/etc/mtree/set.misc: No such file or
> directory
> cp: /usr/src/obj/destdir.amiga/etc/mtree/set.text: No such file or
> directory
> Copying set base
> cd: can't cd to /usr/src/obj/destdir.amiga
> ./maketars: cannot open /usr/src/obj/destdir.amiga/etc/mtree/set.base: no
> such file
> Copying set comp
> cd: can't cd to /usr/src/obj/destdir.amiga
> ./maketars: cannot open /usr/src/obj/destdir.amiga/etc/mtree/set.comp: no
> such file
> Copying set games
> cd: can't cd to /usr/src/obj/destdir.amiga
> ./maketars: cannot open /usr/src/obj/destdir.amiga/etc/mtree/set.games: no
> such file
> Copying set man
> cd: can't cd to /usr/src/obj/destdir.amiga
> ./maketars: cannot open /usr/src/obj/destdir.amiga/etc/mtree/set.man: no
> such file
> Copying set misc
> cd: can't cd to /usr/src/obj/destdir.amiga
> ./maketars: cannot open /usr/src/obj/destdir.amiga/etc/mtree/set.misc: no
> such file
> Copying set text
> cd: can't cd to /usr/src/obj/destdir.amiga
> ./maketars: cannot open /usr/src/obj/destdir.amiga/etc/mtree/set.text: no
> such file
> rm: No such file or directory
>
> *** Failed target:  installsets
> *** Failed command: cd /usr/src/distrib/sets &&
> DESTDIR=/usr/src/obj/destdir.amiga MACHINE=amiga MACHINE_ARCH=m68k
> CKSUM=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbcksum
> DB=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbdb HOST_SH=/bin/sh
> MAKE=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmake
> MKTEMP=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmktemp
> MTREE=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmtree
> PAX=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbpax
> TSORT=/usr/src/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbtsort\ -q /bin/sh
> ./maketars -d /usr/src/obj/destdir.amiga -N /usr/src/etc -i /
> *** Error code 12
>
> Stop.
> nbmake: stopped in /usr/src/distrib/sets
>
> *** Failed target:  installworld
> *** 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/obj/tooldir.NetBSD-4.0_BETA2-m68k/bin/nbmake
> _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget distrib/sets
> installsets INSTALLDIR=/ INSTALLSETS=
> *** Error code 1
>
> Stop.
> nbmake: stopped in /usr/src
>
> ERROR: Failed to make installworld to /
> *** BUILD ABORTED ***
>
>
>
> Any ideas?
>
> Thanks,
> Al
>
>
>
>
>
> On Wed, 11 Jul 2007, Ignatios Souvatzis wrote:
>
>> Date: Wed, 11 Jul 2007 09:12:01 +0200
>> From: Ignatios Souvatzis <is@netbsd.org>
>> To: port-amiga@netbsd.org
>> Subject: Re: source tree build fails
>>
>> On Tue, Jul 10, 2007 at 09:35:50PM -0700, DataZap wrote:
>>> Hi,
>>>
>>> I tried to build the NetBSD 4 source tree on my 2000 (blizzard 2060 and
>>> 128 megs of ram).
>>>
>>> Here is the error I get:
>>>
>>> #   compile  libc/fdopen.ln
>>> CC=/usr/src/tooldir.NetBSD-4.0_BETA2-m68k/bin/m68k--netbsdelf-gcc
>>> /usr/src/tooldir.NetBSD-4.0_BETA2-m68k/bin/m68k--netbsdelf-lint -chapbxzFS
>>> -X 272 -d /usr/src/destdir.amiga/usr/include  -D_LIBC -DLIBC_SCCS
>>> -DSYSLIBC_SCCS -D_REENTRANT -DHESIOD -DINET6 -DNLS -DYP
>>> -I/usr/src/lib/libc/include -I/usr/src/lib/libc -I/usr/src/sys
>>> -I/usr/src/lib/libc/compat/stdlib -I/usr/src/lib/libc/compat/../stdlib
>>> -I/usr/src/lib/libc/../../common/lib/libc/quad
>>> -I/usr/src/lib/libc/../../common/lib/libc/string
>>> -I/usr/src/lib/libc/../../common/lib/libc/arch/m68k/string
>>> -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS
>>> -I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn
>>> -I/usr/src/lib/libc/gdtoa -DNO_FENV_H -I/usr/src/lib/libc/arch/m68k/gdtoa
>>> -DCITRUS_ICONV -DWITH_RUNE -I/usr/src/lib/libc -DPOSIX_MISTAKE
>>> -DCOMPAT__RES -DPORTMAP -DALL_STATE -DUSG_COMPAT    -i
>>> /usr/src/lib/libc/stdio/fdopen.c
>>> nbmake in realloc(): error: brk(2) failed [internal error]
>>
>> Hm...
>>
>> I'm not sure, just guessing, but: this sounds like gcc needs more virtual
>> memory. Try to ulimit -d to a higher value before starting the build.
>>
>> Regards,
>> 	-is
>> --
>> seal your e-mail: http://www.gnupg.org/
>>
>
>
>
>
>
>
>

-- 
The good Christian should beware of mathematicians and all those who
make empty prophecies.  The danger already exists that mathematicians
have made a covenant with the devil to darken the spirit and confine
man in the bonds of Hell.
 		-- St. Augustine