[GRASS5] r.terraflow problems
Paul Kelly
paul-grass at stjohnspoint.co.uk
Fri Feb 28 04:53:40 EST 2003
Hello
I tried compiling r.terraflow with the SGI C++ compiler on IRIX and got a
big load of errors, make output appended below. Just for information.
Perhaps its not worth trying to fix them all until in general it is tidied
up more though. I am not into C++ so can't really help.
Paul
(needed to remove -Wall from Gmakefile first)
SRC = /indigo-disk2/grass/grass/src
CMD = /indigo-disk2/grass/grass/src/CMD
UNUSED = /indigo-disk2/grass/grass/unused
HEADER = head.mips-sgi-irix6.2
ARCH = mips-sgi-irix6.2
GISBASE = /indigo-disk2/grass/grass/dist.mips-sgi-irix6.2
VERSION = 5.0.2-cvs January 2003
#################################################################
/indigo-disk2/grass/grass/src.contrib/DUKE/r.terraflow
make -f OBJ.mips-sgi-irix6.2/make.rules
mkdir OBJ.mips-sgi-irix6.2/FLOAT ; true
mkdir: cannot create directory `OBJ.mips-sgi-irix6.2/FLOAT': File exists
mkdir OBJ.mips-sgi-irix6.2/SHORT ; true
mkdir: cannot create directory `OBJ.mips-sgi-irix6.2/SHORT': File exists
CC -c -I/indigo-disk2/grass/grass/src/include -I/indigo-disk2/grass/doom.ee.qub.ac.uk/include -g -I/indigo-disk2/grass/doom.ee.qub.ac.uk/include -I./IOStream/include -DUSER=\"paulk\" -DNODATA_FIX -D_FILE_OFFSET_BITS=64 -DELEV_FLOAT main.cc -o OBJ.mips-sgi-irix6.2/FLOAT/main.o
"./IOStream/include/mm.h", line 136: error(3181): array of functions is not
allowed
friend void operator delete[](void *);
^
"./IOStream/include/mm.h", line 136: error(3596): an operator name must be
declared as a function
friend void operator delete[](void *);
^
"./IOStream/include/mm.h", line 136: error(3358): invalid friend declaration
friend void operator delete[](void *);
^
"./IOStream/include/ami_stream.h", line 248: error(3428): default argument is
not allowed
AMI_stream_type st = AMI_READ_WRITE_STREAM) {
^
"./IOStream/include/ami_stream.h", line 409: error(3428): default argument is
not allowed
MM_stream_usage usage_type= MM_STREAM_USAGE_OVERHEAD) {
^
"./IOStream/include/queue.h", line 61: error(3114): identifier "bool" is
undefined
bool enqueue(T &);
^
"./IOStream/include/queue.h", line 62: error(3114): identifier "bool" is
undefined
bool dequeue(T *);
^
"./IOStream/include/queue.h", line 63: error(3114): identifier "bool" is
undefined
bool peek(int offset, T *);
^
"./IOStream/include/queue.h", line 64: error(3114): identifier "bool" is
undefined
bool isEmpty() const { return len==0; };
^
"./IOStream/include/queue.h", line 86: error(3114): identifier "bool" is
undefined
bool
^
"./IOStream/include/queue.h", line 97: error(3114): identifier "bool" is
undefined
bool
^
"./IOStream/include/queue.h", line 110: error(3114): identifier "bool" is
undefined
bool
^
"./IOStream/include/replacementHeap.h", line 156: error(3235): declaration is
incompatible with "ReplacementHeap<T,
Compare>::ReplacementHeap(size_t, queue<char *> *)" (declared at
line 118)
ReplacementHeap<T,Compare>::ReplacementHeap<T,Compare>(size_t g_arity,
^
"./IOStream/include/replacementHeap.h", line 156: error(3158): expected a ";"
ReplacementHeap<T,Compare>::ReplacementHeap<T,Compare>(size_t g_arity,
^
"./IOStream/include/replacementHeap.h", line 223: warning(3109): parsing
restarts here after previous syntax error
cerr.flush();
^
"./IOStream/include/replacementHeap.h", line 224: error(3254): expected a
declaration
}
^
"./IOStream/include/replacementHeap.h", line 307: warning(3109): parsing
restarts here after previous syntax error
buildheap();
^
"./IOStream/include/replacementHeap.h", line 308: error(3254): expected a
declaration
}
^
"./IOStream/include/replacementHeap.h", line 365: warning(3109): parsing
restarts here after previous syntax error
heapify(min_index);
^
"./IOStream/include/replacementHeap.h", line 366: error(3254): expected a
declaration
}
^
"./IOStream/include/replacementHeap.h", line 369: error(3254): expected a
declaration
}
^
"./IOStream/include/replacementHeap.h", line 417: warning(3109): parsing
restarts here after previous syntax error
if (size > 0) heapify(0);
^
"./IOStream/include/replacementHeap.h", line 419: error(3254): expected a
declaration
return min;
^
"./IOStream/include/replacementHeap.h", line 420: error(3254): expected a
declaration
}
^
"./IOStream/include/replacementHeapBlock.h", line 70: warning(3109): parsing
restarts here after previous syntax error
};
^
"./IOStream/include/replacementHeapBlock.h", line 89: error(3170): this
declaration has no storage class or type specifier
BlockHeapElement<T>* mergeHeap; //the heap;
^
"./IOStream/include/replacementHeapBlock.h", line 89: error(3158): expected a
";"
BlockHeapElement<T>* mergeHeap; //the heap;
^
"./IOStream/include/replacementHeapBlock.h", line 162: error(3235):
declaration is incompatible with "ReplacementHeapBlock<T,
Compare>::ReplacementHeapBlock(queue<MEM_STREAM<T> *> *)" (declared
at line 120)
::ReplacementHeapBlock<T,Compare>(queue <MEM_STREAM<T>*> *runList) {
^
"./IOStream/include/replacementHeapBlock.h", line 162: error(3158): expected a
";"
::ReplacementHeapBlock<T,Compare>(queue <MEM_STREAM<T>*> *runList) {
^
"./IOStream/include/replacementHeapBlock.h", line 225: warning(3109): parsing
restarts here after previous syntax error
cerr.flush();
^
"./IOStream/include/replacementHeapBlock.h", line 226: error(3254): expected a
declaration
}
^
"./IOStream/include/replacementHeapBlock.h", line 309: warning(3109): parsing
restarts here after previous syntax error
buildheap();
^
"./IOStream/include/replacementHeapBlock.h", line 310: error(3254): expected a
declaration
}
^
"./IOStream/include/replacementHeapBlock.h", line 341: warning(3109): parsing
restarts here after previous syntax error
heapify(min_index);
^
"./IOStream/include/replacementHeapBlock.h", line 342: error(3254): expected a
declaration
}
^
"./IOStream/include/replacementHeapBlock.h", line 345: error(3254): expected a
declaration
}
^
"./IOStream/include/replacementHeapBlock.h", line 393: warning(3109): parsing
restarts here after previous syntax error
if (size > 0) heapify(0);
^
"./IOStream/include/replacementHeapBlock.h", line 395: error(3254): expected a
declaration
return min;
^
"./IOStream/include/replacementHeapBlock.h", line 396: error(3254): expected a
declaration
}
^
"./IOStream/include/ami_sort_impl.h", line 94: warning(3109): parsing restarts
here after previous syntax error
<< "\n";
^
"./IOStream/include/ami_sort_impl.h", line 95: error(3254): expected a
declaration
}
^
"./IOStream/include/ami_sort_impl.h", line 147: warning(3109): parsing
restarts here after previous syntax error
str = new MEM_STREAM<T>( &(data[i*block_size]), crt_block_size);
^
"./IOStream/include/ami_sort_impl.h", line 148: error(3170): this declaration
has no storage class or type specifier
blockList->enqueue(str);
^
"./IOStream/include/ami_sort_impl.h", line 148: error(3158): expected a ";"
blockList->enqueue(str);
^
"./IOStream/include/ami_sort_impl.h", line 149: error(3254): expected a
declaration
}
^
"./IOStream/include/ami_sort_impl.h", line 153: error(3114): identifier "T" is
undefined
ReplacementHeapBlock<T,Compare> rheap(blockList);
^
"./IOStream/include/ami_sort_impl.h", line 153: error(3114): identifier
"Compare" is undefined
ReplacementHeapBlock<T,Compare> rheap(blockList);
^
"./IOStream/include/replacementHeapBlock.h", line 89: error(3170): this
declaration has no storage class or type specifier
BlockHeapElement<T>* mergeHeap; //the heap;
^
detected during instantiation of class
"ReplacementHeapBlock<<error-type>, <error-type>>" at line
153 of "./IOStream/include/ami_sort_impl.h"
"./IOStream/include/replacementHeapBlock.h", line 89: error(3158): expected a
";"
BlockHeapElement<T>* mergeHeap; //the heap;
^
detected during instantiation of class
"ReplacementHeapBlock<<error-type>, <error-type>>" at line
153 of "./IOStream/include/ami_sort_impl.h"
"./IOStream/include/ami_sort_impl.h", line 153: error(3370): no instance of
constructor "ReplacementHeapBlock<<error-type>,
<error-type>>::ReplacementHeapBlock" matches the argument list
ReplacementHeapBlock<T,Compare> rheap(blockList);
^
"./IOStream/include/ami_sort_impl.h", line 154: error(3254): expected a
declaration
SDEBUG rheap.print(cerr);
^
"./IOStream/include/ami_sort_impl.h", line 156: error(3114): identifier "T" is
undefined
T elt;
^
"./IOStream/include/ami_sort_impl.h", line 157: error(3114): identifier "T" is
undefined
T* outdata = new T [run_size];
^
"./IOStream/include/ami_sort_impl.h", line 157: error(3172): expected a type
specifier
T* outdata = new T [run_size];
^
"./IOStream/include/ami_sort_impl.h", line 157: error(3114): identifier
"run_size" is undefined
T* outdata = new T [run_size];
^
"./IOStream/include/ami_sort_impl.h", line 158: error(3254): expected a
declaration
while (!rheap.empty()) {
^
"./IOStream/include/ami_sort_impl.h", line 164: warning(3109): parsing
restarts here after previous syntax error
assert( i == run_size && blockList->length() == 0);
^
"./IOStream/include/ami_sort_impl.h", line 165: error(3254): expected a
declaration
delete blockList;
^
"./IOStream/include/ami_sort_impl.h", line 167: error(3114): identifier "T" is
undefined
T* tmp = data;
^
"./IOStream/include/ami_sort_impl.h", line 167: error(3114): identifier "data"
is undefined
T* tmp = data;
^
"./IOStream/include/ami_sort_impl.h", line 168: error(3254): expected a
declaration
delete [] tmp;
^
"./IOStream/include/ami_sort_impl.h", line 169: error(3170): this declaration
has no storage class or type specifier
data = outdata;
^
"./IOStream/include/ami_sort_impl.h", line 169: error(3232): a value of type
"<error-type> *" cannot be used to initialize an entity of type "int"
data = outdata;
^
"./IOStream/include/ami_sort_impl.h", line 170: error(3254): expected a
declaration
}
^
"./IOStream/include/ami_sort_impl.h", line 218: warning(3109): parsing
restarts here after previous syntax error
SDEBUG MM_manager.print();
^
"./IOStream/include/ami_sort_impl.h", line 220: error(3254): expected a
declaration
for (size_t i=0; i< nb_runs; i++) {
^
"./IOStream/include/ami_sort_impl.h", line 241: warning(3109): parsing
restarts here after previous syntax error
str->write_array(data, crt_run_size);
^
"./IOStream/include/ami_sort_impl.h", line 242: error(3112): expected a ")"
assert(str->stream_len() == crt_run_size);
^
"./IOStream/include/ami_sort_impl.h", line 242: error(3112): expected a ")"
assert(str->stream_len() == crt_run_size);
^
"./IOStream/include/ami_sort_impl.h", line 242: error(3170): this declaration
has no storage class or type specifier
assert(str->stream_len() == crt_run_size);
^
"./IOStream/include/ami_sort_impl.h", line 245: error(3170): this declaration
has no storage class or type specifier
str->name(&strname);
^
"./IOStream/include/ami_sort_impl.h", line 245: error(3328): variable "str"
has already been defined
str->name(&strname);
^
"./IOStream/include/ami_sort_impl.h", line 245: error(3158): expected a ";"
str->name(&strname);
^
"./IOStream/include/ami_sort_impl.h", line 246: error(3170): this declaration
has no storage class or type specifier
runList->enqueue(strname);
^
"./IOStream/include/ami_sort_impl.h", line 246: error(3158): expected a ";"
runList->enqueue(strname);
^
"./IOStream/include/ami_sort_impl.h", line 249: error(3170): this declaration
has no storage class or type specifier
str->persist(PERSIST_PERSISTENT);
^
"./IOStream/include/ami_sort_impl.h", line 249: error(3328): variable "str"
has already been defined
str->persist(PERSIST_PERSISTENT);
^
"./IOStream/include/ami_sort_impl.h", line 249: error(3158): expected a ";"
str->persist(PERSIST_PERSISTENT);
^
"./IOStream/include/ami_sort_impl.h", line 250: error(3254): expected a
declaration
delete str;
^
"./IOStream/include/ami_sort_impl.h", line 251: error(3254): expected a
declaration
};
^
"./IOStream/include/ami_sort_impl.h", line 252: error(3254): expected a
declaration
SDEBUG MM_manager.print();
^
"./IOStream/include/ami_sort_impl.h", line 254: error(3254): expected a
declaration
delete [] data;
^
"./IOStream/include/ami_sort_impl.h", line 256: error(3254): expected a
declaration
SDEBUG cout << "runFormation: done.\n";
^
"./IOStream/include/ami_sort_impl.h", line 257: error(3254): expected a
declaration
SDEBUG MM_manager.print();
^
"./IOStream/include/ami_sort_impl.h", line 259: error(3254): expected a
declaration
return runList;
^
"./IOStream/include/ami_sort_impl.h", line 260: error(3254): expected a
declaration
};
^
"./IOStream/include/ami_sort_impl.h", line 285: error(3538): template
parameter "T" is not used in declaring the argument types of
function template "singleMerge"
template<class T, class Compare>
^
"./IOStream/include/ami_sort_impl.h", line 347: error(3538): template
parameter "T" is not used in declaring the argument types of
function template "multiMerge"
template<class T, class Compare>
^
"./IOStream/include/pqheap.h", line 141: error(3114): identifier "bool" is
undefined
inline bool full(void);
^
"./IOStream/include/pqheap.h", line 144: error(3114): identifier "bool" is
undefined
inline bool empty(void);
^
"./IOStream/include/pqheap.h", line 145: error(3114): identifier "bool" is
undefined
inline bool is_empty() { return empty(); };
^
"./IOStream/include/pqheap.h", line 156: error(3114): identifier "bool" is
undefined
inline bool min(T& elt);
^
"./IOStream/include/pqheap.h", line 160: error(3114): identifier "bool" is
undefined
inline bool extract_min(T& elt);
^
"./IOStream/include/pqheap.h", line 163: error(3114): identifier "bool" is
undefined
inline bool extract_all_min(T& elt);
^
"./IOStream/include/pqheap.h", line 166: error(3114): identifier "bool" is
undefined
inline bool delete_min();
^
"./IOStream/include/pqheap.h", line 169: error(3114): identifier "bool" is
undefined
inline bool insert(const T& elt);
^
"./IOStream/include/pqheap.h", line 307: error(3114): identifier "bool" is
undefined
inline bool
^
"./IOStream/include/pqheap.h", line 314: error(3114): identifier "bool" is
undefined
inline bool
^
"./IOStream/include/pqheap.h", line 328: error(3114): identifier "bool" is
undefined
inline bool
^
"./IOStream/include/pqheap.h", line 400: error(3114): identifier "bool" is
undefined
inline bool
^
"./IOStream/include/pqheap.h", line 421: error(3114): identifier "bool" is
undefined
inline bool
^
"./IOStream/include/pqheap.h", line 450: error(3114): identifier "bool" is
undefined
inline bool
^
"./IOStream/include/pqheap.h", line 459: error(3114): identifier "bool" is
undefined
inline bool
^
"./IOStream/include/empq_impl.h", line 43: error(4003): could not open source
file "ostream.h"
#include <ostream.h>
^
89 errors and 1 catastrophic error detected in the compilation of "main.cc".
Compilation terminated.
make: *** [OBJ.mips-sgi-irix6.2/FLOAT/main.o] Error 1
More information about the grass-dev
mailing list