Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Mar 2019 13:29:17 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Jonathan Moore <jdm7dv@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Building the FreeBSD kernel on another OS
Message-ID:  <20190316132917.1e63f474.freebsd@edvax.de>
In-Reply-To: <CANih4cbeUkK72Db_PFKotBvd=B=Q2Z=q2gSbqpQOgrHY7Cp0MA@mail.gmail.com>
References:  <CANih4cbeUkK72Db_PFKotBvd=B=Q2Z=q2gSbqpQOgrHY7Cp0MA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 Mar 2019 20:11:09 -0400, Jonathan Moore wrote:
> I'm trying to build FreeBSD on Windows, is it possible all I could find is
> this:
> 
> https://forums.freebsd.org/threads/building-the-freebsd-kernel-on-another-os.32275/

As "Windows" does lack native development tools (immediately
available to the user, that is), you'd have to install them
first. And even if you did, they are probably not compatible
with the FreeBSD sources and requirements. The kernel build
process expects C compiler, assembler, linker, and several
other tools to work in a specific way.

Sure, there is WSL available nowadays, but the L in there
means Linux, and the problem would shift to building the
FreeBSD kernel (or userland) on Linux.

I'm not saying this is entirely impossible, but it seems to be
an incredible waste of time to get "Windows" to do something
it is not designed to do. ;-)

The easiest way to build the FreeBSD is to install a free virtual
machine product for "Windows", and run a FreeBSD instance inside
it. This makes sure you will have all the tools required to build
the build chain (!), the OS and kernel. You can then transfer the
results out of the VM using virtual storage or virtual network,
in case you want to use them on "Windows"...

Check the comment header of /usr/src/Makefile for details, as
well as "man 7 build".




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190316132917.1e63f474.freebsd>