Skip to content

Commit 128f671

Browse files
committed
Upgdare to GCC 8.3.0 on Linux
1 parent fdac921 commit 128f671

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ overlay : '2e01b12bbd5c53288f1bdd13c258bedc06933c20' }
1+
{ overlay : 'b2b3ca2e84df168b4ae07477a43c21c43c20e265' }

com.oracle.truffle.r.native/gnur/Makefile.libs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,8 @@ $(error no platform.mk available)
3131
endif
3232
endif
3333

34-
# blas and lapack implementations can be overridden using the following environment variables
35-
BLAS_LAPACK_DIR ?= $(GNUR_HOME_BINARY)/lib
36-
BLAS_SOURCE ?= $(BLAS_LAPACK_DIR)/libRblas$(DYLIB_EXT)
37-
LAPACK_SOURCE ?= $(BLAS_LAPACK_DIR)/libRlapack$(DYLIB_EXT)
38-
3934
BLAS_TARGET := $(FASTR_LIB_DIR)/libRblas$(DYLIB_EXT)
4035
LAPACK_TARGET := $(FASTR_LIB_DIR)/libRlapack$(DYLIB_EXT)
41-
4236
# at a minimum we need to know where libpcre/libz/libgfortran/libquadmath are located,
4337
# to keep the Java side simpler, we (may) copy them to $(FASTR_LIB_DIR) unless
4438
# they were found in the standard system locations
@@ -53,10 +47,10 @@ $(FASTR_LIB_DIR):
5347
mkdir -p $(FASTR_LIB_DIR)
5448

5549
$(BLAS_TARGET): $(GNUR_HOME_BINARY)/lib/libRblas$(DYLIB_EXT)
56-
cp $(BLAS_SOURCE) $(BLAS_TARGET)
50+
cp $(GNUR_HOME_BINARY)/lib/libRblas$(DYLIB_EXT) $(BLAS_TARGET)
5751

5852
$(LAPACK_TARGET): $(GNUR_HOME_BINARY)/lib/libRlapack$(DYLIB_EXT)
59-
cp $(LAPACK_SOURCE) $(LAPACK_TARGET)
53+
cp $(GNUR_HOME_BINARY)/lib/libRlapack$(DYLIB_EXT) $(LAPACK_TARGET)
6054
ifeq ($(OS_NAME),Darwin)
6155
# libRblas depends on libgfortran, libquadmath
6256
# libRlapack depends on libgfortran, libquadmath, libRblas, libR

com.oracle.truffle.r.native/run/fastr_tools/configure_fastr

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,12 @@ done
8484
exit 2
8585
fi
8686
res=0
87-
for lib in libgfortran.so.3 libquadmath.so.0 libgcc_s.so.1; do
87+
for lib in libgfortran.so.5 libquadmath.so.0 libgcc_s.so.1; do
8888
if ! ldconfig -p | grep --quiet $lib; then
89-
echo "Error: could not find gfortran3 runtime library: $lib"
90-
echo "Please install the gfortran3 runtime libraries:"
91-
echo " On Debian based systems: apt-get install libgfortran3"
92-
echo " On Oracle Linux 7: yum install libgfortran"
93-
echo " On Oracle Linux 8: yum install compat-libgfortran-48"
89+
echo "Error: could not find gfortran5 runtime library: $lib"
90+
echo "Please install the gfortran5 runtime libraries:"
91+
echo " On Debian based systems: apt-get install libgfortran-8-dev"
92+
echo " On Oracle Linux 8: yum install libgfortran"
9493
res=1
9594
break
9695
fi
@@ -99,19 +98,10 @@ done
9998
echo "Error: could not find OpenMP runtime library: libgomp.so.1"
10099
echo "Please install the OpenMP runtime library runtime libraries:"
101100
echo " On Debian based systems: apt-get install libgomp1"
102-
echo " On Oracle Linux 7 and 8: yum install libgomp"
101+
echo " On Oracle Linux 8: yum install libgomp"
103102
echo " Note: Oracle Linux 8 should contain libgomp by default"
104103
res=1
105104
fi
106-
if which gfortran > /dev/null 2> /dev/null; then
107-
echo "Note: if you intend to install R packages you may need additional packages."
108-
echo "The following packages should cover the most commonly used R packages:"
109-
echo " On Debian based systems: apt-get install build-essential gfortran libxml2 libc++-dev"
110-
echo " On Oracle Linux 7 and 8: yum groupinstall 'Development Tools'"
111-
if [[ $res != 0 ]]; then
112-
echo "Caution: you still need to install gfortran3 runtime libraries on all systems where this version is not the default (Ubuntu 18 or higher, Oracle Linux 8 or higher)."
113-
fi
114-
fi
115105
if [[ $res != 0 ]]; then
116106
echo "The basic configuration of FastR failed."
117107
echo "To learn more:"
@@ -120,6 +110,11 @@ done
120110
exit 1
121111
else
122112
echo "The basic configuration of FastR was successfull."
113+
echo ""
114+
echo "Note: if you intend to install R packages you may need additional dependencies."
115+
echo "The following packages should cover the most commonly used R packages:"
116+
echo " On Debian based systems: apt-get install build-essential gfortran libxml2 libc++-dev"
117+
echo " On Oracle Linux 8: yum groupinstall 'Development Tools'"
123118
fi
124119
elif [[ "$OSTYPE" == "darwin"* ]]; then
125120

0 commit comments

Comments
 (0)