runtime icon indicating copy to clipboard operation
runtime copied to clipboard

FreeBSD Port Team: Volunteers needed

Open janhenke opened this issue 11 years ago • 90 comments

Following the discussion on the chat, I am looking for volunteers to start a FreeBSD port team.

The purpose is to have a group of people working together on making coreclr working well on FreeBSD. This includes having more people with FreeBSD experience for reviewing patches and keeping an eye on PRs.

This issue is intended to discuss this idea and as a means to get into contact with each other. Also technical discussions about porting to FreeBSD are possible.

janhenke avatar Mar 15 '15 19:03 janhenke

My experience with FreeBSD is making VM template for CloudStack, if this can qualify I would like to join the team and picking up this brilliant OS on the way. :)

xied75 avatar Mar 15 '15 22:03 xied75

it's likely that you're already aware of this fork but if not it's worth checking out: https://github.com/ajensenwaud/coreclr

MattWhilden avatar Mar 16 '15 00:03 MattWhilden

Ugh. Was too fast on the comment button. Meant to attempt to summon @ajensenwaud to the thread.

MattWhilden avatar Mar 16 '15 00:03 MattWhilden

To provide some more context ... to make this project awesome, we'd want a core group of folks that felt ownership and accountability (in a good way) to make the project happen. In turn, the .NET Core team would be more compelled to invest in CI infrastructure for FreeBSD as a first class citizen.

I like the idea of "port team". Some of very best people the CLR team has ever had were on the "X64 port team", 10+ years ago. They simply referred to themselves as "the port team". Not the type of folks you'd want to meet in (technical) dark allies ;)

richlander avatar Mar 16 '15 01:03 richlander

While I don't have the time to contribute significant resources to this, given the familiarities with OS X, I'm happy to support with code review, direction and suggestions. Feel free to @kangaroo me on issues.

kangaroo avatar Mar 16 '15 02:03 kangaroo

Long time FreeBSD user/supporter.

I'd be keen to help out from an administrative/sysadmin/marketing/documentation role where needed.

@qbit (OpenBSD), @josteink (FreeBSD), @Aesthetikx (FreeBSD), @ajensenwaud (FreeBSD) and @kangaroo (OSX) have been involved in previous work to bring CoreCLR to BSD.

ghuntley avatar Mar 16 '15 22:03 ghuntley

These PRs are relevant to this discussion: https://github.com/dotnet/coreclr/pull/453, https://github.com/dotnet/coreclr/pull/470.

Nice to see that they have been merged.

richlander avatar Mar 17 '15 15:03 richlander

I mostly tried to help out in @ajensenwaud's repo as a sort of "challenge accepted" short-term project.

As I don't have any up-to-date FreeBSD production-systems, I doubt I'm a good candidate for a longer term FreeBSD "port team". I do agree about the name though. It has a nice ring to it. Go for it!

That said, I appreciate being summoned and namedropped in dotnet/coreclr. That's almost going on my resume ;)

josteink avatar Mar 18 '15 09:03 josteink

Hi all

Thanks Jostein, appreciate your help so far!

I am very keen to still assist with the porting and can also assist with test infrastructure, as required. How many are in for this?

Anders

On 18 Mar 2015, at 20:47, Jostein Kjønigsen [email protected] wrote:

I mostly tried to help out in @ajensenwaud's repo as a sort of "challenge accepted" short-term project.

As I don't have any up-to-date FreeBSD production-systems, I doubt I'm a good candidate for a longer term FreeBSD "port team". I do agree about the name though. It has a nice ring to it. Go for it!

That said, I appreciate being summoned and namedropped in dotnet/coreclr. That's almost going on my resume ;)

— Reply to this email directly or view it on GitHub.

ajensenwaud avatar Mar 18 '15 10:03 ajensenwaud

Maybe we should make a wiki with status of each port, next steps and hurdles? OpenBSD is stuck until libunwind is ready (unless coreclr people can confirm that isn't a hard dep?).

qbit avatar Mar 18 '15 13:03 qbit

You can start porting without the libunwind. It is required for exception handling and GC. So as long as an application doesn't throw an exception or initiate a GC, everything should work without the libunwind. That's the way we were bringing up coreclr on Linux, the exception and GC support came quite recently.

janvorli avatar Mar 18 '15 13:03 janvorli

:+1: - I will keep hacking away then!

qbit avatar Mar 18 '15 13:03 qbit

Hi folks,

I did not answer earlier as I want to know how big the feedback is. So far I am happy to see quite some people eager to join this project.

One question we should answer though is whether we want separate *BSD teams (one for FreeBSD, one for OpenBSD, one for NetBSD) or one big BSD Port Team. My experience is limited to FreeBSD so far, which by my understanding is also the most often used of the different *BSDs. But from what I read there seems quite some differences e.g. between OpenBSD and FreeBSD. So I have the tendency to limit the scope of the "FreeBSD Port Team" to FreeBSD only for the time being.

As @richlander proposed I would start a PR with a new Wiki page, describing the intention of the team, current members, agenda and way to participate. Currently I see as members:

  • @janhenke
  • @xied75
  • @kangaroo
  • @ghuntley
  • @josteink
  • @ajensenwaud

Also @qbit for OpenBSD. As a rought list of people interesting. Would be nice to get an answer to the FreeBSD <-> OpenBSD <-> NetBSD question and a ack/nak to team memebrship from everyone in the list. Then I can prepare the wiki page based on that outcome. Best reply until Friday noon UTC. :)

