Skip to content

Commit

Permalink
For RPi2, reinstate the instructions to install LLVM by downloading
Browse files Browse the repository at this point in the history
the ARM binaries. This is the only known solution that works for now.
  • Loading branch information
Viral B. Shah committed Jun 14, 2015
1 parent d8e5d6f commit 6608027
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 13 additions & 1 deletion README.arm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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] (https://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
Expand Down

0 comments on commit 6608027

Please sign in to comment.