[GRASS-user] r.streams not compiling for GRASS 70

1. file from add-ons moved over to grass70 source tree in raster folder

2. make in trunk/

3. moved into trunk/raster/r.stream

4. make

5. error below

Assembler messages:
Fatal error: can't create OBJ.x86_64-unknown-linux-gnu/io.o: No such
file or directory
make[1]: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1
make[1]: Leaving directory
`/home/ssefick/source/grass/trunk/raster/r.stream/r.stream.snap'

I have tried to make these modules through the GUI addons installer to
no avail. Any help will be greatly appreciated, and any information
that I can give to help; please let me know.

Stephen Sefick

Ubuntu 10.04

On Fri, Feb 25, 2011 at 9:41 PM, Stephen Sefick <ssefick@gmail.com> wrote:

1. file from add-ons moved over to grass70 source tree in raster folder

Not needed, you can compile directly from grass-addons/:

cd grass-addons/grass7/raster/r.stream/r.stream.snap/
make MODULE_TOPDIR=$HOME/grass70/

if needed:
make MODULE_TOPDIR=$HOME/grass70/ install

to clean:
make MODULE_TOPDIR=$HOME/grass70/ clean

...

Assembler messages:
Fatal error: can't create OBJ.x86_64-unknown-linux-gnu/io.o: No such
file or directory
make[1]: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1
make[1]: Leaving directory
`/home/ssefick/source/grass/trunk/raster/r.stream/r.stream.snap'

This error I don't get. I am using
gcc version 4.4.3 (GCC)

But there are a series of compiler warnings like
main.c:126: warning: implicit declaration of function ‘create_distance_mask’
main.c:127: warning: implicit declaration of function ‘read_points’
main.c:130: warning: implicit declaration of function ‘snap_point’
main.c:132: warning: implicit declaration of function ‘write_points’

which should be fixed.

Markus

also there is an error in the wxpython/docs I don't know if this is
known or not.

/home/ssefick/source/grass/grass7/gui/wxpython/docs

On Fri, 2011-02-25 at 23:09 +0100, Markus Neteler wrote:

On Fri, Feb 25, 2011 at 9:41 PM, Stephen Sefick <ssefick@gmail.com> wrote:
>
> 1. file from add-ons moved over to grass70 source tree in raster folder

Not needed, you can compile directly from grass-addons/:

cd grass-addons/grass7/raster/r.stream/r.stream.snap/
make MODULE_TOPDIR=$HOME/grass70/

if needed:
make MODULE_TOPDIR=$HOME/grass70/ install

to clean:
make MODULE_TOPDIR=$HOME/grass70/ clean

...
> Assembler messages:
> Fatal error: can't create OBJ.x86_64-unknown-linux-gnu/io.o: No such
> file or directory
> make[1]: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1
> make[1]: Leaving directory
> `/home/ssefick/source/grass/trunk/raster/r.stream/r.stream.snap'

This error I don't get. I am using
gcc version 4.4.3 (GCC)

But there are a series of compiler warnings like
main.c:126: warning: implicit declaration of function ‘create_distance_mask’
main.c:127: warning: implicit declaration of function ‘read_points’
main.c:130: warning: implicit declaration of function ‘snap_point’
main.c:132: warning: implicit declaration of function ‘write_points’

which should be fixed.

Markus

Markus, Sorry for not posting this to the whole like. I hit reply and not reply all. Here is the error for compiling GRASS7 and addons r.stream.

svn up today

Error:
make MODULE_TOPDIR=$HOME/source/grass/grass7
gcc -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused -I/home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -I/home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -I/usr/include/gdal -I/usr/include -DPACKAGE=\""grassmods"\" -I/home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -I/home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/io.o -c io.c
io.c: In function ‘ram_create_map’:
io.c:16: warning: format not a string literal and no format arguments
io.c:13: warning: unused variable ‘c’
io.c: In function ‘ram_read_map’:
io.c:139: warning: format not a string literal and no format arguments
io.c: In function ‘seg_create_map’:
io.c:278: warning: format not a string literal and no format arguments
io.c:282: error: implicit declaration of function ‘creat’
io.c:287: warning: format not a string literal and no format arguments
io.c:291: error: implicit declaration of function ‘open’
io.c:293: warning: format not a string literal and no format arguments
io.c:298: warning: format not a string literal and no format arguments
io.c: In function ‘seg_read_map’:
io.c:404: warning: format not a string literal and no format arguments
make: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1

thanks

Stephen

On Feb 25, 2011, at 4:09 PM, Markus Neteler wrote:

On Fri, Feb 25, 2011 at 9:41 PM, Stephen Sefick <ssefick@gmail.com> wrote:

1. file from add-ons moved over to grass70 source tree in raster folder

Not needed, you can compile directly from grass-addons/:

cd grass-addons/grass7/raster/r.stream/r.stream.snap/
make MODULE_TOPDIR=$HOME/grass70/

if needed:
make MODULE_TOPDIR=$HOME/grass70/ install

to clean:
make MODULE_TOPDIR=$HOME/grass70/ clean

...

Assembler messages:
Fatal error: can't create OBJ.x86_64-unknown-linux-gnu/io.o: No such
file or directory
make[1]: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1
make[1]: Leaving directory
`/home/ssefick/source/grass/trunk/raster/r.stream/r.stream.snap'

