[Rd] RH 9 and R 1.7.0 Beta - Errors Resolved

Martyn Plummer plummer at iarc.fr
Mon Apr 7 10:29:09 MEST 2003

On Sun, 2003-04-06 at 20:44, Marc Schwartz wrote:
> Paul Gilbert wrote:
> > I don't seem to have this problem on Mandrake 9.1 which has 
> > gcc 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk) and using R-1.7.0beta2003-03-31
> > compiled with the defaults. That is, I get the latter results even without the
> > fix.
> > 
> > Paul Gilbert
> The only thought that I can offer is that RH has done something to the 
> version of gcc released with RH 9.
> Martyn and I had an offlist exchange last week and he is going to be 
> installing RH 9 on his home system, if he has not done so already. It 
> will be interesting to see if he can confirm or deny the behavior that I 
> have seen with the "pre-fix" code.
> If he can, then it would suggest that there is something with the RH 9 
> version of gcc. If not, then perhaps there is something with my 
> particular install, though I did do a "clean" install and not an upgrade 
> from RH 8.0 and I have installed all RH 9 updates via RHN.
> Note the specfic details of 'gcc --version' for RH 9:
> gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
> The "official" release of 3.2.2 from gcc.gnu.org is dated February 05, 
> 2003. So there is at least some potential for distribution specific 
> issues it would seem.

I have been working independently of Marc and Peter (bit of a waste of
my weekend on reflection) to find the bug.  I have abstracted a small
program from the R sources that will reproduce the problem, and I will
use this in my bug report to Red Hat. It should print the number 0 then
exit. The bug manifests itself when you optimize, and in this case, the
program prints 1.

I found out - quite by accident - that the "-pedantic" flag turns off
the bug, although I can't imagine why. Any suggestions?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: RNAcheck.c
Type: text/x-c
Size: 1005 bytes
Desc: not available
Url : https://www.stat.math.ethz.ch/pipermail/r-devel/attachments/20030407/b5cca4e1/RNAcheck.bin

More information about the R-devel mailing list