Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET 8: Enable experimental MacOS source build #3034

Closed
mmitche opened this issue Sep 21, 2022 · 12 comments
Closed

.NET 8: Enable experimental MacOS source build #3034

mmitche opened this issue Sep 21, 2022 · 12 comments
Labels
area-product-experience Improvements in the end-user's product experience

Comments

@mmitche
Copy link
Member

mmitche commented Sep 21, 2022

Describe the Problem

Unified build seeks to expand the number of platforms that .NET 8 can source-build on, and replace the existing Microsoft official build with source-build. Part of this is enabling a build for MacOS.

Describe the Solution

MacOS source build (with a number of prebuilts) might actually be functional today. It is in use in some capacity for homebrew.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@MichaelSimons
Copy link
Member

[Triage] @mmitche, @directhex - Some work was done in this space earlier. Has this been completed? If not what remains?

@MichaelSimons
Copy link
Member

gentle ping @mmitche, @directhex - what work remains here?

@mmitche
Copy link
Member Author

mmitche commented Jul 18, 2023

I'm not sure. @directhex What work got done here? Is there a branch anywhere?

@directhex
Copy link
Member

#3217 is the state of the art in my work. I've had other commitments for net8

@MichaelSimons
Copy link
Member

MichaelSimons commented Jul 20, 2023

What should we do with this issue? Close (indicating we did what we expected or plans have changed) or move to .NET 9.0?

@directhex
Copy link
Member

Either is fine.

@omajid
Copy link
Member

omajid commented Jul 20, 2023

@asbjornu hey, have you looked at building .NET 8 (using https://github.com/dotnet/dotnet/) on macOS ?

@MichaelSimons
Copy link
Member

Closing as no further experimental work is intended in the .NET 8.0 timeframe.

@asbjornu
Copy link
Member

@asbjornu hey, have you looked at building .NET 8 (using https://github.com/dotnet/dotnet/) on macOS ?

@omajid, I just tried it out now, and everything worked until ./build.sh --clean-while-building --online, which fails with the following error.

@omajid
Copy link
Member

omajid commented Jul 25, 2023

Thanks, @asbjornu . That error looks like a missing dependency?

In case you aren't aware, though, we don't have any plans for implementing macOS support for building .NET from source. Are you planning to add .NET 8 to homebrew as well? If so, you will have to find and fix any issues that come up. We will probably accept any macOS patches, but just don't have the manpower or the time to fully implement/test macOS support ourselves.

@asbjornu
Copy link
Member

asbjornu commented Jul 27, 2023

Right. From dotnet/runtime/…/macos-requirements.md I can see that I have to clone the dotnet/runtime erpository and run brew bundle --no-lock --file eng/Brewfile to have all dependencies installed. With that done, I get the following build error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-product-experience Improvements in the end-user's product experience
Projects
Archived in project
Development

No branches or pull requests

5 participants