-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add toolchain instructions for Fedora #104859
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
Changes from 2 commits
6714d76
c412854
23d0fc2
79e53f4
47a6f93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,12 +16,16 @@ Install Docker. For further installation instructions, see [here](https://docs.d | |
|
|
||
| ## Environment | ||
|
|
||
| These instructions are written assuming the current Ubuntu LTS. Pull Requests are welcome to address other environments. | ||
| Below are the requirements for toolchain setup, depending on your environment. Pull Requests are welcome to address other environments. | ||
|
|
||
| Minimum RAM required to build is 1GB. The build is known to fail on 512 MB VMs ([dotnet/runtime#4069](https://github.com/dotnet/runtime/issues/4069)). | ||
|
|
||
| ### Toolchain Setup | ||
|
|
||
| #### Debian-based / Ubuntu | ||
vcsjones marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| These instructions are written assuming the current Ubuntu LTS. | ||
|
|
||
| Install the following packages for the toolchain: | ||
|
|
||
| * CMake 3.20 or newer | ||
|
|
@@ -60,7 +64,7 @@ For the _Kitware APT feed_, follow its [instructions here](https://apt.kitware.c | |
|
|
||
| You now have all the required components. | ||
|
|
||
| #### Additional Requirements for Cross-Building | ||
| ##### Additional Requirements for Cross-Building | ||
|
|
||
| If you are planning to use your Linux environment to do cross-building for other architectures (e.g. Arm32, Arm64) and/or other operating systems (e.g. Alpine, FreeBSD), you need to install these additional dependencies: | ||
|
|
||
|
|
@@ -71,6 +75,32 @@ If you are planning to use your Linux environment to do cross-building for other | |
|
|
||
| **NOTE**: These dependencies are used to build the `crossrootfs`, not the runtime itself. | ||
|
|
||
| #### Fedora | ||
|
|
||
| These instructions are written assuming Fedora 40. | ||
|
|
||
| Install the following packages for the toolchain: | ||
|
|
||
| * cmake | ||
| * llvm | ||
| * lld | ||
| * lldb | ||
| * clang | ||
| * python | ||
| * curl | ||
| * git | ||
| * libicu-devel | ||
| * openssl-devel | ||
| * krb5-devel | ||
| * zlib-devel | ||
| * lttng-ust-devel | ||
| * ninja-build (optional, enables building native code with ninja instead of make) | ||
|
|
||
| ```bash | ||
| sudo dnf install -y cmake llvm lld lldb clang python curl git libicu-devel openssl-devel \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can add it in install script as well while at it: am11@500300e (in the script, we assume git was already installed, since user cloned the repo, and ninja is optional; least required deps doesn't hurt to add them as you see fit 🙂)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good to me. @am11 Would you like to submit a PR? (Also, |
||
| krb5-devel zlib-devel lttng-ust-devel ninja-build | ||
| ``` | ||
|
|
||
| ### Gentoo Special Case | ||
vcsjones marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| In case you have Gentoo you can run following command: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.