From Kurt.Hornik@ci.tuwien.ac.at  Sun Sep 17 15:08:00 2000
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Sun, 17 Sep 2000 16:08:00 +0200 (CEST)
Subject: [Rd] Re: [R] problems with R COMPILE in make
In-Reply-To: <200009041539.LAA13736@jessie.research.bell-labs.com>
References: <200009041539.LAA13736@jessie.research.bell-labs.com>
Message-ID: <14788.53312.712613.772740@aragorn.ci.tuwien.ac.at>

>>>>> 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.

Duncan,

Thanks for answering this.

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

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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