From rhurlin at gwdg.de  Tue Feb  8 20:36:02 2011
From: rhurlin at gwdg.de (Rainer Hurling)
Date: Tue, 08 Feb 2011 20:36:02 +0100
Subject: [Rd] R-devel on FreeBSD: Support for C99 complex type is
	required
In-Reply-To: <alpine.LFD.2.02.1102072237210.30160@gannet.stats.ox.ac.uk>
References: <4D4EAFCE.6020004@gwdg.de>
	<alpine.LFD.2.00.1102061507430.15472@auk.stats.ox.ac.uk>
	<4D4ED172.9090402@gwdg.de>
	<alpine.LFD.2.00.1102061710320.22661@auk.stats.ox.ac.uk>
	<4D4EE672.6080601@gwdg.de>
	<alpine.LFD.2.02.1102072237210.30160@gannet.stats.ox.ac.uk>
Message-ID: <4D519B22.3040508@gwdg.de>

On 07.02.2011 23:45 (UTC+1), Prof Brian Ripley wrote:
> A follow-up on this.
>
> Cygwin has recently[*] added support for C99 complex math, taken from
> NetBSD with code that is very similar to that from Steven Moshier
> available via http://www.moshier.net/c9x_readme.html.
>
> That code isn't entirely right, especially not at the cuts on the
> inverse functions where C99 mandates what cut is used (and neither glibc
> nor Mac OS X have it correct).
>
> I would expect that the current R-devel (I mean an SVN checkout now)
> should build on your platform, substituting the missing functions by
> ones based on earlier code. There may be a few more tweaks required, but
> I have corrected several errors in the versions FreeBSD would have used
> in R 2.12.1.

On FreeBSD 9.0-CURRENT (amd64) I have done a

   svn co https://svn.r-project.org/R/trunk r-devel/R

and after that

   configure --without-recommended-packages

The configure script does not complain any more about missing C99 
complex support. I was able to build and install R (without recommended 
packages).

Starting R and doing examples on ?complex seems to work correct.

sessionInfo()
R version 2.13.0 Under development (unstable) (2011-02-08 r54279)
Platform: x86_64-unknown-freebsd9.0 (64-bit)
locale:
[1] de_DE.ISO8859-15/de_DE.ISO8859-15/C/C/de_DE.ISO8859-15/de_DE.ISO8859-15
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
loaded via a namespace (and not attached):
[1] tools_2.13.0

Thank you very much for this work. Will it exist in some way in the next 
release?

> [*] AFAICS not yet released in Cygwin, but in newlib 1.19.0.
>



[Rd] R-devel on FreeBSD: Support for C99 complex type is required
Rainer Hurling