From owner-freebsd-arch@freebsd.org Fri Sep 14 21:11:01 2018 Return-Path: Delivered-To: freebsd-arch@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 677971093CC6 for ; Fri, 14 Sep 2018 21:11:01 +0000 (UTC) (envelope-from arichardson.kde@gmail.com) Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 047DE72BE3 for ; Fri, 14 Sep 2018 21:11:00 +0000 (UTC) (envelope-from arichardson.kde@gmail.com) Received: by mail-yb1-f180.google.com with SMTP id o17-v6so5401921yba.2 for ; Fri, 14 Sep 2018 14:11:00 -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; bh=Ufc0FJMMBzZBVGAwmY298ShGPbfW31ODQvXt+UDy25M=; b=j2bCDlBD9gXXqEQBFM9NdiigVIUTDZRTyrwHvWjl7ATbYJk/GsXYfGQeZu1R8LMsMK q4pNlln0Nx0h7VPQWMfDhsbZMyoLOAGYKOKDVEHdBftYR+TFIbTJ4rVnCeofWyfUiao6 7W1KnshhGld7nteWUm3hUcK9/Rgxt74GMV4j16PeaJ5ecLuLWXbdbUtEIXO1RDT9s5kA pVQKTslXJwjH6Hdi3f1Fiu09szG8c/YZ+/Ie23k7K/Ih5Zuo8HbwBfjYd91lfpvyWOM1 T5q9n0yyErUkW0IsIxwxU8aak/+ZAj5enxsnpv9zru7dZO99fqRmfE1sn4ue6F3Hzupc Ohuw== X-Gm-Message-State: APzg51BB3f+kUymtTF31pTOvuRlajKhlNOCxmyPvDKpo1APcx93/IArt Bgv2unL98T27OMgS2rPZRek3OYWoQGA= X-Google-Smtp-Source: ANB0VdZa8hqt8vIy5HcQ83MMr6miTWtb4gc4LxLtwPNuDx3m/euLa1DKG5Xn6zGQF59+y0OIwgkm/g== X-Received: by 2002:a25:b20c:: with SMTP id i12-v6mr3568041ybj.371.1536953153868; Fri, 14 Sep 2018 12:25:53 -0700 (PDT) Received: from mail-yw1-f48.google.com (mail-yw1-f48.google.com. [209.85.161.48]) by smtp.gmail.com with ESMTPSA id s63-v6sm4504612ywd.63.2018.09.14.12.25.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Sep 2018 12:25:53 -0700 (PDT) Received: by mail-yw1-f48.google.com with SMTP id y134-v6so3083937ywg.1 for ; Fri, 14 Sep 2018 12:25:53 -0700 (PDT) X-Received: by 2002:a0d:d849:: with SMTP id a70-v6mr6459531ywe.506.1536953153437; Fri, 14 Sep 2018 12:25:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Richardson Date: Fri, 14 Sep 2018 20:25:45 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Compile FreeBSD on linux/MacOS To: Alexandru Elisei Cc: freebsd-arch@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2018 21:11:01 -0000 Hi Alex, If you would like to make some changes you could open an issue/create a pull request on my GitHub repo. However, I'll be traveling for the next two weeks so it might take a while until I respond. Once I get back I will start working on this again and hopefully get most of the patches submitted soon. Regards, Alex On Fri, 14 Sep 2018, 13:47 Alexandru Elisei, wrote: > Hello Alex, > > If someone wants to create an issue or contribute to your patch, how can > that be done? > > Regards, > Alex > > On Sun, Sep 2, 2018 at 4:31 PM Alexander Richardson < > arichardson@freebsd.org> wrote: > >> Once Fri, 31 Aug 2018, 14:11 Alexandru Elisei, < >> alexandru.elisei@gmail.com> wrote: >> >>> Hello, >>> >>> I know there is a project about compiling FreeBSD on linux or MacOS. >>> >>> Where can I find more information about the project? Has it been >>> submitted >>> for review? >>> >> >> Hi Alexandru, >> >> >> I have been working on this for the past few months. I have a >> work-in-progress branch on GitHub < >> https://github.com/arichardson/freebsd/tree/crossbuild-aug2018> >> (warning: I rebase this branch whenever I commit one of my changes) but I >> haven't written up anything about the current state. >> I have a few pending patches on phabricator and some committed changes >> but the rest of the changes still needs some clean-up before it can be >> submitted. Most of the changes are just allowing to build one of the >> bootstrap tools on non-FreeBSD but there are also two bigger changes >> (D16815 and D14316) to provide the basic cross-OS building infrastructure. >> >> It currently works fine for me on MacOS and Linux when compiling with the >> CHERI fork of llvm/clang/lld () >> but in order to compile with upstream clang you will have to delete the >> builtin std* headers from the clang install since they are incompatible >> with the FreeBSD stddef.h/stdio.h/etc. headers. >> >> If you want to try it out you should to use the script >> tools/build/make.py instead of make and if you're lucky `make.py >> buildworld` might succeed. I've tested building for mips64 and amd64 but >> other architectures might also be fine. >> >> >> Alex >> >> Best regards, >>> Alexandru Elisei >>> _______________________________________________ >>> freebsd-arch@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-arch >>> >>