From ripley at stats.ox.ac.uk  Mon Nov 22 21:16:57 2010
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 22 Nov 2010 20:16:57 +0000 (GMT)
Subject: [Rd] make error for R 2.13.0 (and 2.12.0)
In-Reply-To: <4CEABA69.1020309@redhat.com>
References: <20101018003908.GA990@cs.toronto.edu> <4CBBF15E.6040104@gmail.com>
	<4CD0420C.40604@redhat.com>
	<u1o8w18t20k.fsf@lx-chrateresearch01.citadelgroup.com>
	<4CEABA69.1020309@redhat.com>
Message-ID: <alpine.LFD.2.00.1011222005100.6886@gannet.stats.ox.ac.uk>

Notes:

1) We cannot reproduce this on a Solaris system using gcc/g77 3.4.6. 
(Doubled underscores are generated there by g77 and handled correctly 
in R.)  So whatever the issue really is, it is not simply that 'this 
code no longer compiles properly with g77'.

2) Package cluster has since been updated not to use underscores, so 
simply trying an R-patched tarball should solve the issue.

There may be other packages with Fortran code and underscores, so it 
would be helpful if someone with evidence of the problem could produce 
an accurate analysis and patch.

On Mon, 22 Nov 2010, Tom "spot" Callaway wrote:

> On 11/05/2010 07:59 AM, Johann Hibschman wrote:
>> "Tom \"spot\" Callaway" <tcallawa at redhat.com> writes:
>>
>>> Full build log is here:
>>> http://koji.fedoraproject.org/koji/getfile?taskID=2571563&name=build.log
>>>
>>> Default gcc in RHEL 4 is 3.4.6-10, which has g77 rather than gfortran.
>>> It looks like this code no longer compiles properly with g77.
>>>
>>> Thankfully, RHEL 4 also includes a copy of gcc 4.1, so I should be able
>>> to work around this by using that instead.
>>
>> Did you have any luck with this?  I'm also stuck on RHEL 4, also facing
>> that same error, but I've not been able to find gfortran anywhere on the
>> system.
>
> Yes, I was able to get this working by installing the gcc4-gfortran and
> gcc4-c++ packages on RHEL 4, and setting CC=gcc4, CXX=g++4, FC=gfortran
> and F77=gfortran.
>
> I pushed this package into EPEL (http://fedoraproject.org/wiki/EPEL), so
> if you'd rather just use my builds instead of trying your own, 2.12.0 is
> available now.
>
> ( For this specific update, see:
> https://admin.fedoraproject.org/updates/R-2.12.0-1.el4.1 )
>
> Thanks,
>
> ~spot
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
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, UK                Fax:  +44 1865 272595



[Rd] make error for R 2.13.0 (and 2.12.0)
Prof Brian Ripley