Re: R-beta: R-0.61.3 and __setfpucw.

Peter Dalgaard BSA (p.dalgaard@biostat.ku.dk)
12 May 1998 11:46:14 +0200


To: Goran Brostrom <gb@stat.umu.se>
Subject: Re: R-beta: R-0.61.3 and __setfpucw.
From: Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk>
Date: 12 May 1998 11:46:14 +0200
In-Reply-To: Goran Brostrom's message of Tue, 12 May 1998 11:10:30 +0200 (MET DST)

Goran Brostrom <gb@stat.umu.se> writes:

> 
> 
> I have Linux, Redhat 4.2, on two machines, an i586 and a Sparc.
> When I compile R-0.61.3 on them, everything is fine on i586,
> but on the Sparc I get, in the last linking stage: 
> 
> ../lib/libunix.a(system.o): In function `main':
> /usr/local/R-0.61.3/src/unix/system.c:353: undefined reference to
> `__setfpucw'
> ../lib/libunix.a(system.o): In function `R_CleanUp':
> /usr/local/R-0.61.3/src/unix/system.c:430: undefined reference to
> `__setfpucw'

Using __setfpucw is a horrible hack in the first place... 

You could try simply commenting it out. Or study <fpu_control.h> and
guess what the mechanism is supposed to be on Sparc Linux.

On i386 with RH4.2, _FPU_DEFAULT == _FPU_IEEE, so the __setfpucw() is
a no-op anyway. (Earlier Linuxen would unmask exceptions invalid-op,
zero-div, and overflow - halting programs at inconvenient times).

-- 
   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-help 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-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._