-
Notifications
You must be signed in to change notification settings - Fork 100
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
Build linux-arm64v8 with Ubuntu Bionic #86
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM debian:bullseye | ||
FROM --platform=linux/amd64 ubuntu:bionic | ||
LABEL maintainer="Lovell Fuller <[email protected]>" | ||
|
||
# Create Debian-based container suitable for cross-compiling Linux ARM64v8-A binaries | ||
|
@@ -9,10 +9,20 @@ ENV \ | |
CARGO_HOME="/usr/local/cargo" \ | ||
PATH="/usr/local/cargo/bin:$PATH" | ||
|
||
COPY sources.list /etc/apt/sources.list | ||
|
||
# Build dependencies | ||
RUN \ | ||
apt-get update && \ | ||
apt-get install -y curl && \ | ||
apt-get install -y \ | ||
curl \ | ||
apt-transport-https \ | ||
gnupg \ | ||
software-properties-common \ | ||
&& \ | ||
curl https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - && \ | ||
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && \ | ||
apt-get update && \ | ||
dpkg --add-architecture arm64 && \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
|
@@ -21,7 +31,8 @@ RUN \ | |
autopoint \ | ||
brotli \ | ||
cmake \ | ||
crossbuild-essential-arm64 \ | ||
dpkg-cross \ | ||
g++-8-aarch64-linux-gnu \ | ||
gettext \ | ||
git \ | ||
gobject-introspection \ | ||
|
@@ -36,6 +47,17 @@ RUN \ | |
python3-pip \ | ||
texinfo \ | ||
&& \ | ||
update-alternatives \ | ||
--install /usr/bin/aarch64-linux-gnu-gcc aarch64-linux-gnu-gcc /usr/bin/aarch64-linux-gnu-gcc-8 100 \ | ||
--slave /usr/bin/aarch64-linux-gnu-cpp aarch64-linux-gnu-cpp /usr/bin/aarch64-linux-gnu-cpp-8 \ | ||
--slave /usr/bin/aarch64-linux-gnu-g++ aarch64-linux-gnu-g++ /usr/bin/aarch64-linux-gnu-g++-8 \ | ||
--slave /usr/bin/aarch64-linux-gnu-gcc-ar aarch64-linux-gnu-gcc-ar /usr/bin/aarch64-linux-gnu-gcc-ar-8 \ | ||
--slave /usr/bin/aarch64-linux-gnu-gcc-nm aarch64-linux-gnu-gcc-nm /usr/bin/aarch64-linux-gnu-gcc-nm-8 \ | ||
--slave /usr/bin/aarch64-linux-gnu-gcc-ranlib aarch64-linux-gnu-gcc-ranlib /usr/bin/aarch64-linux-gnu-gcc-ranlib-8 \ | ||
--slave /usr/bin/aarch64-linux-gnu-gcov aarch64-linux-gnu-gcov /usr/bin/aarch64-linux-gnu-gcov-8 \ | ||
--slave /usr/bin/aarch64-linux-gnu-gcov-dump aarch64-linux-gnu-gcov-dump /usr/bin/aarch64-linux-gnu-gcov-dump-8 \ | ||
--slave /usr/bin/aarch64-linux-gnu-gcov-tool aarch64-linux-gnu-gcov-tool /usr/bin/aarch64-linux-gnu-gcov-tool-8 \ | ||
&& \ | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y \ | ||
--no-modify-path \ | ||
--profile minimal \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# https://gist.github.com/josephlr/5034c933bbcfddc25a9275037821b048 | ||
|
||
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse | ||
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse | ||
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse | ||
deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse | ||
|
||
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe multiverse | ||
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted universe multiverse | ||
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse | ||
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe multiverse |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest
CMake
version is necessary to buildaom
formake install/strip