From owner-freebsd-questions@freebsd.org Sat Mar 16 12:29:28 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2DE11529AC5 for ; Sat, 16 Mar 2019 12:29:27 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D978869FD for ; Sat, 16 Mar 2019 12:29:26 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.193.208.84]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPA (Nemesis) id 1MiJdI-1gZfIW05Z8-00fO2g; Sat, 16 Mar 2019 13:29:18 +0100 Date: Sat, 16 Mar 2019 13:29:17 +0100 From: Polytropon To: Jonathan Moore Cc: freebsd-questions@freebsd.org Subject: Re: Building the FreeBSD kernel on another OS Message-Id: <20190316132917.1e63f474.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:8O8ZR5vb9+opFhKtCcyMNN+CgWk5srsybGtCGoSnjQLyfYrOUeE NWErMCBe6upoPkD1qTzi2Xv3iWdl8+sYGUae615r67VV90MO705mnG+9jGm3oCG0V7g+Ng2 1/bGUE8hgIw3l0swn713po/dxcP6m1OFrvqnLBt6RqHlK27ORzOMd8Bt1/6JtdgVtgxrdgr uFPDSa0l/TmW2GodP9eow== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:WwVAJr7DWfY=:CtXA7YJgA6Ev3Uq/2UDgiH yC7wNJyByLdSFnc+klOQeq2TDgG9C1Ndn/4snRaNLvbR9fUQBBiQlr7djDChR5UjspWT6LQYu amWAIoWggksHiKGSeSTbEXkkUdrHJJ0cAMJAJsdoGil7XtwUeS3Rww5pnPATUYrqOVPatS3+H CgE3sNc2nwEl63iAGsdG874UkzSLstZH0PwgJSfmHGBwQozeQLznw+Gu+7sCYyAWnPwn4hOmJ jk4iKP4PxQ73TI2UsK7nTT55MwOyCl/oztzh17+LITD/1xM0lH1V9kLKD8F+c9pydSguu2xAb LQTpLeX5vSaJaZcNJjDj0Gdo7wGgciNoyfxE2eknvJXuC2T1XDzliU7CAAbS4jTGDBL6esdwk Rd9jvomSuomVpmA6501qt0mr6VAWLp7Msr4YoLvXd9GQuNEfpne0gZOXfdcOg6mY6Phu6ULKS T5QnG2ivU0Kuib6S204DQGuOqbLce2hRS1cj9SgJMiS4K2efAporjDF3khdt0oF/A0bnWEXwy ehEsED0ZEAVtLjzBJrb8SNOCLajRo+zjamXrifY5VH3eZtL+RqIsNTqJKLz7syi6OLVAIIQUC z/GPwpY9S5stQv2zo2boEhJkFBYYOC1SZycOifQtPyrvjV9ar1O3FcRVQUfRAeJOtEru7I98r PYlLMma8fbUcUlLfyBC5FT51o0hD8uC8Zx9/Ey4cY6RQgT1/3f+pdsiujF9sKBsk19gMzpWZN FxVN+CjL47vH29FjNtPHE/btXzs358IhEMOFeO2H4HAZweeHQKQf/fOgKPI= X-Rspamd-Queue-Id: 6D978869FD X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.47 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.01)[mx01.schlund.de,mx00.schlund.de]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[84.208.193.92.zen.spamhaus.org : 127.0.0.10]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.72)[0.715,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.92)[0.922,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.995,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[73.192.72.217.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.45)[ip: (0.50), ipnet: 217.72.192.0/20(0.03), asn: 8560(1.71), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Mar 2019 12:29:28 -0000 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, ...