Thanks for the fast internet in Chennai, downloading things were quite a smooth
experience. But unlike the 36 hours one-shot build I did in a NetBSD VirtualBox
instance, this was not easy. My aim was to cross-compile from a Windows 7 x64
environment to generate binaries for NetBSD-i386 environment.
Setting up Cygwin, NetBSD-CURRENT source tree and the right tools was not too
hard. I decided to run the compile in 3 parts
-
Build the Tool Chain
The tool chain build was the smooth one, took roughly couple of hours but was
done without errors. -
Build the NetBSD Kernel
The Kernel build took slightly longer but it got finished without issues.
-
Build the Userland
This is where I faced the issue, apparently some of the applications failed to
compile and I do not remember exactly which ones, but I did not pursue this
into detail, since the project I will be working on mainly involves the above
two. But this is something I would like to look back into and resolve when I
get time for it.
Of course the hunt is never complete without a kill or in this case the build is
never complete without actually being able to boot the kernel I compiled in a
Cygwin under Windows 7.
So I copied over the compiled binary, put it in my NetBSD VM, crossed my fingers
and rebooted.
NetBSD theta 7.99.27 NetBSD 7.99.27 (GENERIC) #0: Wed Apr 20 17:53:32 IST 2016 Fox@DELTA:/cygdrive/c/netbsd/src/src/sys/arch/i386/compile/obj/GENERIC i386
I am very impressed by the build.sh
system of NetBSD.