[Rd] Re: [R] problems with R COMPILE in make

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Sun, 17 Sep 2000 16:08:00 +0200 (CEST)

>>>>> Duncan Temple Lang writes:

> Hi Peter.

>  I took a quick look at the R COMPILE problem and it seems that there
> are in fact two problems.  One is the problem with the attempt to
> build a target `w'. And the other is that if that error didn't arise,
> you would have an infinite loop.

> Here is quick fix to your problem. Add the line

>   include $(R_HOME)/etc/Makeconf

> to your Makefile. Then, make will compile imageio.o with the correct flags.

> eyore[RCompile-174]>make
> gcc -I/home2/FlowData/AltProjects/R-shared//include  -I/usr/local/include -mieee-fp -D__NO_MATH_INLINES  -fPIC  -g -O2 -c imageio.c -o imageio.o 

> That should be enough to get things working.  The more detailed
> explanation is as follows.

> a) The rule
> imageio.o: imageio.c
>  	R COMPILE imageio.c

> is executed by the first call to make.
> The COMPILE script expands this to call

>      make -f $R_HOME/etc/Makeconf -f Makefile imageio.o

> At this point, this second make process sees the same rule, and does
> the same thing. Hence, you have infinite recursion.


Thanks for answering this.

Should we consider this behavior a bug?  I am not sure I see an easy way
out ...

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