From owner-freebsd-questions@freebsd.org Tue Jun 16 07:28:27 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 6FD8932BA27 for ; Tue, 16 Jun 2020 07:28:27 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49mKYk1tR0z4Rpn for ; Tue, 16 Jun 2020 07:28:25 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from sogo3.sd4.0x35.net (sogo3.sd4.0x35.net [10.200.201.53]) (Authenticated sender: mayuresh@kathe.in) by relay5-d.mail.gandi.net (Postfix) with ESMTPA id 4761D1C000C; Tue, 16 Jun 2020 07:28:23 +0000 (UTC) From: =?utf-8?q?mayuresh=40kathe=2Ein?= In-Reply-To: <20200616090259.0d5f0f1e@archlinux> Content-Type: text/plain; charset="utf-8" X-Forward: 127.0.0.1 Date: Tue, 16 Jun 2020 09:28:23 +0200 Cc: freebsd-questions@freebsd.org To: "Ralf Mardorf" MIME-Version: 1.0 Message-ID: <581-5ee87480-29-5e63d300@42519970> Subject: =?utf-8?q?Re=3A?= Possible to compile tree on a different =?utf-8?q?OS=3F?= User-Agent: SOGoMail 4.3.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 49mKYk1tR0z4Rpn X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mayuresh@kathe.in designates 217.70.183.197 as permitted sender) smtp.mailfrom=mayuresh@kathe.in X-Spamd-Result: default: False [1.73 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[217.70.183.197:from]; FROM_DN_EQ_ADDR(1.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.70.183.192/28:c]; NEURAL_HAM_LONG(-0.99)[-0.995]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[kathe.in]; NEURAL_HAM_MEDIUM(-1.04)[-1.038]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.73)[-0.733]; RCPT_COUNT_TWO(0.00)[2]; SUBJ_EXCESS_QP(1.20)[]; FROM_EXCESS_QP(1.20)[]; MID_RHS_NOT_FQDN(0.50)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR]; SUBJECT_ENDS_QUESTION(1.00)[]; GREYLIST(0.00)[pass,meta]; RCVD_COUNT_TWO(0.00)[2] 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:28:27 -0000 On Tuesday, June 16, 2020 12:32 PM IST, Ralf Mardorf wrote: > 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 compil= e > >> >the NetBSD source tree under a Ubuntu system using GNU build tool= s. > >> > > >> >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=5Ffreebsd=5Fcompiler=5Fi= n=5Flinux.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 examp= le > >of what's possible under NetBSD, read the snippet (below) from the > >NetBSD mailing list. > > > >=3D=3D=3D=3D NetBSD mailing list snippet =3D=3D=3D=3D > >as per martin husemann > > > >cd $(top-dir-where-you-put-the-netsbd-tree) > >./build.sh -m evbarm64-el tools kernel=3DMYKERNEL > >[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". Okay, now I got it, so there's no automagic solution ready for use yet.= Thanks, ~Mayuresh