Skip to content

Commit

Permalink
julia-git: pin LLVM 3.9, seems to work fine
Browse files Browse the repository at this point in the history
  • Loading branch information
7c6f434c committed Nov 26, 2016
1 parent b7eb924 commit e3d0fd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 4 additions & 10 deletions pkgs/development/compilers/julia/git.nix
Expand Up @@ -3,6 +3,7 @@
, gfortran, m4, makeWrapper, patchelf, perl, which, python2
# libjulia dependencies
, libunwind, readline, utf8proc, zlib
, llvm
# standard library dependencies
, curl, fftwSinglePrec, fftw, gmp, libgit2, mpfr, openlibm, openspecfun, pcre2
# linear algebra
Expand All @@ -22,12 +23,6 @@ let
in

let
llvmVersion = "3.7.1";
llvm = fetchurl {
url = "http://llvm.org/releases/${llvmVersion}/llvm-${llvmVersion}.src.tar.xz";
sha256 = "1masakdp9g2dan1yrazg7md5am2vacbkb3nahb3dchpc1knr8xxy";
};

dsfmtVersion = "2.2.3";
dsfmt = fetchurl {
url = "http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-${dsfmtVersion}.tar.gz";
Expand Down Expand Up @@ -66,7 +61,6 @@ stdenv.mkDerivation rec {

prePatch = ''
mkdir deps/srccache
cp "${llvm}" "./deps/srccache/llvm-${llvmVersion}.src.tar.xz"
cp "${dsfmt}" "./deps/srccache/dsfmt-${dsfmtVersion}.tar.gz"
cp "${rmath-julia}" "./deps/srccache/Rmath-julia-${rmathVersion}.tar.gz"
cp "${libuv}" "./deps/srccache/libuv-${libuvVersion}.tar.gz"
Expand All @@ -85,7 +79,7 @@ stdenv.mkDerivation rec {
buildInputs = [
arpack fftw fftwSinglePrec gmp libgit2 libunwind mpfr
pcre2.dev openblas openlibm openspecfun readline suitesparse utf8proc
zlib
zlib llvm
];

nativeBuildInputs = [ curl gfortran m4 makeWrapper patchelf perl python2 which ];
Expand Down Expand Up @@ -125,7 +119,7 @@ stdenv.mkDerivation rec {
"USE_SYSTEM_LIBGIT2=1"
"USE_SYSTEM_LIBUNWIND=1"
# 'replutil' test failure with LLVM 3.8.0, invalid libraries with 3.7.1
"USE_SYSTEM_LLVM=0"
"USE_SYSTEM_LLVM=1"
"USE_SYSTEM_MPFR=1"
"USE_SYSTEM_OPENLIBM=1"
"USE_SYSTEM_OPENSPECFUN=1"
Expand All @@ -142,7 +136,7 @@ stdenv.mkDerivation rec {

LD_LIBRARY_PATH = makeLibraryPath [
arpack fftw fftwSinglePrec gmp libgit2 mpfr openblas openlibm
openspecfun pcre2 suitesparse
openspecfun pcre2 suitesparse llvm
];

dontStrip = true;
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -5052,6 +5052,7 @@ in
julia-git = lowPrio (callPackage ../development/compilers/julia/git.nix {
gmp = gmp6;
openblas = openblasCompat;
llvm = llvm_39;
});

kotlin = callPackage ../development/compilers/kotlin { };
Expand Down

0 comments on commit e3d0fd8

Please sign in to comment.