Re: [R] Source installation error: gfortran and gcc disagree on int and double ...

2006-08-08 Thread Prof Brian Ripley
First, you replied to the list and not to me, which was discourteous.

Your error does indeed appear to be an incorrectly installed compiler.

 conftestf.o: In function `cftest_':
 /home/mike/Desktop/R-2.3.1/conftestf.f:9: undefined reference to
 `_gfortran_pow_r8_i4'

this is in -lgfortran, so that is not being found or is broken.
One possibility is a missing symlink that is in a -devel RPM.

This is not an R issue.

On Mon, 7 Aug 2006, Mike wrote:

 Prof Brian Ripley wrote:
 
  First, you do not need -fPIC: it is the same as -fpic which R selects on
  your platform.
  
 
 Right, I commented the flags and configure goes just as far
 
 
  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).
 
 from config.log it seem that there are a few missing inclides and syntax
 errors in confdefs.h. (I can quote the specifics, if necessary). The last
 lines before the error message are:
 
 configure:27770: checking whether gfortran and gcc agree on int and double
 conftest.c: In function 'main':
 conftest.c:28: warning: implicit declaration of function 'printf'
 conftest.c:28: warning: incompatible implicit declaration of built-in
 function 'printf'
 conftest.c:29: warning: implicit declaration of function 'exit'
 conftest.c:29: warning: incompatible implicit declaration of built-in
 function 'exit'
 conftestf.o: In function `cftest_':
 /home/mike/Desktop/R-2.3.1/conftestf.f:9: undefined reference to
 `_gfortran_pow_r8_i4'
 collect2: ld returned 1 exit status
 configure:27848: WARNING: gfortran and gcc disagree on int and double
 configure:27850: error: Maybe change CFLAGS or FFLAGS?
 
  
  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.
  
 Changing compiler is not an option for me. Could you advise me how to
 configure the flags?


-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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, UKFax:  +44 1865 272595

__
R-help@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.


Re: [R] Source installation error: gfortran and gcc disagree on int and double ...

2006-08-07 Thread Prof Brian Ripley
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@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,  [EMAIL PROTECTED]
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, UKFax:  +44 1865 272595

__
R-help@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.


Re: [R] Source installation error: gfortran and gcc disagree on int and double ...

2006-08-07 Thread Mike
Prof Brian Ripley wrote:

 First, you do not need -fPIC: it is the same as -fpic which R selects on
 your platform.
 

Right, I commented the flags and configure goes just as far


 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).

from config.log it seem that there are a few missing inclides and syntax
errors in confdefs.h. (I can quote the specifics, if necessary). The last
lines before the error message are:

configure:27770: checking whether gfortran and gcc agree on int and double
conftest.c: In function 'main':
conftest.c:28: warning: implicit declaration of function 'printf'
conftest.c:28: warning: incompatible implicit declaration of built-in
function 'printf'
conftest.c:29: warning: implicit declaration of function 'exit'
conftest.c:29: warning: incompatible implicit declaration of built-in
function 'exit'
conftestf.o: In function `cftest_':
/home/mike/Desktop/R-2.3.1/conftestf.f:9: undefined reference to
`_gfortran_pow_r8_i4'
collect2: ld returned 1 exit status
configure:27848: WARNING: gfortran and gcc disagree on int and double
configure:27850: error: Maybe change CFLAGS or FFLAGS?

 
 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.
 
Changing compiler is not an option for me. Could you advise me how to
configure the flags?

Thanks, 

Mike

__
R-help@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.


[R] Source installation error: gfortran and gcc disagree on int and double ...

2006-08-06 Thread Mike

...  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.

__
R-help@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.