Subject: Building the toolchain (errors)
To: None <current-users@NetBSD.org>
From: Murky <murkys@gmail.com>
List: current-users
Date: 01/31/2007 20:30:00
Hello
I'm new to NetBSD. I have to build new kernel in order to use ndis. I
have recently (30 Jan 2007) downloaded sources from
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/src/.
However ./build.sh -u tools results in:
-----------------------------------------------------------------------------
(...)
install ===> compat
dependall ===> binstall
# create binstall/getid.d
/usr/src/tooldir.NetBSD-4.0_BETA2-i386/bin/nbhost-mkdep -f getid.d --
-I/usr/src/tools/binstall/../compat/sys -I/usr/src/usr.sbin/mtree
/usr/src/usr.sbin/mtree/getid.c
# create binstall/xinstall.d
/usr/src/tooldir.NetBSD-4.0_BETA2-i386/bin/nbhost-mkdep -f xinstall.d
-- -I/usr/src/tools/binstall/../compat/sys
-I/usr/src/usr.sbin/mtree
/usr/src/tools/binstall/../../usr.bin/xinstall/xinstall.c
# create binstall/.depend
rm -f .depend
/usr/src/tooldir.NetBSD-4.0_BETA2-i386/bin/nbhost-mkdep -d -f .depend
-s .lo\ .ln getid.d xinstall.d
# compile binstall/xinstall.lo
cc -O -I/usr/src/tools/binstall/../compat/sys
-I/usr/src/usr.sbin/mtree -c -o xinstall.lo.o
/usr/src/tools/binstall/../../usr.bin/xinstall/xinstall.c
*** Failed target: xinstall.lo
*** Failed command: cc -O -I/usr/src/tools/binstall/../compat/sys
-I/usr/src/usr.sbin/mtree -c -o xinstall.lo.o
/usr/src/tools/binstall/../../usr.bin/xinstall/xinstall.c
*** Error code 1
Stop.
nbmake: stopped in /usr/src/tools/binstall
*** Failed target: dependall
*** Failed command: cd /usr/src/tools/binstall;
/usr/src/tooldir.NetBSD-4.0_BETA2-i386/bin/nbmake realall
*** Error code 1
Stop.
nbmake: stopped in /usr/src/tools/binstall
*** Failed target: dependall-binstall
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this=""; real="/usr/src/tools" ;; *) this="${dir}/";
real="/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target}
===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/usr/src/tooldir.NetBSD-4.0_BETA2-i386/bin/nbmake _THISDIR_="${this}"
"$@" ${target}; }; _makedirtarget binstall dependall
*** Error code 1
Stop.
nbmake: stopped in /usr/src/tools
-----------------------------------------------------------------------------
I decided to try command causing error:
cc -O -I/usr/src/tools/binstall/../compat/sys
-I/usr/src/usr.sbin/mtree -c -o xinstall.lo.o
/usr/src/tools/binstall/../../usr.bin/xinstall/xinstall.c
in the result there were a couple information about included files and also:
--
/usr/src/tools/compat/../compat_defs.h:66:2: error: #error
_NETBSD_SOURCE is *not* to be definied
--
/usr/src/tools/compat/sys/../compat_defs.h:209: error: redefinition of
'struc _dirdesc'
/usr/src/tools/compat/sys/../compat_defs.h:220:1: warning: "dirfd" redefined
--
/usr/include/dirent.h:20:1: warning: this is the location of the
previous definition
/usr/src/usr.bin/xinstall/xinstall.c: in function 'main':
/usr/src/usr.bin/xinstall/xinstall.c:314: warning: assignment makes
pointer from integer without a cast
Thanks for any advice
Murky