[GRASSLIST:2027] compiling r.terraflow in 5.7

Christopher Fonnesbeck chris at fonnesbeck.org
Thu Dec 11 13:27:52 EST 2003


Since r.watershed seems not to work in 5.0.2, I am trying to compile  
r.terraflow in 5.7, in an attempt to so some type of watershed analysis  
with my dataset. Unfortunately, when I enable the compilation of  
r.terraflow, I get the following:

c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT main.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/main.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/main.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT common.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/common.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/common.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT stats.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/stats.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/stats.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT fill.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/fill.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/fill.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT types.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/types.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/types.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT ccforest.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/ccforest.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/ccforest.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT nodata.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/nodata.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/nodata.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT plateau.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/plateau.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/plateau.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT direction.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/direction.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/direction.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT water.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/water.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/water.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT filldepr.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/filldepr.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/filldepr.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT grid.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/grid.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/grid.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT genericWindow.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/genericWindow.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/genericWindow.o] Error  
127 (ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT flow.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/flow.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/flow.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT sweep.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/sweep.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/sweep.o] Error 127  
(ignored)
c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX  
-D_FILE_OFFSET_BITS=64 -DELEV_FLOAT weightWindow.cc -o  
OBJ.powerpc-apple-darwin7.0.0/FLOAT/weightWindow.o
make[2]: c: Command not found
make[2]: [OBJ.powerpc-apple-darwin7.0.0/FLOAT/weightWindow.o] Error 127  
(ignored)
(cd IOStream/lib ; make)
(cd src ; make)
Makefile:30: mm.d: No such file or directory
Makefile:30: mm_utils.d: No such file or directory
Makefile:30: ami_stream.d: No such file or directory
Makefile:30: rtimer.d: No such file or directory
Makefile:36: warning: overriding commands for target `clean'
../../../../../include/Make/Rules.make:30: warning: ignoring old  
commands for target `clean'
/bin/sh -ec ' -M -I../../include -g rtimer.cc | sed '\''s/rtimer.o/&  
rtimer.d/g'\'' > rtimer.d'
/bin/sh: line 1: -M: command not found
/bin/sh -ec ' -M -I../../include -g ami_stream.cc | sed  
'\''s/ami_stream.o/& ami_stream.d/g'\'' > ami_stream.d'
/bin/sh: line 1: -M: command not found
/bin/sh -ec ' -M -I../../include -g mm_utils.cc | sed  
'\''s/mm_utils.o/& mm_utils.d/g'\'' > mm_utils.d'
/bin/sh: line 1: -M: command not found
/bin/sh -ec ' -M -I../../include -g mm.cc | sed '\''s/mm.o/& mm.d/g'\''  
 > mm.d'
/bin/sh: line 1: -M: command not found
Makefile:36: warning: overriding commands for target `clean'
../../../../../include/Make/Rules.make:30: warning: ignoring old  
commands for target `clean'
I../../include -g  -c -o mm.o mm.cc
make[4]: I../../include: Command not found
make[4]: [mm.o] Error 127 (ignored)
ar rv libiostream.a mm.o
ar: creating archive libiostream.a
a - mm.o
ar: mm.o: No such file or directory
make[4]: *** [libiostream.a(mm.o)] Error 1
make[3]: *** [build] Error 2
make[2]: ***  
[/usr/local/src/grass57_exp_2003_11_22/dist.powerpc-apple-darwin7.0.0/ 
etc/bin/cmd/r.terraflow] Error 2
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

It looks like, for starters, "c" was specified instead of "cc". I'm not  
sure how to fix this, so any hints would be helpful.

thanks,
C
--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia




More information about the grass-user mailing list