[GRASSLIST:2064] error in compiling 5.7 with cxx support on OSX

Christopher Fonnesbeck chris at fonnesbeck.org
Tue Dec 16 14:51:59 EST 2003


Specifying c++ support in the configuration file results in the 
following build errors:

c++ -c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX 
-D_FILE_OFFSET_BITS=64 -I/usr/local/src/grass57_exp_2003_11_22/include 
-DELEV_FLOAT main.cc -o OBJ.powerpc-apple-darwin7.0.0/FLOAT/main.o
c++ -c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX 
-D_FILE_OFFSET_BITS=64 -I/usr/local/src/grass57_exp_2003_11_22/include 
-DELEV_FLOAT common.cc -o OBJ.powerpc-apple-darwin7.0.0/FLOAT/common.o
c++ -c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX 
-D_FILE_OFFSET_BITS=64 -I/usr/local/src/grass57_exp_2003_11_22/include 
-DELEV_FLOAT stats.cc -o OBJ.powerpc-apple-darwin7.0.0/FLOAT/stats.o
c++ -c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX 
-D_FILE_OFFSET_BITS=64 -I/usr/local/src/grass57_exp_2003_11_22/include 
-DELEV_FLOAT fill.cc -o OBJ.powerpc-apple-darwin7.0.0/FLOAT/fill.o
IOStream/include/ami_sort_impl.h: In function `queue<char*>*
    runFormation(AMI_STREAM<T>*, Compare*) [with T = plateauType, 
Compare =
    ijCmpPlateauType]':
IOStream/include/ami_sort.h:123:   instantiated from `AMI_err 
AMI_sort(AMI_STREAM<T>*, AMI_STREAM<T>**, Compare*, int) [with T = 
plateauType, Compare = ijCmpPlateauType]'
sortutils.h:105:   instantiated from `AMI_STREAM<T>* 
sort(AMI_STREAM<T>*, FUN) [with T = plateauType, FUN = 
ijCmpPlateauType]'
fill.cc:231:   instantiated from here
IOStream/include/ami_sort_impl.h:206: error: could not convert 
`nb_runs' to `
    unsigned int&'
IOStream/include/ami_sort_impl.h:69: error: in passing argument 4 of 
`void
    initializeRunFormation(AMI_STREAM<T>*, size_t&, size_t&, unsigned 
int&)
    [with T = plateauType]'
IOStream/include/ami_sort_impl.h: In function `queue<char*>*
    runFormation(AMI_STREAM<T>*, Compare*) [with T = labelElevType, 
Compare =
    ijCmpLabelElevType]':
IOStream/include/ami_sort.h:123:   instantiated from `AMI_err 
AMI_sort(AMI_STREAM<T>*, AMI_STREAM<T>**, Compare*, int) [with T = 
labelElevType, Compare = ijCmpLabelElevType]'
sortutils.h:66:   instantiated from `void sort(AMI_STREAM<T>**, FUN) 
[with T = labelElevType, FUN = ijCmpLabelElevType]'
fill.cc:298:   instantiated from here
IOStream/include/ami_sort_impl.h:206: error: could not convert 
`nb_runs' to `
    unsigned int&'
IOStream/include/ami_sort_impl.h:69: error: in passing argument 4 of 
`void
    initializeRunFormation(AMI_STREAM<T>*, size_t&, size_t&, unsigned 
int&)
    [with T = labelElevType]'
IOStream/include/ami_sort_impl.h: In function `queue<char*>*
    runFormation(AMI_STREAM<T>*, Compare*) [with T = boundaryType, 
Compare =
    elevCmpBoundaryType]':
IOStream/include/ami_sort.h:123:   instantiated from `AMI_err 
AMI_sort(AMI_STREAM<T>*, AMI_STREAM<T>**, Compare*, int) [with T = 
boundaryType, Compare = elevCmpBoundaryType]'
sortutils.h:66:   instantiated from `void sort(AMI_STREAM<T>**, FUN) 
[with T = boundaryType, FUN = elevCmpBoundaryType]'
fill.cc:317:   instantiated from here
IOStream/include/ami_sort_impl.h:206: error: could not convert 
`nb_runs' to `
    unsigned int&'
