From owner-freebsd-arch@freebsd.org Fri Sep 14 12:47:09 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 76CBE10829AF for ; Fri, 14 Sep 2018 12:47:09 +0000 (UTC) (envelope-from alexandru.elisei@gmail.com) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (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 AC59B80E63; Fri, 14 Sep 2018 12:47:08 +0000 (UTC) (envelope-from alexandru.elisei@gmail.com) Received: by mail-qk1-x736.google.com with SMTP id 130-v6so5052227qkd.10; Fri, 14 Sep 2018 05:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f5c/2TyOyyqdkabnhSILHzFy78+0WprUXt0FyDLbXP0=; b=tbON/ChXQm6iO0ra3rsqBwYRSr0NiUxGxytcaxr3NI3M3d8k/aONt5Yty3XTEWw5rp ncdzYMH5ymxN8JN+PMVlDKWQWJa17NV5d4fxHxx8xKCk80t7WVGZp7BnkYvau39RGn4v Oan4YZOaRY1j96evZceDrB366OEdX7WjdZDneB0m/cJj/vSWTckei73PYnOvnYNKb7sC CMuvdtIAxGVhSl9ibNF9oEurVAcYnFNc6jjcrY2XPNhxqdQ5G0xumXFEZmb8Zpv29NB3 b6jsUTSWlz/UFcj60lWeBGAT9udMKcVLtYhtWARxJAU6QNazUncRKY0/Ic6QJg59xKrm f5jA== 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=f5c/2TyOyyqdkabnhSILHzFy78+0WprUXt0FyDLbXP0=; b=avcOjHL2ZDIKQrfsLJUIYCD9MGD8BYB0mTDVfVcQktnXvcs/j2sPI+Gs5mctgJWZtE czdDuZMKuexrCNsl+gFfgg08gw3UUkcrW3pTiPJgovaZTEtVYTjkUAZ8DoSeX/tCWt/y rPCbrde2P1K/J8bc3w/LHIszXeDsW3l/Y7xpDhIjE7GBg4+vN4K6wphQZQHcpUpHCrTH xGUFqKOE+m896SGHqkc7EHv+lK393QCkMNEnb8t2RPUQ5voF4jylriTlksSFoRPIW/wW v+/K8FPN86lJ/kPlqPdphAPGDqU9n5nWIdYg5ku6Dxva3FBJapHytz3uUOuKZac+rXAA dvuw== X-Gm-Message-State: APzg51A1raF/RlQE4cRHWYbK3nZYSLSDMPOQWSZ5ODHnjMhi+Hp/zNGk GUThPbDWyIX5Pjkrqn8Z09puKYLc9Lq26aYby+AZ76bT X-Google-Smtp-Source: ANB0VdZFdEZLeIV5V4JQrmiVls04ux3MxDaIA+sEdrzFfUqlr2X558wgQqjSwU589bPUYKKlbCbsngTCLqednr6zW50= X-Received: by 2002:a37:1adb:: with SMTP id l88-v6mr8038534qkh.43.1536929227959; Fri, 14 Sep 2018 05:47:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexandru Elisei Date: Fri, 14 Sep 2018 13:46:57 +0100 Message-ID: Subject: Re: Compile FreeBSD on linux/MacOS To: arichardson@freebsd.org 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 12:47:09 -0000 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 wrote: > Once Fri, 31 Aug 2018, 14:11 Alexandru Elisei, > 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 >> >