From owner-freebsd-mono@freebsd.org Wed May 2 05:13:16 2018 Return-Path: Delivered-To: freebsd-mono@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 CB3E8FC224A for ; Wed, 2 May 2018 05:13:15 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 36EA96B6AE for ; Wed, 2 May 2018 05:13:15 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id EB765FC2249; Wed, 2 May 2018 05:13:14 +0000 (UTC) Delivered-To: mono@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 B5474FC2248 for ; Wed, 2 May 2018 05:13:14 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 118F06B6AD for ; Wed, 2 May 2018 05:13:14 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x232.google.com with SMTP id h4-v6so19003061lfc.1 for ; Tue, 01 May 2018 22:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=2spDaSKcyC214347iBRuwo+pCiypMiiHGSCUO8hNghc=; b=HTJ9jUpdEnHlmYM1Gh7xsYHbWFN/3T1pl1LkRLh4A2/Fi7qnE+ihGUGaMel0aq0lmd KZZ7Idc1aWB787SVALHF8j1a+fL4R0ekayyh8fQkM3F2DU2aRvscf4oec0mDWjIJVdY/ h8L0u/R7eKFwprwnKbClCiCGBKcT5to+9vtoT7RnU28NzpzxQeSHPr2/9fQyTZ5lTs32 BSdPwxsjupL3az9kEPTrg50guhHNLdysx47I8RrunzrngS6a7/k5hnzTJI8ar8fix6ZR PgE95EazBz6LafyzZ1UGJu3KBaKrqYBxsIoWzvJ5R2DxCwlTHOTbkSQCYEI43TbEUzxn oiEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=2spDaSKcyC214347iBRuwo+pCiypMiiHGSCUO8hNghc=; b=NoDqXGBUgPF2aSLZikWPqoCSaHn8Eo0I/qRNWcC6tXO1NftNtoahkW3QAK01Gt/Si3 0knCL12Tej+qLFaVOmtSbHxncfrxbwe4Y3nd64KIKLUss00V/uJtjYmLHLYRDyj7aBPR DwqOs7j4J33K7nDfu7xlbPlAw6cNli/LK3+nsS3Hlc1v/wESZFjuXg9A0Lg9RnPQN/28 5ygYsEVgqa69kpC7UYP2XsxOTXw/N39Cwc2owRQ7vac3t8v7qjtzp4fZiAjZ4GXqo0Nn GmscRWrkkpZuRMwbptkiaMRQjpZWp3gYSw+vnM7XK1RV4FHd6jku6OzWo1wtzjkebWHI EguA== X-Gm-Message-State: ALQs6tBV9eChTd4uIjSSnx73f03HR2QxvH2vwlGnmbvrYwmYM9BqNsVf bDaRelUslCNTRtkbxKmRk8tBcyxv/yi+bT7BBqOefA== X-Google-Smtp-Source: AB8JxZqNDrisL3BLkNymj9jeIby9ovGFbAgVcWoIp+KLqgvDvjJT4UNyGnm9spWjs9wjAqPqSjWSPjgc6iLs7nlZQMA= X-Received: by 2002:a19:8e8e:: with SMTP id a14-v6mr11444982lfl.145.1525237991937; Tue, 01 May 2018 22:13:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.152.16 with HTTP; Tue, 1 May 2018 22:13:11 -0700 (PDT) In-Reply-To: <20180425142141.7192660.44401.46097@gmail.com> References: <20180425142141.7192660.44401.46097@gmail.com> From: Russell Haley Date: Tue, 1 May 2018 22:13:11 -0700 Message-ID: Subject: Re: [GSoC'18] Porting Microsoft's CoreCLR, CoreFX, and PowerShell to FreeBSD To: Mateus Rodrigues de Morais , mono@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2018 05:13:16 -0000 On Wed, Apr 25, 2018 at 7:21 AM, Russell Haley wrote= : > Hi! > > Sorry for the top post. I'm really glad to see someone pick this up as I > have dropped the ball. I'll try to send you some information later. =E2= =80=8EHere > is a description of the current status of where the porting is at: > https://github.com/dotnet/corefx/issues/1626#issuecomment-378627311 > > I am helping another person with his SGOC on RTEMS so I will not be able > to give my full attention to you but will help where I can. It will be > important to push the Linux ports of dotnetcore 1 forward for your succes= s. > Hello Mateus, So I'm not sure how much you know yet about the state of DotNet Core on FreeBSD. In order to build dotnet you need to create two "parts" of the each of the two Libraries CoreFX and CoreCLR. The first part is the native components that interact with the operating system, and the second half are the "managed" dotnet parts that interact with the native components (as well as the rest of the framework). The problem with FreeBSD is support was never kept up in the original port of DotNet Core 1. The managed components for DotNet Core 2 can only be built using a compiler written in one of the three DotNet variants (.Net framework, DotNet Core 1 or DotNet Core 2). There was at one point support for building DotNet in Mono, but Microsoft isn't divulging any of that information and is not interested in following that path. SO, a Microsoft Developer named Tomas Wienfrut took the project on and was able to get DotNet Core 2 building for FreeBSD.Tomas, was able to cross-build both portions on Linux. I have been able to build the Native parts on FreeBSD without issue. I was almost successful building the Managed components Windows (for FreeBSD) but ran out of steam and I haven't used .Net for about a year now so my focus is learning new things. The problem with the above build methods is they are slow and messy and required copying things back to FreeBSD from another OS. It wasn't very manageable. In comes David Naylor - who is pretty much single handedley propping up Mono on FreeBSD - with a binary Linux port of Dot Net Core 1 and all the build components that we need for DotNet Core 2! The important parts that you will need are still only patches. Someone needs to build and verify his patches so he can commit them. He has created a tracking ticket in the phabricator review tool here: https://reviews.freebsd.org/D12440 The important patches for you are here: https://reviews.freebsd.org/D14135 - msbuild https://reviews.freebsd.org/D13870 - linux binary dotnet core 1 I have patched a ports tree and run the linux dotnet core 1 binary, but have not completed the process of verifying it works. I just gave it another shot and there is still a missing package (I commented on the D13870 ticket). SO, should you choose to move forward with porting DotNet Core 2, you have two choices: 1) continue Davids work to get the Linux DotNet binaries working, or 2) investigate building with Mono - which is a path untaken so far. If you wish to continue with the Linux binaries, someone should probably test the patches that David has provided so we can get the pre-requisites in the ports tree. After that, the following build instructions should still be relevant minus any -skipcrossgen flags: https://github.com/dotnet/corefx/wiki/Building-.NET-Core--2.x-on-FreeBSD And that should be it right? ha ha. No. You have a long road of testing ahead of you. I am thrilled to see this work move forward. If I can provide any further assistance, please let me know. I can't wait to see PowerShell running on FreeBSD! Although I am rather fond of fish on GhostBSD now. Cheers! Russ > I will write back soon with more details but didn't want your last messag= e > to go unanswered. > > Cheers > Russ > > Sent from my BlackBerry 10 smartphone on the Virgin Mobile network. > Original Message > From: Mateus Rodrigues de Morais > Sent: Tuesday, April 24, 2018 4:20 PM > To: mono@FreeBSD.org > Subject: [GSoC'18] Porting Microsoft's CoreCLR, CoreFX, and PowerShell to > FreeBSD > > Hello all, > > My name is Mateus and I=E2=80=99m an undergraduate at the Federal Univers= ity of > Rio Grande do Norte, in Natal, Brazil, studying Computer Engineering. I= =E2=80=99m > currently participating in the 2018 Google Summer of Code and my project = is > to port the CoreCLR, CoreFX and, ultimately, PowerShell, to the FreeBSD > platform. > > I=E2=80=99m expecting to interact quite a bit with you guys here on this = list so, > just introducing myself. Also, I=E2=80=99m happy to receive suggestions f= rom you > all, if you have any. > > Best regards, > > Mateus Rodrigues de Morais. > _______________________________________________ > freebsd-mono@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mono > To unsubscribe, send any mail to "freebsd-mono-unsubscribe@freebsd.org" >