Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Sep 2017 20:58:39 +0200
From:      David Naylor <naylor.b.david@gmail.com>
To:        Geoffrey Huntley <ghuntley@ghuntley.com>
Cc:        freebsd-mono@freebsd.org
Subject:   Re: Help Wanted - Work with MSFT and help finish the port of .NET Core to FreeBSD
Message-ID:  <5615919.TlCM7jm4W2@dragon.local>
In-Reply-To: <1697920.aIIVMSx0iY@dragon.local>
References:  <CAFA=8-YkPH%2BCQFNJkqfLv6zh0RhcgPG17tLNS8FkCOGNJwpJ5g@mail.gmail.com> <1697920.aIIVMSx0iY@dragon.local>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart22799143.zeWXg1iOmM
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

On Tuesday, 5 September 2017 20:52:10 David Naylor wrote:
> On Monday, 4 September 2017 10:54:21 Geoffrey Huntley wrote:
> > See https://www.youtube.com/watch?v=NHllisWOCpU and
> > https://twitter.com/GeoffreyHuntley/status/904227946084294656
> 
> Hi Geoffrey
> 
> It is great to hear there is more interest in finishing the port of .NET
> Core to FreeBSD (and, I hope, to have ports living in the Port's
> Collection).
> 
> Would it be possible for you to put me (and the mono@ mailing list) in touch
> with Karel and Tomas - I'm not on Twitter.
> 
> I'll reply to this email (dropping ports@ and advocacy@) with more technical
> details.

There has been multiple attempts to finish the porting, my effort can be found 
here [1].  Alas, I haven't looked at it in a while so I'm not sure how things 
look on the .NET Core 2.0 front.  As it stands I have:
# git clone https://github.com/DragonSA/dotnet
# make -C dotnet/dotnet-sdk install
# gdb /usr/local/dotnet/bootstrap/dotnet
<snip/>
(gdb) run --version
<snip/>
(gdb) bt
#0  0x000000080299065b in pthread_mutex_destroy () from /lib/libthr.so.3
#1  0x000000080298f919 in pthread_mutex_lock () from /lib/libthr.so.3
#2  0x000000081d093c4d in GetCollatorFromSortHandle () from 
/usr/local/dotnet/bootstrap/shared/Microsoft.NETCore.App/1.0.3/System.Globalization.Native.so
#3  0x000000081d093dcf in GlobalizationNative_CompareString () from 
/usr/local/dotnet/bootstrap/shared/Microsoft.NETCore.App/1.0.3/System.Globalization.Native.so
#8  0x000000080291cae8 in vtable for InlinedCallFrame () from 
/usr/local/dotnet/bootstrap/shared/Microsoft.NETCore.App/1.0.3/libcoreclr.so

The main challenges have been:
 1) how to bootstrap the build:
   i) mscorlib.dll (and friends) need to be compiled on Windows
  ii) all other dlls also need to be compiled on Windows (without crossgen)
 2) nuget downloads conflict with the approach required by the Ports 
Collection

Some initial ideas I have to overcome the issues are:
 a) improve the Ports Collection to handle nuget packages (WIP) (2)
 b) have dotnet-sdk distributed without crossgen applied (1ii)
 c) adopt mono's approach of creating a single dll for all platforms (1i)
 d) allow bootstrapping of .NET Core with mono (1)
 e) fix the core dump mentioned above :-P
 f) abstract the bootstrapping process (i.e. init-tools.sh)

[1] https://github.com/DragonSA/dotnet

Regards

David
--nextPart22799143.zeWXg1iOmM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEElI7FEaJ/AwLnmbU6rWP6jday2lUFAlmu899fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk0
OEVDNTExQTI3RjAzMDJFNzk5QjUzQUFENjNGQThERDZCMkRBNTUACgkQrWP6jday
2lXMhBAAvc6nSj5WYL8rBrYhjRzlbySCxHdyhz4Ndf1QNwadXdzAtLAJiTACLzJ8
7+zY7H2lpc4GHSy5FzWT7V48gzSj9zWNHlxKq6A9kFvEmqDuCu+zmuG7tJsnDfez
scWR2qWFsVFD5vUAmBSOUbKTip3iaE8Ne8sDuVFU/xodgctsDW2m+1cv3f8/dnL/
WjESVeO1O2nFWqXz8yav63gd1g52cyFgJEFK9wWARq0MLTqX6WgGSmJe1ohdmjms
N8NfeuIuBxeHMQVBjTSl6xv+PLO7OO1XlI8n2tMeL3jos0NFRPoskCBo4Y5tBMNF
UeX84xob305KFZsfgZQE8nVmvPqqyZ6wp1tFggBCRb5+R8oHa7Tp5MsBBFFD1A+V
/nI1LApmt/8h+ts5v+DTXgcNLytLuThZA9+kK2zoA/cse0AXmkxbUKeZQzOspiLF
uP6Yq0u5Zlne4lkBEaecI6Z9lIo6OXexwXBDauAx+y6mE0190iVg+Vp7dBCVmKZY
51KkxefbQxnYI8aBFSZ28K1CmxOrCbmEP0yuXg196Dy21z36Z3CiDPFG/DslFkwC
X7Ki82TCXidibKP1hCKJlKQNxZz6r4zV5meDoNONwktgtMncMJVFfnbBHFwpS1Ch
O7OdZFhYNhkZBr7q8msC+IWvs/z1c1NSjmtYVpcowa0eH9BdhfA=
=ksDU
-----END PGP SIGNATURE-----

--nextPart22799143.zeWXg1iOmM--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5615919.TlCM7jm4W2>