Sage 7.6 compilation - gsl and r failures on Linux

62 views
Skip to first unread message

Tae Lim Kook

unread,
Apr 30, 2017, 7:58:49 PM4/30/17
to sage-support
Sorry if a similar message previously appeared on this group. I'm assuming that it didn't get posted for some reason.

OS: Linux (kernel 4.10.0 / distro: Ubuntu 17.10)
GCC version: 7.0.0 20161202 experimental (built from source)

error message for gsl:

checking host system type
... x86_64-unknown-linux-gnu
checking
for gcc... gcc
checking whether the C compiler works
... yes
checking
for C compiler default output file name... a.out
checking
for suffix of executables...
checking whether we are cross compiling
... configure: error: in `/home/uruwi/sage-7.6/local/var/tmp/sage/build/gsl-2.1.p1/src':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `
--host'.
See `config.log'
for more details
Error configuring GSL.

real    
0m0.460s
user    
0m0.204s
sys    
0m0.056s

for R:

checking size of int... 4
checking size of
long... 8
checking size of
long long... 8
checking size of
double... 8
checking size of size_t
... 8
checking size of
long double... 16
checking whether we can compute C
Make dependencies... yes, using $(CC) -MM
checking whether gcc supports
-c -o FILE.lo... yes
checking
for gcc option to support OpenMP... -fopenmp
checking how to
get verbose linking output from gfortran... -###
checking
for Fortran 77 libraries of gfortran...  -L/home/uruwi/sage-7.6/local/lib -L/home/uruwi/sage-7.6/local/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0/../../../x86_64-linux-gnu -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0/../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0/../../.. -lgfortran -lm -lquadmath
checking how to
get verbose linking output from gcc... -###
checking
for C libraries of gcc...  -L/home/uruwi/sage-7.6/local/lib -L/home/uruwi/sage-7.6/local/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0/../../../x86_64-linux-gnu -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0/../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0/../../.. -lgcc_s
checking
for dummy main to link with Fortran 77 libraries... none
checking
for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking whether gfortran appends underscores to external names
... yes
checking whether gfortran appends extra underscores to external names
... no
checking whether mixed C
/Fortran code can be run... configure: WARNING: cannot run mixed C/Fortran code
configure
: error: Maybe check LDFLAGS for paths to Fortran libraries?
Error configuring R.

real    
0m33.667s
user    
0m13.640s
sys    
0m2.900s


Dima Pasechnik

unread,
May 1, 2017, 6:30:49 AM5/1/17
to sage-support
IMHO you are the 1st one reporting about building Sage with gcc 7.0.0.
It's not surprising - most probably the corresponding upstream packages, gsl and R in this case, have not yet been ported to gcc 7.

Dima Pasechnik

unread,
May 1, 2017, 7:08:23 AM5/1/17
to sage-support
First thing you might like to try is to update to gcc 7.0.1;
see the related Fedora effort:
Reply all
Reply to author
Forward
0 new messages