From p.dalgaard@biostat.ku.dk  Fri Nov 15 23:07:53 2002
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 16 Nov 2002 00:07:53 +0100
Subject: make check fails with -march=i686 on gcc 2.96 (PR#2296)
In-Reply-To: <200211151921.UAA15447@pubhealth.ku.dk>
References: <200211151921.UAA15447@pubhealth.ku.dk>
Message-ID: <x27kfev3cm.fsf@biostat.ku.dk>

heinlein@cse.ogi.edu writes:

> The top-level 'make check' fails on Red Hat Linux 7.3 (fully patched 
> as of Nov. 15, 2002) when CFLAGS includes "-march=i686". In 
> particular, the following targets fail:
> 
> * test-Reg
> * test-Examples
> * test-Ts
> 
> The workaround is not to use "-march=i686". Specific stuff below, and
> I'd be happy to provide any files or fragments thereof that'd help.
> 
> The failure does not occur
> 
> a) when the configure script is allowed to generate the optimization
>    flags all on its own:
> 
> b) using Red Hat 8.0 with gcc 3.2 and glibc 2.2.93 (even with 
>    -march=i686 specified)

Sounds more like a compiler bug than an R bug. (I have yet to see the
-march setting have any noticeable effect on a program, so I wouldn't
consider it high priority...)
 
The dual PIII that I have access to is still on RH7.2 and gcc-2.96-98
but I can reproduce the crash in base-Ex.R

#0  0x4012ace9 in __printf_fp () at printf_fp.c:910
#1  0x4012657b in _IO_vfprintf (s=0xbfffb020, 
    format=0xbfffb130 "%#2.2147483647e", ap=0xbfffb110) at _itoa.h:49
#2  0x40141605 in _IO_vsprintf (string=0x8b928b0 " 192.64", 
    format=0xbfffb130 "%#2.2147483647e", args=0xbfffb108) at #iovsprintf.c:46
#3  0x4012ec69 in sprintf (s=0x8b928b0 " 192.64", 
    format=0xbfffb130 "%#2.2147483647e") at sprintf.c:38
#4  0x08101613 in Rf_EncodeReal (x=nan(0x80000000007a2), w=2, #d=2147483647, 
    e=1) at ../../../R/src/main/printutils.c:171
#5  0x08101afb in Rf_EncodeElement (x=0x8bb2940, indx=0, quote=0)
    at ../../../R/src/main/printutils.c:366
...

BTW, another gotcha: r-devel tried to pass --args to gdb, but the
RH7.2 one (5.0-rh15) does not understand that.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


make check fails with -march=i686 on gcc 2.96 (PR#2296)
Peter Dalgaard BSA