From owner-freebsd-questions@freebsd.org Tue Jun 16 07:03:11 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4969032A9CA for ; Tue, 16 Jun 2020 07:03:11 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49mK0Z3vy2z4Qfj for ; Tue, 16 Jun 2020 07:03:10 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 49mK0Y1MjbzFdt1 for ; Tue, 16 Jun 2020 00:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1592290989; bh=mgECoRAesybkQPyxHlek9D+2XK9NY/1jrAsIOg+Ual8=; h=Date:From:To:Subject:In-Reply-To:References:From; b=ZtEaibjmP+ydJt59uO3HqIu4NEduQnrAfFARVGYVBsWMe1d8czdmtOHHVj7wIEFuI 35wOzkxGvOcVfxGs+fNmLH2yC22TAiPuBmc2f+cQ8jmoKY/UlE7+hLoALFkdGRh1JU eP3mpjyzRG1D2jy6xnKChr7IvYWj5UywukEocrYg= X-Riseup-User-ID: 812D359ECA0EC533A79C165DB27FA9A3948D822344F08C825D5F97BB85756DFE Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 49mK0X4XWZzJmpW for ; Tue, 16 Jun 2020 00:03:08 -0700 (PDT) Date: Tue, 16 Jun 2020 09:02:59 +0200 From: Ralf Mardorf To: freebsd-questions@freebsd.org Subject: Re: Possible to compile tree on a different OS? Message-ID: <20200616090259.0d5f0f1e@archlinux> In-Reply-To: <483b-5ee86500-35-519df400@194132122> References: <20200616081259.4b1b4143@archlinux> <483b-5ee86500-35-519df400@194132122> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49mK0Z3vy2z4Qfj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=ZtEaibjm; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (mx1.freebsd.org: domain of ralf-mardorf@riseup.net designates 198.252.153.129 as permitted sender) smtp.mailfrom=ralf-mardorf@riseup.net X-Spamd-Result: default: False [-3.36 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; NEURAL_HAM_MEDIUM(-1.01)[-1.008]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[198.252.153.129:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[riseup.net:dkim]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_NOT_FQDN(0.50)[]; DKIM_TRACE(0.00)[riseup.net:+]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; NEURAL_HAM_SHORT(-0.74)[-0.738]; NEURAL_HAM_LONG(-1.01)[-1.015]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; RCVD_TLS_ALL(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.129:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2020 07:03:11 -0000 On Tue, 16 Jun 2020 08:20:57 +0200, mayuresh@kathe.in wrote: >On Tuesday, June 16, 2020 11:42 AM IST, Ralf Mardorf wrote: > >> On Tue, 16 Jun 2020 07:16:37 +0200, mayuresh@kathe.in wrote: >> >The NetBSD folks have mechanisms in place to allow compiling >> >(including cross-compiling) their entire (or partial) source tree >> >under a different operating system. Eg. I can download and compile >> >the NetBSD source tree under a Ubuntu system using GNU build tools. >> > >> >Does FreeBSD have such facilities in place too? >> >> By googling I couldn't find a script such as >> https://www.netbsd.org/docs/guide/en/chap-build.html , but a howto >> >> https://marcelog.github.io/articles/cross_freebsd_compiler_in_linux.html >> >You have not understood my requirement. >I want to download the latest FreeBSD source tree on my machine >running native Ubuntu only and compile that source tree. As an example >of what's possible under NetBSD, read the snippet (below) from the >NetBSD mailing list. > >==== NetBSD mailing list snippet ==== >as per martin husemann > >cd $(top-dir-where-you-put-the-netsbd-tree) >./build.sh -m evbarm64-el tools kernel=MYKERNEL >[snip] The first link I posted is about build.sh, so I seemingly understand quite good what you want. You don't understand my reply. Likely (I can't say for sure) FreeBSD doesn't provide a script comparable to NetBSD's build.sh, at least I had no success when googling. The second link posted by me is a tutorial on how to set up "a cross compiler (gcc) for freebsd under linux", which is a starting point, an alternative to a script that automagically sets up "everything".