From 66080271ccce063b1e28d618280ca1e6b1a0290a Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Sun, 14 Jun 2015 05:44:36 -0400 Subject: [PATCH] For RPi2, reinstate the instructions to install LLVM by downloading the ARM binaries. This is the only known solution that works for now. --- Make.inc | 6 ++++-- README.arm.md | 14 +++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Make.inc b/Make.inc index 6c310475195ef..d617eb4194903 100644 --- a/Make.inc +++ b/Make.inc @@ -521,8 +521,10 @@ LLVM_ASSERTIONS=1 #LLVM_FLAGS+="--with-float=hard --with-abi=aapcs-vfp" LLVM_VER=3.6.1 -USE_BLAS64=0 -OPENBLAS_DYNAMIC_ARCH=0 +override USE_BLAS64=0 +override OPENBLAS_DYNAMIC_ARCH=0 +override OPENBLAS_TARGET_ARCH=ARMV7 + endif # Set some ARCH-specific flags diff --git a/README.arm.md b/README.arm.md index df0d5feb679d2..ea30b115f8784 100644 --- a/README.arm.md +++ b/README.arm.md @@ -47,7 +47,7 @@ override USE_SYSTEM_ARPACK=1 The following command will install all the necessary libraries on Ubuntu. ```` -sudo apt-get install libblas3gf liblapack3gf libfftw3-dev libgmp3-dev libmpfr-dev libblas-dev liblapack-dev cmake gcc-4.8 g++-4.8 gfortran libgfortran3 m4 +sudo apt-get install libblas3gf liblapack3gf libfftw3-dev libgmp3-dev libmpfr-dev libblas-dev liblapack-dev cmake gcc-4.8 g++-4.8 gfortran libgfortran3 m4 libedit-dev ```` # ARM specific build problems @@ -62,6 +62,18 @@ starting the build, `export JULIA_CPU_ARCH=arm1176jzf-s`. This tells LLVM that the CPU has VFP support. See the discussion in [#10917](https://github.com/JuliaLang/julia/issues/10917). +# Raspberry Pi 2 + +In the case of Raspberry Pi 2, download LLVM binaries from the LLVM website, since building LLVM on our own for some reason does not produce a working build. + +1. Download the [LLVM 3.6.1 binaries for ARMv7a] (http://llvm.org/releases/3.6.1/clang+llvm-3.6.1-armv7a-linux-gnueabihf.tar.xz) and extract them in a local directory. +2. For each file in the extracted `bin`, `include`, and `lib` subdirectories, create symlinks from the corresponding directory under `/usr/local`. +3. Add the following to `Make.user`: +``` +override USE_SYSTEM_LLVM=1 +``` + + # Chromebook On Chromebooks, you have to first install Crouton. If you do not have