Skip to content

Commit 7c34ab9

Browse files
Update unix instructions for x-compiling on ARM (#5811)
1 parent 3c3b298 commit 7c34ab9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/building/unix-instructions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Cross compilation is only supported on an Ubuntu host, 18.x and newer, and only
4646
```sh
4747
sudo apt-get update
4848
sudo apt-get install debootstrap qemu-user-static
49+
sudo apt-get install binutils-aarch64-linux-gnu
4950
sudo ./eng/common/cross/build-rootfs.sh <target architecture> <ubuntu distro name> --rootfsdir <new rootfs location>
5051
export ROOTFS_DIR=<new rootfs location>
5152

@@ -55,6 +56,8 @@ export ROOTFS_DIR=<new rootfs location>
5556

5657
Note that the `<target architecture>` will usually be arm or arm64 and the `<ubuntu distro name>` is bionic for 18.04.
5758

59+
Alternatively, use the following Docker image which contains all the software packages and configurations required to cross-compile for ARM `mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet-cross-arm64-20210519131124-2e59a5f`.
60+
5861
### macOS
5962

6063
macOS 10.13 (High Sierra) or higher is needed to build dotnet/machinelearning. We are using a .NET Core 3.1 SDK to build, which supports 10.13 or higher.
@@ -73,4 +76,4 @@ $ brew update && brew install cmake https://raw.githubusercontent.com/dotnet/mac
7376

7477
Please note that newer versions of Homebrew [don't allow installing directly from a URL](https://github.com/Homebrew/brew/issues/8791). If you run into this issue, you may need to download libomp.rb first and install it with the local file instead.
7578

76-
Also, libomp version 7.0.0 doesn't have a cask for Big Sur. You can work around this by downloading the libomp.rb file and then calling `brew install libomp.rb --build-from-source --formula`.
79+
Also, libomp version 7.0.0 doesn't have a cask for Big Sur. You can work around this by downloading the libomp.rb file and then calling `brew install libomp.rb --build-from-source --formula`.

0 commit comments

Comments
 (0)