janhenke avatar Mar 18 '15 14:03 janhenke

Alright, have created an Azure virtual machine (2 cores, 3.5GB memory) running FreeBSD 10.1-RELEASE which @josteink (and the others above) can call home for the foreseeable future whilst this issue is open. There's no NetBSD/OpenBSD images available in VMDepot, they were to magically appear then I would create another VMs for them as well.

Post a public ssh-key here and I will create you an account on portteam.cloudapp.net that has sudo access. Treat it with respect but don't be afraid to break it as it can be recreated as needed with a simple shell script.

ghuntley avatar Mar 19 '15 04:03 ghuntley

I'm pretty busy these days, so I'm definitely not making any promises.

Anyway, I appreciate @ghuntley's initiative, and to show that, here's an SSH-key which means that in theory I can contribute should I ever get the time:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDMaGl5KG5P6fogg5B5tY9K26X2rx0d7MZg7x28TYxICZGK1aHCODylNy3WfnBFvQ5hRsrf0kCT2u36JUmgJzXTBx6Vc3AchrEOMJLRl3KvJfsbpANrymkW666sDgQW6PyqXSZ8f17vREGZrvFa41/dwAxMvxlQELwS8HRgNzY8GoZBP9BTm6qqZFozBf25nZLN/p3/X3w3GxW4USJutnH5T2oBJc3TqVnBFSgrsnHMMlmV+Xj0EMBy4di+JoNBm78hCDwt1QVMJ+NDOH224LuWgTlhOIRRDZfNee3qGHOB1llI78BZkc4x/9SJR8Fiv13pUINHc1zfLBzmB1PPLztLS2j8kOTh/ymr3Gc5+8iGgPX9ZideNLoTjD9necwQ+GhPdys/DkU8idYkCJnVPv6il+OOwk55xopyyfs11660xlAxJKdNy8D3lbSBSQQCGMRKAXhXxUsQr1R64fScZ0NejmpXwYR+9vybymKbiMWizxYQ8ap/KxOAs3znPWYpu2mjldkHqKd0Wc5z4/pgZS/m2KVHr95oy1Lx/O77x6QSy9h7Wu1xIcayV5R+wIvfz6BhQ7Hpr2Lu2MHpNQr2T4UzIodfSJ/LWp/xo37Fl7Bg9SntEC4NepSW9FFSJ0q48/CfcTJYMvLTvqGYn85Y8PnlrKsr295RiRyMiD3Ys4RNtw== jostein@irssi

Anyone else?

josteink avatar Mar 19 '15 07:03 josteink

But from what I read there seems quite some differences e.g. between OpenBSD and FreeBSD.

From what I can tell, coreclr is pretty well abstracted and most (everything?) platform-specific goes through the Platform Abstraction Layer (PAL). If that builds cleanly, the build as a whole goes quite a bit further without too much trouble.

The PAL seems focused on underlying implementations rather than platform (see context.cpp): That checks if this architecture has BSD regs, PT regs, GREG-sets, what register-mapping etc.

Since I'm not sure if this is a problem at all, the best plan I can think of is to closely collaborate with the OpenBSD team (@qbit. anyone else?) and make sure the commited changes are mutually compatible.

If we later discover there's any substantial difference between FreeBSD and OpenBSD (or for instance Darwin), we might need more differentiation between the platforms than just saying "it's BSD", but let's save that for later, if for nothing else, just to get something going.

Alright, have created an Azure virtual machine ... Treat it with respect but don't be afraid to break it as it can be recreated as needed with a simple shell script.

If there's any global prerequisites/requirements will they be embedded in this script? According to the best of my knowledge @kangaroo's changes to support Darwin means clang3.7 (which of we will be cherry picking some) will be required to build this. Clang3.7 is not installed by default in FreeBSD 10.1, nor is it the default c-compiler.

It would be nice to have stuff like this (and other things we may add incrementally) available to everyone. Basically a public build-script for the machine. Sounds doable?

Which leads us to the next issue. Where do we work?

Since I doubt we'll be given commit rights into coreclr directly, or have PR's accepted before we have something to show for, should we have a place of sorts to work where we can commit incremental improvements? If so @ajensenwaud already has something going.

