summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Harley2022-03-02 21:49:36 +0000
committerTom Harley2022-03-02 21:49:36 +0000
commitd29fecb5fd6ef81c450884132b889cfe6c3397f0 (patch)
tree2628556d4ae350ada24fda4c9db27f358a3ae275
parentAdd support for "case" statements (diff)
downloadsinter-d29fecb5fd6ef81c450884132b889cfe6c3397f0.tar.gz
sinter-d29fecb5fd6ef81c450884132b889cfe6c3397f0.zip

Add Ubuntu 21.04 install instructions

Installing on Ubuntu requires editing the Makefile a little, and also installing LLVM10 which is non-trivial.

-rw-r--r--INSTALL.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md
new file mode 100644
index 0000000..83fd1f7
--- /dev/null
+++ b/INSTALL.md
@@ -0,0 +1,22 @@
+This project is built using LLVM 10.
+
+The Makefile tries to call llvm-config, but this is ambiguous and may not work
+in some situations (since there are more versions of LLVM than just v10). The
+version 10-specific llvm-config binary is often called llvm-config-10; adjust
+the Makefile if this is the case for your distribution.
+
+# Building on Ubuntu 21.04
+
+See https://apt.llvm.org/ for information. Briefly:
+
+```bash
+wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key \
+ | sudo apt-key add -
+sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
+sudo apt update
+audo apt install llvm-10-dev
+```
+
+The last command may fail when looking for libFFI 6, in which case you will have
+to install this dependency manually from Ubuntu 19.04's pacakges (available
+[here](http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb)).