]> rtime.felk.cvut.cz Git - hercules2020/hercules-compiler.git/blobdiff - README.md
Update changelog for 2018.11-5 release
[hercules2020/hercules-compiler.git] / README.md
index 363bd095d3d643a45839fce10bcfbd6ac9dcfe7c..3fcdb70e3c240967135f0559a453d153f6edf021 100644 (file)
--- a/README.md
+++ b/README.md
@@ -26,9 +26,16 @@ Simple method
 
 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
 ----------------------
@@ -38,7 +45,8 @@ advantage is that the build happens in a clean environment, ensuring
 that only distribution-provided packages are used for building.
 
 Setup the sbuild chroot as documented at
-https://wiki.debian.org/sbuild and then build the package with:
+[Debian Wiki](https://wiki.debian.org/sbuild) and then build the
+package with:
 
     make create-orig-tgz
     sbuild
@@ -74,16 +82,16 @@ qemu-user-static package so copy the static binaries from your host:
 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
 Debian Stretch and `ninja-build_1.8.2-1` from Debian unstable. Just
 download the corresponding source packages (from e.g.
-https://packages.debian.org/source/stretch/cmake) and run
+<https://packages.debian.org/source/stretch/cmake>) and run
 
     sbuild -d xenial cmake_3.7.2-1.dsc
        sbuild -d xenial ninja-build_1.8.2-1.dsc