Duncan Temple Lang writes:
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.