[Rd] error compiling R-code
Duncan Murdoch
murdoch at stats.uwo.ca
Tue Oct 11 03:14:13 CEST 2005
apjaworski at mmm.com wrote:
> Hi,
>
> I have been compiling R from source code with regularity (both R-patched
> and R-devel) for several months now. About two/three weeks ago I noticed a
> compilation error in R-devel (see below). I thought that the error will go
> away in "due course" so I did not investigate it further. Then I left on
> vacation.
>
> I just downloaded both versions of R sources (i.e., 2.2.0 patched and
> 2.3.0). They both give me the same error, so my suspicion is that it is
> just me having this problem. Here is what I get:
>
> ...
> gcc -O2 -Wall -pedantic --std=gnu99 -DLEA_MALLOC -I../include
> -DHAVE_CONFIG_H -DR_DLL_BUILD -c arithmetic.c -o arithmetic.o
> arithmetic.c: In function `do_math1':
> arithmetic.c:886: error: `expm1' undeclared (first use in this function)
> arithmetic.c:886: error: (Each undeclared identifier is reported only once
> arithmetic.c:886: error: for each function it appears in.)
> make[4]: *** [arithmetic.o] Error 1
> make[3]: *** [rlibs] Error 2
> make[2]: *** [../../bin/R.dll] Error 2
> make[1]: *** [rbuild-no-mbcs] Error 2
> make[1]: Leaving directory `/home/andyj/R-devel/src/gnuwin32'
> make: *** [distribution] Error 2
>
> I apologize if this was already asked. I came back after about
> week-an-a-half and I did not have time to go through hundreds of R
> messages. Hopefully this is something simple for somebody who is familiar
> with the code.
>
> I am on a Win2000 machine with all the necessary tools installed. I have
> not changed my setup in at least 2 months and, as I said above, I was able
> to compile R with no problems until about 2/3 weeks ago, so perhaps I
> missed some subtle change in the tools.
You may not have the latest versions of the MinGW tools. Check the
Admin and installation manual, or http://www.murdoch-sutherland.com/Rtools/.
Duncan Murdoch
More information about the R-devel
mailing list