Mike
2006-Aug-07 02:46 UTC
[R] Source installation error: "gfortran and gcc disagree on int and double ...
... configure: error: Maybe change CFLAGS or FFLAGS?" Dear list, This problem has been posted before (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/7982.html), but suggestions did not help. My machine: AMD Duron 800 MHz, MandrivaLinux 10.2, gcc (and gfortran): 4.0.1, R source: 2.3.1. I had to set CPICFLAGS and FPICFLAGS to "-fPIC". I tried ./configure with default CFLAGS and FFLAGS flags and with "-O3 -g" with the same error message. How can I pass the error? Thank you in advance, Mike.
Prof Brian Ripley
2006-Aug-07 07:29 UTC
[R] Source installation error: "gfortran and gcc disagree on int and double ...
First, you do not need -fPIC: it is the same as -fpic which R selects on your platform. Second, please look at config.log to find the exact problem: it well be that your compilers are not properly installed (as was the case in the reference you quote below). Finally, your compilers are pretty obselete (there have been 4.0.2, 4.0.3, 4.1.0 and 4.1.1), so you should be updating them. On Sun, 6 Aug 2006, Mike wrote:> > ... configure: error: Maybe change CFLAGS or FFLAGS?" > > Dear list, > > This problem has been posted before > (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/7982.html),That was over three years ago, for R 1.6.0 on Solaris, so I am not sure why you thought it would help.> but suggestions did not help. My machine: AMD Duron 800 MHz, > MandrivaLinux 10.2, gcc (and gfortran): 4.0.1, R source: 2.3.1. I had to > set CPICFLAGS and FPICFLAGS to "-fPIC". I tried ./configure with default > CFLAGS and FFLAGS flags and with "-O3 -g" with the same error message. > > How can I pass the error? > > Thank you in advance, > > Mike. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595