On 9/21/14 22:39, Alan Barrett wrote:
On Sun, 21 Sep 2014, bycn82 wrote:
*Command**:*
cd /usr/src; ./build.sh -O /usr/obj -U -j 8 tools kernel=NB6 modules
distribution sets
I see you didn't pass -T ${TOOLDIR} option to build.sh
*Result:*
configure: creating ./config.status
config.status: creating host-mkdep
chmod +x host-mkdep
# install /tooldir.NetBSD-6.1.4-amd64/bin/nbhost-mkdep
mkdir -p /tooldir.NetBSD-6.1.4-amd64/bin
/usr/src/tools/binstall/xinstall -c -r -m 555 host-mkdep
/tooldir.NetBSD-6.1.4-amd64/bin/nbhost-mkdep
make: exec(/usr/src/tools/binstall/xinstall) failed (No such file or
directory)
*** Error code 1
The "install" line suggests that some part of the build thinks that
the TOOLDIR is "/tooldir.NetBSD-6.1.4-amd64", which makes no sense,
and the invocation of /usr/src/tools/binstall/xinstall suggests that
it thinks you are not using an OBJDIR, which also makes no sense.
Were there any error or warning messages printed by build.sh before it
got to "===> Updated makewrapper:" ? What TOOLDIR path did build.sh
print?
_*Try to build the npfctl command*_
If you can't build tools, nothing else is going to work, but ...
Yes, you are right, thanks.
After I successfully built the tools, everything goes well,
# cd /usr/src/usr.sbin/npf/npfctl/
# pwd
/usr/src/usr.sbin/npf/npfctl
# make
# lex npfctl/npf_scan.c
/usr/src/tooldir.NetBSD-6.1.4-amd64/bin/nblex -onpf_scan.c npf_scan.l
make: exec(/usr/src/tooldir.NetBSD-6.1.4-amd64/bin/nblex) failed (No
such file or directory)
*** Error code 1
... now it seems to think that your TOOLDIR is
/usr/src/tooldir.NetBSD-6.1.4-amd64, not the
/tooldir.NetBSD-6.1.4-amd64 that appeared earlier.
How to change the NetBSD6.1.4? I am using the current development
version of source!
The host platform name is embedded in the default TOOLDIR name, so
it's fine for it to say NetBSD-6.1.4.
--apb (Alan Barrett)