1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00

Add toolchain instructions for Fedora (#104859)

* Add toolchain instructions for Fedora

* Put Ubuntu / Debian first

* Fix table of contents

---------

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
This commit is contained in:
Kevin Jones 2024-07-13 13:14:15 -04:00 committed by GitHub
parent 283de5b5ad
commit 74af205a64
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -2,9 +2,10 @@
* [Docker](#docker)
* [Environment](#environment)
* [Toolchain Setup](#toolchain-setup)
* [Debian-based / Ubuntu](#debian-based--ubuntu)
* [Additional Requirements for Cross-Building](#additional-requirements-for-cross-building)
* [Gentoo Special Case](#gentoo-special-case)
* [Fedora](#fedora)
* [Gentoo](#gentoo)
This guide will walk you through the requirements to build _dotnet/runtime_ on Linux. Before building there is environment setup that needs to happen to pull in all the dependencies required by the build.
@ -16,11 +17,14 @@ 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
These instructions are written assuming the current Ubuntu LTS.
Install the following packages for the toolchain:
@ -71,7 +75,33 @@ 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.
### Gentoo Special Case
### 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 \
krb5-devel zlib-devel lttng-ust-devel ninja-build
```
### Gentoo
In case you have Gentoo you can run following command: