Skip to content

Commit 5c53f7f

Browse files
committed
upgrade julia and allowed llvm compilation
1 parent ddde2f1 commit 5c53f7f

File tree

6 files changed

+30
-27
lines changed

6 files changed

+30
-27
lines changed

R/R-basic.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ R_append rlang
5959
R_append utf8
6060
R_append pillar
6161
R_append digest
62+
R_append isoband
6263
R_append praise
6364
R_append withr
6465
R_append magrittr
@@ -69,6 +70,7 @@ R_append covr
6970
R_append stringi
7071
R_append ellipsis
7172
R_append clipr
73+
R_append cpp11
7274
R_append evaluate
7375
R_append yaml
7476
R_append knitr
@@ -83,6 +85,7 @@ R_append plogr
8385
R_append reshape2
8486
R_append classInt
8587
R_append DBI
88+
R_append generics
8689

8790

8891
R_install

compiler/gcc/gcc.bash

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ source_pack compiler/gcc/8/isl.bash
4848
source_pack compiler/gcc/8/gcc.bash
4949
source_pack compiler/gcc/8/gdb.bash
5050

51+
gcc_v=10.2.0
52+
gcc=gcc_$gcc_v
53+
source_pack compiler/gcc/prereq.bash
54+
source_pack compiler/gcc/10/gmp.bash
55+
source_pack compiler/gcc/10/mpfr.bash
56+
source_pack compiler/gcc/10/mpc.bash
57+
source_pack compiler/gcc/10/isl.bash
58+
source_pack compiler/gcc/10/gcc.bash
59+
source_pack compiler/gcc/10/gdb.bash
60+
5161
gcc_v=9.3.0
5262
gcc=gcc_$gcc_v
5363
source_pack compiler/gcc/prereq.bash
@@ -58,15 +68,6 @@ source_pack compiler/gcc/9/isl.bash
5868
source_pack compiler/gcc/9/gcc.bash
5969
source_pack compiler/gcc/9/gdb.bash
6070

61-
gcc_v=10.2.0
62-
gcc=gcc_$gcc_v
63-
source_pack compiler/gcc/prereq.bash
64-
source_pack compiler/gcc/10/gmp.bash
65-
source_pack compiler/gcc/10/mpfr.bash
66-
source_pack compiler/gcc/10/mpc.bash
67-
source_pack compiler/gcc/10/isl.bash
68-
source_pack compiler/gcc/10/gcc.bash
69-
source_pack compiler/gcc/10/gdb.bash
7071

7172

7273
# Local variables which should only be visible here...

compiler/llvm/8/llvm.bash

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
v=8.0.1
22
add_package -directory llvm-$v.src -package llvm -version $v \
33
https://github.com/llvm/llvm-project/releases/download/llvmorg-$v/llvm-$v.src.tar.xz
4-
54
pack_set -s $IS_MODULE -s $BUILD_DIR -s $MAKE_PARALLEL -s $CRT_DEF_MODULE
65

76
pack_set -install-query $(pack_get -prefix)/bin/llvm-ar
@@ -28,7 +27,7 @@ for name in cfe compiler-rt libcxx libcxxabi libunwind lld lldb openmp polly cla
2827
;;
2928
esac
3029
o=$(pwd_archives)/$(pack_get -package)-$(pack_get -version)-$name-$v.src.tar.xz
31-
dwn_file ${tmp//llvm-/$name-} $o
30+
dwn_file ${tmp//llvm-$v/$name-$v} $o
3231
case $name in
3332
cfe|clang-tools-extra)
3433
pack_cmd "tar xfJ $o -C ../tools/"

compiler/llvm/llvm.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
source_pack compiler/llvm/7/llvm.bash
2-
#source_pack compiler/llvm/8/llvm.bash
2+
source_pack compiler/llvm/8/llvm.bash
33
source_pack compiler/llvm/9/llvm.bash
44
source_pack compiler/llvm/10/llvm.bash

helpers/libffi.bash

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
add_package --build generic --alias gen-libffi --package gen-libffi \
1+
add_package -build generic -alias gen-libffi -package gen-libffi \
22
ftp://sourceware.org/pub/libffi/libffi-3.3.tar.gz
33

44
pack_set -s $MAKE_PARALLEL -s $IS_MODULE
55

6-
pack_set --install-query $(pack_get --prefix)/include/ffi.h
6+
pack_set -install-query $(pack_get -prefix)/include/ffi.h
77

88
# Install commands that it should run
9-
pack_cmd "./configure" \
10-
"--prefix $(pack_get --prefix)"
9+
pack_cmd "./configure --prefix $(pack_get -prefix)"
1110

1211
# Make commands
1312
pack_cmd "make $(get_make_parallel)"
@@ -21,10 +20,10 @@ pack_cmd "make install"
2120

2221
# Fix include path and pkgconfig
2322
for f in lib lib64 ; do
24-
flib="$(pack_get --prefix)/$f/pkgconfig/libffi.pc"
23+
flib="$(pack_get -prefix)/$f/pkgconfig/libffi.pc"
2524
pack_cmd "[ -e $flib ] && sed -i -e 's:includedir=.*:includedir=\${prefix}/include:' $flib || true"
26-
flib="$(pack_get --prefix)/$f/libffi-$(pack_get --version)"
27-
pack_cmd "[ -d $flib/include ] && mv $flib/include $(pack_get --prefix)/include || true"
25+
flib="$(pack_get -prefix)/$f/libffi-$(pack_get -version)"
26+
pack_cmd "[ -d $flib/include ] && mv $flib/include $(pack_get -prefix)/include || true"
2827
pack_cmd "[ -d $flib ] && rm -rf $flib || true"
2928
done
3029
unset flib

julia.bash

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
jV=1.4
2-
IjV=$jV.2
1+
jV=1.5
2+
IjV=$jV.0
33
add_package -package julia \
44
-directory julia-$IjV \
55
https://github.com/JuliaLang/julia/releases/download/v$IjV/julia-$IjV-full.tar.gz
@@ -68,14 +68,15 @@ LDFLAGS += $(list -LD-rp lapack-$la)\n\
6868
fi
6969

7070
pack_cmd "make $(get_make_parallel)"
71-
# limit number of julia processors for tests
72-
pack_cmd "export JULIA_NUM_THREADS=$NPROCS"
73-
pack_cmd "export JULIA_CPU_THREADS=$NPROCS"
74-
pack_cmd "make test 2>&1 | tee julia.test"
7571
pack_cmd "make install"
76-
72+
if ! $(is_host nicpa) ; then
73+
# limit number of julia processors for tests
74+
pack_cmd "export JULIA_NUM_THREADS=$NPROCS"
75+
pack_cmd "export JULIA_CPU_THREADS=$NPROCS"
76+
pack_cmd "make test 2>&1 | tee julia.test"
77+
pack_store julia.test
78+
fi
7779
pack_store Make.user
78-
pack_store julia.test
7980

8081

8182
# Create a new build with this module

0 commit comments

Comments
 (0)