Subject: Re: current-users-approval@NetBSD.org (complete)
To: None <current-users@NetBSD.org>
From: None <-burghardt@gmx.de>
List: current-users
Date: 01/16/2007 09:36:32
On Sat, Jan 13, 2007 at 10:29:10PM +0100, KlinT wrote:
> Hi Andreas,
> 
> Well, as Manuel wrote it before, you have to post the whole error  
> message ...
> 
> I'll give you the method I use for building NetBSD-Current ...
> 
> 1 - create de BUILD directory somewhere on your Hard Drive ... for  
> example : /data/BUILD/
> 
> 2 - Fetch the latests sources with CVS or CVSUP in this directory.
> You have now : /data/BUILD/src and /data/BUILD/xsrc
> 
> 3 - Create the following directory in /data/BUILD/ :
> * dest.i386
> * obj.i386
> * release.i386
> * toold.i386
> 
> 4 - Building the toolchain :
> I use to invoke build.sh as this :
> 
> # cd /data/BUILD/src
> # ./build.sh -N 1 -j 1 -m i386 -O /data/BUILD/obj.i386 -T /data/BUILD/ 
> tools.i386 -D /data/BUILD/dest.i386 -R / data/BUILD/release.i386 -X / 
> data/BUILD/xsrc -U -x tools
> 
> 5 - Build the release :
> 
> # cd /data/BUILD/src
> # ./build.sh -N 1 -j 3 -m i386 -O /data/BUILD/obj.i386 -T /data/BUILD/ 
> tools.i386 -D /data/BUILD/dest.i386 -R /data/BUILD/release.i386 -X / 
> data/BUILD/xsrc -U -x -u release
> 
> 6 - Build the ISO Image :
> 
> # cd /data/BUILD/release.i386
> # mkisofs -v -b i386/installation/floppy/boot-big.fs -c boot.catalog - 
> r -J -V NetBSD-Current -o netbsd.iso /data/BUILD/release.i386
> 
> Maybe you can use bootlap-big.fs instead of boot-big.fs in the  
> previous line ...
> 
> This should work, I always use this way to build/crossbuild netbsd- 
> current.
> 
> Hope this can help you
> 
> Best Regards,
> 
> Arnaud.
> 
> Le 12 janv. 07 à 23:28, Andreas Burghardt a écrit :
>

Hello Arnaud,

thank you for your description - it was a great help for me!

Best Regards.

   Andreas

> >Hello!
> >
> >I oringinally planed to migrate to NetBSD-Current. But there was no
> >iso-image available for i386 ... so why not build one?
> >
> >I fetched the sources via cvs (netbsd-4: I need this because of the
> >hardware of my laptop) and started to compile (I cvs
> >up'ed the code 1 hour ago once again ...):
> >
> >(Is there anything wrong concerning my method?)
> >
> >cd /usr/src
> >
> >./build.sh -m i386 tools
> >./build.sh -u -m i386 kernel=GENERIC_LAPTOP
> >./build.sh -U -u -m i386 build
> >
> >... and it failed. (see below)
> >
> >I want to apologize for this mail ... I'm a nOOb ... but I'm trying to
> >compile the NetBSD code for 3 weeks now and can't get it working and
> >really want to make my box running NetBSD after I had the chance to  
> >test
> >it ... so perhaps the problem is me!
> >
> >With best regards,
> >
> >    Andreas Burghardt
> >
> >
> >
> >*** Failed target:  getaddrinfo.ln
> >*** Failed command:
> >CC=/usr/src/NetBSD/src/tooldir.FreeBSD-7.0-CURRENT-i386/bin/i386-- 
> >netbsdelf-gcc
> >/usr/src/NetBSD/src/tooldir.FreeBSD-7.0-CURRENT-i386/bin/i386-- 
> >netbsdelf-lint
> >-chapbxzFS -w -X 272 -d /usr/src/NetBSD/src/destdir.i386/usr/include
> >-D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -DHESIOD -DINET6 -DNLS
> >-DYP -I/usr/src/NetBSD/src/lib/libc/include
> >-I/usr/src/NetBSD/src/lib/libc -I/usr/src/NetBSD/src/sys
> >-I/usr/src/NetBSD/src/lib/libc/compat/stdlib
> >-I/usr/src/NetBSD/src/lib/libc/compat/../stdlib
> >-I/usr/src/NetBSD/src/lib/libc/../../common/lib/libc/quad
> >-I/usr/src/NetBSD/src/lib/libc/../../common/lib/libc/string
> >-I/usr/src/NetBSD/src/lib/libc/../../common/lib/libc/arch/i386/string
> >-D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS
> >-I/usr/src/NetBSD/src/libexec/ld.elf_so
> >-I/usr/src/NetBSD/src/lib/libc/dlfcn
> >-I/usr/src/NetBSD/src/lib/libc/gdtoa -DNO_FENV_H
> >-I/usr/src/NetBSD/src/lib/libc/arch/i386/gdtoa -DCITRUS_ICONV
> >-DWITH_RUNE -I/usr/src/NetBSD/src/lib/libc -DPOSIX_MISTAKE - 
> >DCOMPAT__RES
> >-DPORTMAP -DALL_STATE -DUSG_COMPAT -i
> >/usr/src/NetBSD/src/lib/libc/net/getaddrinfo.c
> >*** Error code 1
> >
> >Stop.
> >nbmake: stopped in /usr/src/NetBSD/src/lib/libc
> >
> >*** Failed target:  dependall
> >*** Failed command: cd /usr/src/NetBSD/src/lib/libc;
> >/usr/src/NetBSD/src/tooldir.FreeBSD-7.0-CURRENT-i386/bin/nbmake  
> >realall
> >*** Error code 1
> >
> >Stop.
> >nbmake: stopped in /usr/src/NetBSD/src/lib/libc
> >
> >*** Failed target:  do-lib-libc
> >*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
> >shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)  
> >this="";
> >real="/usr/src/NetBSD/src" ;; *) this="${dir}/";
> >real="/usr/src/NetBSD/src/${dir}" ;; esac; show=${this:-.}; echo
> >"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
> >/usr/src/NetBSD/src/tooldir.FreeBSD-7.0-CURRENT-i386/bin/nbmake
> >_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget lib/libc  
> >dependall
> >*** Error code 1
> >
> >Stop.
> >nbmake: stopped in /usr/src/NetBSD/src
> >
> >
> >*** Failed target:  build
> >*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
> >shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)  
> >this="";
> >real="/usr/src/NetBSD/src" ;; *) this="${dir}/";
> >real="/usr/src/NetBSD/src/${dir}" ;; esac; show=${this:-.}; echo
> >"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
> >/usr/src/NetBSD/src/tooldir.FreeBSD-7.0-CURRENT-i386/bin/nbmake
> >_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-lib-libc
> >*** Error code 1
> >
> >Stop.
> >nbmake: stopped in /usr/src/NetBSD/src
> >
> >ERROR: Failed to make build
> >*** BUILD ABORTED ***
> >
> >