Should the work be based on that, or should we "start over", based on the current coreclr and just port the fixes we have so far?

josteink avatar Mar 19 '15 08:03 josteink

Thanks @ghuntley for the sponsoring of a porting machine. My SSH pub key is

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQDEhh5lz6n4LN6S9McCGCrDrr+rZNtY4PqMc0aRK2hND14UrZo0tfO9nPY9rZMhnJ8GUdOWbcX79l1IkEMZTI62rPP4TL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yjEx4zkBn6Qsy4EPUGdchB8gPsZEtRt8zMGCPuoCL+3G4UOrjAxnLbbxb/PrIqvWKeFgvYnFMZSONA3BAYiAHKy67EqWq1yYttCyLQUT9R2R+wfMLlgCeWP9YGBDY8ArxUpPQzJZPJtnIo0ny+Sd0JFemql07jT7KTKlNL0vKaOpiGpBP11D7KHbKtIxI3 JanHenke_BSD_Port_Team

@josteink the major difference that came to my mind is the focus of OpenBSD on security. I read they introduced their own special APIs to make software more secure and less vulnerable to security related bugs. Admittedly though I do not know any details and just read that.

If it works from a compatibility side, it certainly would be nice to see all three BSDs supported. Though I think at the beginning FreeBSD should be the priority in case something does not work on all three the same way. We could also organize it in a way that we all are the BSD Port Team and we assign people according to their preference to one or more "subteams", one for each BSD flavour.

Clang 3.7 is the current development IIRC. Clang 3.5 should be fine for the moment.

For the work, I was thinking about creating a Github "Organization", which could host our fork of the coreclr tree. @richlander how is your feeling about this? Also given that it would need a matching name with CoreCLR or dotnet in it. Maybe one member of the DotNet Foundation or Microsoft can set that up so it is guaranteed there also someone with administrative access at hand?

In any way I think it would be better to have central tree somewhere and not everybody having their private trees.

janhenke avatar Mar 19 '15 09:03 janhenke

Clang 3.7 is the current development IIRC. Clang 3.5 should be fine for the moment.

Fair enough. We'll stay on 3.5 unless it causes issues.

I was thinking about creating a Github "Organization"

Seconding this. How about just "DotnetBSD"? What I'm not sure about is if we really do need central support for the DotNet Foundation or Microsoft to do this? What do we stand to gain? I'm not against it per se, but if it causes us delays or to lose momentum, that would be a shame.

But then again this issue has @richlander's attention so it might be a non-issue altogether.

In any way I think it would be better to have central tree somewhere and not everybody having their private trees.

Absolutely positively agreed.

josteink avatar Mar 19 '15 09:03 josteink

Thanks @ghuntley !

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNLvc26CLuM48MI0V6jQQVYZ5f3nMMPcX1iQPjfnHf9Wp9qlHaRUKYyveh4qcrfpVObvHfHbFZwyNQ+Ri7xfs0AFJLNiATKd50ditWT9FZ//xiGBuhpn2UwiYYTuCywkVuXbEdZXQesq9BrHhNn8ifmhPseKoMGOEil+eJGvxXnR3thiWGwuNSZ4D24brbVz3Hm/Fv9Gnbe3flui4jf73OxCyAT82NZ2FzbKCms5Q2QptwoAoDVTqgOar4lWX+vsZvs08EJ/HIRGTeHF/Yk9j8azJFHYxm6ao4eeQ9fHg5vXpsc/NX0VDm4ncfeuP/yVkxo7ZQC8yW+SkMlnj05CK9 [email protected]

Since I'm not sure if this is a problem at all, the best plan I can think of is to closely collaborate with the OpenBSD team (@qbit. anyone else?) and make sure the commited changes are mutually compatible.

This works for me. Also trying to recruit other OpenBSD devs.

the major difference that came to my mind is the focus of OpenBSD on security.

This isn't so much of an issue - most of the changes have "standard" counterparts that give you stern warnings when using them. The bigger difference will be availability of ports / required things (libunwind..) / location of installed ports.

qbit avatar Mar 19 '15 14:03 qbit

My morning now, so time to reply.

I'd be happy to setup a coreclr-freebsd (or some similar name) repo as a fork of coreclr within the dotnet org and give the port team commit rights to it. To my mind, that provide the following:

  • Unfettered development process (you control merging PRs).
  • High discoverability of the repo (good to get more people involved).
  • It's easy to setup the CLA and CI process on the repo.
  • .NET Core team has access to the repo should that be needed.

PRing your changes to upstream on a regular basis would still be a good idea, but I think that is your plan, anyway.

I haven't asked anyone else's opinion on this, like @jkotas or @martinwoodward, but this is my proposal, and I think its a good one.

richlander avatar Mar 19 '15 15:03 richlander