This error I don't get. I am using
gcc version 4.4.3 (GCC)

But there are a series of compiler warnings like
main.c:126: warning: implicit declaration of function ‘create_distance_mask’
main.c:127: warning: implicit declaration of function ‘read_points’
main.c:130: warning: implicit declaration of function ‘snap_point’
main.c:132: warning: implicit declaration of function ‘write_points’

which should be fixed.

Markus

stephen wrote:

Here is the error for compiling GRASS7 and addons r.stream.

svn up today

Error:
make MODULE_TOPDIR=$HOME/source/grass/grass7

...

io.c: In function ‘ram_create_map’:
io.c:16: warning: format not a string literal and no format arguments

try adding
#include <grass/glocale.h>

after
#include "io.h"
in the io.c file. It's already given in io.h so I don't really see why
it's needed. fwiw I've moved it to the end of the grass/ includes in
io.h in r45461, maybe that helps.

Hamish

Markus wrote:

> This error I don't get. I am using gcc version 4.4.3 (GCC)
>
> But there are a series of compiler warnings like
> main.c:126: warning: implicit declaration of function ‘create_distance_mask’
> main.c:127: warning: implicit declaration of function ‘read_points’
> main.c:130: warning: implicit declaration of function ‘snap_point’
> main.c:132: warning: implicit declaration of function ‘write_points’
>
> which should be fixed.

function prototypes added to local_proto.h in r45462.

Hamish

I have svn up in both source directories and issue the command below from within the r.stream.basins directory

make MODULE_TOPDIR=$a #(is where my grass7 source directory is)

gcc -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused -I/home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -I/home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -I/usr/include/gdal -I/usr/include -DPACKAGE=\""grassmods"\" -I/home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -I/home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/io.o -c io.c
io.c: In function ‘ram_create_map’:
io.c:16: warning: format not a string literal and no format arguments
io.c:13: warning: unused variable ‘c’
io.c: In function ‘ram_read_map’:
io.c:139: warning: format not a string literal and no format arguments
io.c: In function ‘seg_create_map’:
io.c:278: warning: format not a string literal and no format arguments
io.c:282: error: implicit declaration of function ‘creat’
io.c:287: warning: format not a string literal and no format arguments
io.c:291: error: implicit declaration of function ‘open’
io.c:293: warning: format not a string literal and no format arguments
io.c:298: warning: format not a string literal and no format arguments
io.c: In function ‘seg_read_map’:
io.c:404: warning: format not a string literal and no format arguments
make: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1

I will help in any I can. Thanks in advance for all of your wonderful help.

Stephen

On Feb 26, 2011, at 2:12 AM, Hamish wrote:

Markus wrote:

This error I don't get. I am using gcc version 4.4.3 (GCC)

But there are a series of compiler warnings like
main.c:126: warning: implicit declaration of function ‘create_distance_mask’
main.c:127: warning: implicit declaration of function ‘read_points’
main.c:130: warning: implicit declaration of function ‘snap_point’
main.c:132: warning: implicit declaration of function ‘write_points’

which should be fixed.

function prototypes added to local_proto.h in r45462.

Hamish

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user