From owner-freebsd-questions@freebsd.org Fri Jun 19 16:46:29 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 A6001332B0B for ; Fri, 19 Jun 2020 16:46:29 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-il1-f196.google.com (mail-il1-f196.google.com [209.85.166.196]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49pPpD5lRFz4Tw2 for ; Fri, 19 Jun 2020 16:46:28 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-il1-f196.google.com with SMTP id 9so9802402ilg.12 for ; Fri, 19 Jun 2020 09:46:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9MvNLttG+KWRV+kvOhmHdovKrWZE/koAyLF5MC0KJdY=; b=lFTtYBdCLP6lP4WXZgJG3oHjY5uQVIzm8EFn/eGa0OlHELyr26ejIgdW5BxkRnccsw 4HjNdpS4t/bsPP3gaLNzD4AOnMrIcn5w29IpBYH/qWzSa9r4P+vWJTdPiOK4YMKC5SXQ Op+AzgTzUYAGhcwQ+RT1qwvRnGrrXv5GhovcUrlrKJG+wxgTubya/QtxpgXqZ3M4ejB2 7HBNdfgqgFB1MYLV8SXHu39/GX1prpM1mDr5M6lJpqIs5nvOmCR3AQUx5bP1Ltr+oiIF 3ksXZhDo5rOTHk/oJTlLUPzdtkRUFya6Js9vft8Qfwo6FgB/+VQd/hKUnel8z5k8RkEG 2yXQ== X-Gm-Message-State: AOAM533UpnVscGrBTQgmvBM1Mn70s+NTaLsZMvOoaQs/Y4T4xdNmik1F NvNQCkpZOwkLTrsC3Fp5M3r3v69tXx6tF1N3yKkyWBX9 X-Google-Smtp-Source: ABdhPJyr22Kj0WNUe230xEQc6MvJDSjHGeezyQZy4fTrWPgT20w4bf6Ez8uN6RyXn6kdOJ/8BY52z5LfqGWPVTgDw2k= X-Received: by 2002:a05:6e02:ee8:: with SMTP id j8mr4382380ilk.11.1592585187496; Fri, 19 Jun 2020 09:46:27 -0700 (PDT) MIME-Version: 1.0 References: <2054-5ee85580-1d-6ecc0b80@214142625> In-Reply-To: <2054-5ee85580-1d-6ecc0b80@214142625> From: Ed Maste Date: Fri, 19 Jun 2020 12:46:15 -0400 Message-ID: Subject: Re: Possible to compile tree on a different OS? To: "mayuresh@kathe.in" Cc: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 49pPpD5lRFz4Tw2 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.166.196 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-0.58 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; RCVD_TLS_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; NEURAL_SPAM_SHORT(0.13)[0.131]; NEURAL_HAM_LONG(-0.87)[-0.869]; SUBJECT_ENDS_QUESTION(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.196:from]; NEURAL_HAM_MEDIUM(-0.84)[-0.843]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.196:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com] 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: Fri, 19 Jun 2020 16:46:29 -0000 On Tue, 16 Jun 2020 at 01:27, mayuresh@kathe.in wrote: > > The NetBSD folks have mechanisms in place to allow compiling (including c= ross-compiling) their entire (or partial) source tree under a different ope= rating 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? Unfortunately we don't have anything "out of the box" for building on non-FreeBSD hosts yet, but there is significant work in progress to make it possible. The CHERI research project at Cambridge has build infrastructure for all of the components they're using (modified research versions of QEMU, Clang/LLVM, and FreeBSD) that builds on FreeBSD 10+, Ubuntu 16.04+, OpenSUSE, and macOS. You can find more information about that work here: https://github.com/CTSRD-CHERI/cheribuild https://wiki.freebsd.org/BuildingOnNonFreeBSD