Subject: Re: current-users-approval@NetBSD.org (complete)
To: None <current-users@NetBSD.org>
From: KlinT <klint@klintcentral.net>
List: current-users
Date: 01/13/2007 22:29:10
Hi Andreas,

Well, as Manuel wrote it before, you have to post the whole error =20
message ...

I'll give you the method I use for building NetBSD-Current ...

1 - create de BUILD directory somewhere on your Hard Drive ... for =20
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/=20=

tools.i386 -D /data/BUILD/dest.i386 -R / data/BUILD/release.i386 -X /=20
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/=20=

tools.i386 -D /data/BUILD/dest.i386 -R /data/BUILD/release.i386 -X /=20
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 -=20=

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 =20
previous line ...

This should work, I always use this way to build/crossbuild netbsd-=20
current.

Hope this can help you

Best Regards,

Arnaud.

Le 12 janv. 07 =E0 23:28, Andreas Burghardt a =E9crit :

> 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=3DGENERIC_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 =20=

> test
> it ... so perhaps the problem is me!
>
> With best regards,
>
>     Andreas Burghardt
>
>
>
> *** Failed target:  getaddrinfo.ln
> *** Failed command:
> CC=3D/usr/src/NetBSD/src/tooldir.FreeBSD-7.0-CURRENT-i386/bin/i386--=20=

> netbsdelf-gcc
> /usr/src/NetBSD/src/tooldir.FreeBSD-7.0-CURRENT-i386/bin/i386--=20
> 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=3D4 -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 -=20
> 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 =20
> realall
> *** Error code 1
>
> Stop.
> nbmake: stopped in /usr/src/NetBSD/src/lib/libc
>
> *** Failed target:  do-lib-libc
> *** Failed command: _makedirtarget() { dir=3D"$1"; shift; target=3D"$1";=

> shift; case "${dir}" in /*) this=3D"${dir}/"; real=3D"${dir}" ;; .) =20=

> this=3D"";
> real=3D"/usr/src/NetBSD/src" ;; *) this=3D"${dir}/";
> real=3D"/usr/src/NetBSD/src/${dir}" ;; esac; show=3D${this:-.}; echo
> "${target} =3D=3D=3D> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
> /usr/src/NetBSD/src/tooldir.FreeBSD-7.0-CURRENT-i386/bin/nbmake
> _THISDIR_=3D"${this}" "$@" ${target}; }; _makedirtarget lib/libc =20
> dependall
> *** Error code 1
>
> Stop.
> nbmake: stopped in /usr/src/NetBSD/src
>
>
> *** Failed target:  build
> *** Failed command: _makedirtarget() { dir=3D"$1"; shift; target=3D"$1";=

> shift; case "${dir}" in /*) this=3D"${dir}/"; real=3D"${dir}" ;; .) =20=

> this=3D"";
> real=3D"/usr/src/NetBSD/src" ;; *) this=3D"${dir}/";
> real=3D"/usr/src/NetBSD/src/${dir}" ;; esac; show=3D${this:-.}; echo
> "${target} =3D=3D=3D> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
> /usr/src/NetBSD/src/tooldir.FreeBSD-7.0-CURRENT-i386/bin/nbmake
> _THISDIR_=3D"${this}" "$@" ${target}; }; _makedirtarget . do-lib-libc
> *** Error code 1
>
> Stop.
> nbmake: stopped in /usr/src/NetBSD/src
>
> ERROR: Failed to make build
> *** BUILD ABORTED ***
>
>