From owner-freebsd-questions@freebsd.org Tue Jun 16 06:21:01 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 AB6C23298EB for ; Tue, 16 Jun 2020 06:21:01 +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 49mJ3w4RC4z4N7R for ; Tue, 16 Jun 2020 06:21:00 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from sogo9.sd4.0x35.net (sogo9.sd4.0x35.net [10.200.201.59]) (Authenticated sender: mayuresh@kathe.in) by relay5-d.mail.gandi.net (Postfix) with ESMTPA id 425D11C000C; Tue, 16 Jun 2020 06:20:57 +0000 (UTC) From: =?utf-8?q?mayuresh=40kathe=2Ein?= In-Reply-To: <20200616081259.4b1b4143@archlinux> Content-Type: text/plain; charset="utf-8" X-Forward: 127.0.0.1 Date: Tue, 16 Jun 2020 08:20:57 +0200 Cc: freebsd-questions@freebsd.org To: "Ralf Mardorf" MIME-Version: 1.0 Message-ID: <483b-5ee86500-35-519df400@194132122> 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: 49mJ3w4RC4z4N7R 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 [2.48 / 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(-0.98)[-0.982]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.05)[-0.048]; 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 06:21:01 -0000 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 t= he > >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=5Ffreebsd=5Fcompiler=5Fin=5F= 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. =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 to build cross toolchain + a single kernel. This will create "tools" in= a special tool directory (and tell you where). if you are later working on kernel sources, you can do it manually too:= cd $(top-dir-where-you-put-the-netsbd-tree)/sys/arch/evbarm/conf $(TOOLDIR)/bin/nbconfig MYKERNEL cd ../compile/MYKERNEL $(TOOLDIR)/bin/nbmake-evbarm64-el depend $(TOOLDIR)/bin/nbmake-evbarm64-el -j 24 lots of variants also work, but these are the two most popular (i think= ). =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Is such an operation possible with FreeBSD under Ubuntu? ~Mayuresh