Subject: Compiling NetBSD Current
To: None <netbsd-users@netbsd.org>
From: Brendon Costa <bcosta@avdat.com.au>
List: netbsd-users
Date: 05/03/2006 17:30:02
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All,
I have been trying to compile NetBSD - current for a while now (Maybe
about 3 weeks). I am trying to do a cross compile from i386 to amd64
in order to test a patch that was made a while ago.
I just completed a clean checkout from CVS (2006/05/03:14:00) that i
attempted to compile with. I have in the past been updating from cvs
with the -r HEAD option and thought i might just give a clean checkout
a go.
This same problem has been occurring since i have been trying to
compile NetBSD current and thought i should report it. If knows what i
am doing incorrectly, i would love to know. Thanks in advance for any
help you can offer.
Brendon.
This is the sequence of operations i have been using to compile (Note
i have a script which is doing this for me):
1) Delete all old build data, objs, etc
2) Build the tools:
./build.sh -U -u -m amd64 -B Brendon
- -O /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/obj
- -D /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build
- -R /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/release
- -T
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386
tools
3) Build the kernel:
./build.sh -U -u -m amd64 -B Brendon
- -O /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/obj
- -D /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build
- -R /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/release
- -T
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386
kernel=GENERIC
4) Build the kernel release:
./build.sh -U -u -m amd64 -B Brendon
- -O /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/obj
- -D /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build
- -R /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/release
- -T
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386
releasekernel=GENERIC
5) Build Distribution:
./build.sh -uUx -m amd64 -B Brendon
- -O /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/obj
- -D /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build
- -R /usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/release
- -T
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386
- -X /usr/netbsd/xsrc
distribution
The build distribution fails. When it starts it shows the following
info (In case it is useful):
- --------SNIP------------
===> build.sh command: ./build.sh -uUx -m amd64 -B Brendon -O
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/obj -D
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build -R
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/release -T
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386
- -X /usr/netbsd/xsrc distribution
===> build.sh started: Sun Apr 30 06:29:05 EST 2006
===> MACHINE: amd64
===> MACHINE_ARCH: x86_64
===> TOOLDIR path:
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386
===> DESTDIR path:
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build
===> RELEASEDIR path:
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/release
===> makewrapper:
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386/bin/nbmake-amd64-Brendon
===> Updated
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386/bin/nbmake-amd64-Brendon
build ===> . (with: NOPOSTINSTALL=1)
- --------SNIP------------
Then comes a heap of successful building followed by the errors below:
- --------SNIP------------
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386/bin/x86_64--netbsd-gcc
- -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
- -Wno-sign-compare -Wno-traditional -Wno-packed -Wreturn-type -Wswitch
- -Wshadow -Wcast-qual -Wwrite-strings -Werror -nostdinc -isystem
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build/usr/include
-c /usr/netbsd/src/bin/mv/mv.c
# link mv/mv
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386/bin/x86_64--netbsd-gcc
- -Wl,-nostdlib -o mv -Wl,-dynamic-linker=/libexec/ld.elf_so
-
-Wl,-rpath-link,/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build/lib:/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build/usr/lib
-R/lib
- -L/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build/lib
- -B/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build/usr/lib/
- -B/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build/usr/lib/
mv.o
- -L/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build/usr/lib
- -L/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/build/usr/lib
# format mv/mv.cat1
PATH=/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386/lib/groff:${PATH}
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386/bin/nbnroff
- -mandoc /usr/netbsd/src/bin/mv/mv.1 > mv.cat1.tmp && mv mv.cat1.tmp
mv.cat1
mv: 1: Syntax error: ")" unexpected
*** Failed target: mv.cat1
*** Failed command:
PATH=/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386/lib/groff:${PATH}
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386/bin/nbnroff
- -mandoc /usr/netbsd/src/bin/mv/mv.1 > mv.cat1.tmp && mv mv.cat1.tmp
mv.cat1
*** Error code 2
Stop.
nbmake: stopped in /usr/netbsd/src/bin/mv
*** Failed target: dependall
*** Failed command: cd /usr/netbsd/src/bin/mv;
/usr/netbsd/build/netbsd-current-2006_04_28_09_31/amd64/toolchain-i386/bin/nbmake
realall
*** Error code 1
- --------SNIP------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEWFv6PfREiUgoLqwRAhhxAKCDNx5SRMR0wrUfSDriG21IXeeivQCeIiHv
rlEc0rA9JBEFlVuFygizLbE=
=P6mO
-----END PGP SIGNATURE-----