Skip to content

Commit

Permalink
Merge branch 'sbromberger-patch-2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Viral B. Shah committed Apr 27, 2015
2 parents 9ec6ae1 + 7190896 commit 0398bb2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.arm.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,38 @@ Crouton, you can do so by following these tutorials.
# Building LLVM on ARM

- If you run in to issues building LLVM, see these notes: [http:https://llvm.org/docs/HowToBuildOnARM.html](http:https://llvm.org/docs/HowToBuildOnARM.html)

# For the Raspberry Pi version 2 (RPi2)

Success in building Julia has been reported using the following procedure:

1. Follow the steps above to install the `build-essentals` and other packages required for ARM
2. Install FFTW and libedit using `sudo apt-get install libfftw3-3 libedit-dev`
3. Download the [LLVM 3.6.0 binaries for ARMv7a] (http:https://llvm.org/releases/3.6.0/clang+llvm-3.6.0-armv7a-linux-gnueabihf.tar.xz) and extract them in a local directory.
4. For each file in the extracted `bin`, `include`, and `lib` subdirectories, create symlinks from the corresponding directory under `/usr/local`.
5. Using the `Make.arm` configuration below, build Julia using `make -j 2`. (Limiting `make` to 2 simultaneous jobs will reduce the possibility of running out of memory/swap space during the build process.)

Note that the resulting Julia binary may fail various tests but will run code and provide the REPL.

`Make.arm` for RPi2:

```
override LLVM_ASSERTIONS=1
LLVM_FLAGS+="--with-cpu=cortex-a9 --with-float=hard --with-abi=aapcs-vfp --with-fpu=neon --enable-targets=arm --enable-optimized --enable-assertions"
override OPENBLAS_DYNAMIC_ARCH=0
override OPENBLAS_TARGET_ARCH=ARMV7
override USE_BLAS64=0
override USE_SYSTEM_LIBM=1
override USE_SYSTEM_FFTW=1
override USE_SYSTEM_GMP=1
override USE_SYSTEM_MPFR=1
override USE_SYSTEM_LAPACK=1
JCFLAGS += -fsigned-char
override USE_SYSTEM_LLVM=1
override USE_SYSTEM_BLAS=1
```

0 comments on commit 0398bb2

Please sign in to comment.