IOStream/include/ami_sort_impl.h:69: error: in passing argument 4 of 
`void
    initializeRunFormation(AMI_STREAM<T>*, size_t&, size_t&, unsigned 
int&)
    [with T = boundaryType]'
IOStream/include/ami_sort_impl.h: In function `queue<char*>*
    runFormation(AMI_STREAM<T>*, Compare*) [with T = labelElevType, 
Compare =
    labelCmpLabelElevType]':
IOStream/include/ami_sort.h:123:   instantiated from `AMI_err 
AMI_sort(AMI_STREAM<T>*, AMI_STREAM<T>**, Compare*, int) [with T = 
labelElevType, Compare = labelCmpLabelElevType]'
sortutils.h:105:   instantiated from `AMI_STREAM<T>* 
sort(AMI_STREAM<T>*, FUN) [with T = labelElevType, FUN = 
labelCmpLabelElevType]'
fill.cc:414:   instantiated from here
IOStream/include/ami_sort_impl.h:206: error: could not convert 
`nb_runs' to `
    unsigned int&'
IOStream/include/ami_sort_impl.h:69: error: in passing argument 4 of 
`void
    initializeRunFormation(AMI_STREAM<T>*, size_t&, size_t&, unsigned 
int&)
    [with T = labelElevType]'
IOStream/include/ami_sort_impl.h: In function `queue<char*>*
    runFormation(AMI_STREAM<T>*, Compare*) [with T = waterType, Compare =
    ijCmpWaterType]':
IOStream/include/ami_sort.h:123:   instantiated from `AMI_err 
AMI_sort(AMI_STREAM<T>*, AMI_STREAM<T>**, Compare*, int) [with T = 
waterType, Compare = ijCmpWaterType]'
sortutils.h:105:   instantiated from `AMI_STREAM<T>* 
sort(AMI_STREAM<T>*, FUN) [with T = waterType, FUN = ijCmpWaterType]'
fill.cc:562:   instantiated from here
IOStream/include/ami_sort_impl.h:206: error: could not convert 
`nb_runs' to `
    unsigned int&'
IOStream/include/ami_sort_impl.h:69: error: in passing argument 4 of 
`void
    initializeRunFormation(AMI_STREAM<T>*, size_t&, size_t&, unsigned 
int&)
    [with T = waterType]'
IOStream/include/ami_sort_impl.h: In function `queue<char*>*
    runFormation(AMI_STREAM<T>*, Compare*) [with T = boundaryType, 
Compare =
    ijCmpBoundaryType]':
IOStream/include/ami_sort.h:123:   instantiated from `AMI_err 
AMI_sort(AMI_STREAM<T>*, AMI_STREAM<T>**, Compare*, int) [with T = 
boundaryType, Compare = ijCmpBoundaryType]'
sortutils.h:66:   instantiated from `void sort(AMI_STREAM<T>**, FUN) 
[with T = boundaryType, FUN = ijCmpBoundaryType]'
fill.cc:674:   instantiated from here
IOStream/include/ami_sort_impl.h:206: error: could not convert 
`nb_runs' to `
    unsigned int&'
IOStream/include/ami_sort_impl.h:69: error: in passing argument 4 of 
`void
    initializeRunFormation(AMI_STREAM<T>*, size_t&, size_t&, unsigned 
int&)
    [with T = boundaryType]'
IOStream/include/ami_sort_impl.h: In function `queue<char*>*
    runFormation(AMI_STREAM<T>*, Compare*) [with T = boundaryType, 
Compare =
    waterCmpBoundaryType]':
IOStream/include/ami_sort.h:123:   instantiated from `AMI_err 
AMI_sort(AMI_STREAM<T>*, AMI_STREAM<T>**, Compare*, int) [with T = 
boundaryType, Compare = waterCmpBoundaryType]'
sortutils.h:66:   instantiated from `void sort(AMI_STREAM<T>**, FUN) 
[with T = boundaryType, FUN = waterCmpBoundaryType]'
fill.cc:680:   instantiated from here
IOStream/include/ami_sort_impl.h:206: error: could not convert 
`nb_runs' to `
    unsigned int&'
IOStream/include/ami_sort_impl.h:69: error: in passing argument 4 of 
`void
    initializeRunFormation(AMI_STREAM<T>*, size_t&, size_t&, unsigned 
int&)
    [with T = boundaryType]'
make[2]: *** [OBJ.powerpc-apple-darwin7.0.0/FLOAT/fill.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Any particular reason this would happen? I'm using gcc3.3 on OSX 10.3

Cheers,
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