A simple method to create a native Debian package is the following:
- apt install build-essential cmake ninja-build python3
+ apt install build-essential cmake ninja-build python3 gcc-5 g++-5
make create-orig-tgz
- dpkg-buildpackage -uc -us
+ dpkg-buildpackage -b -uc
+
+Note that gcc-5 may not be available in newer distributions such as
+Debian Stretch. It is possible to compile it from source. For example
+download its
+[Debian source package](http://ftp.debian.org/debian/pool/main/g/gcc-5/)
+and build it with `DEB_BUILD_OPTIONS="nolang=ada,fortran,java,objc"
+dpkg-buildpackage -b -uc -us`.
Sbuild method - native
----------------------
Then modify /etc/apt/sources.list to contain the URL of arm64 package
repository. This is the sources.list that I use:
- deb [arch=amd64] http://cz.archive.ubuntu.com/ubuntu xenial main universe
+ deb [arch=amd64] http://cz.archive.ubuntu.com/ubuntu xenial main universe multiverse restricted
deb-src http://cz.archive.ubuntu.com/ubuntu/ xenial main universe
- deb [arch=arm64] http://ports.ubuntu.com/ xenial main universe
+ deb [arch=arm64] http://ports.ubuntu.com/ xenial main universe multiverse restricted
Furthermore, Xenial has too old packages to cross build LLVM. For that
reason, we backport the following packages: `cmake_3.7.2-1` from